GigaSpaces XAP 10.0.1 API

org.openspaces.pu.service
Class PlainServiceDetails

java.lang.Object
  extended by org.openspaces.pu.service.PlainServiceDetails
All Implemented Interfaces:
Externalizable, Serializable, ServiceDetails
Direct Known Subclasses:
CustomServiceDetails, DotnetContainerServiceDetails, DotnetServiceDetails, EventContainerServiceDetails, GatewayServiceDetails, JeeServiceDetails, MemcachedServiceDetails, RemotingServiceDetails, SpaceServiceDetails

public class PlainServiceDetails
extends Object
implements ServiceDetails, Externalizable

A simple implementation of ServiceDetails.

Author:
kimchy
See Also:
Serialized Form

Field Summary
protected  Map<String,Object> attributes
           
protected  String description
           
protected  String id
           
protected  String longDescription
           
protected  String serviceSubType
           
protected  String serviceType
           
 
Constructor Summary
PlainServiceDetails()
           
PlainServiceDetails(String id, String serviceType, String serviceSubType, String description, String longDescription)
           
 
Method Summary
 AggregatedServiceDetails aggregateById(ServiceDetails[] servicesDetails)
           
 AggregatedServiceDetails aggregateByServiceSubType(ServiceDetails[] servicesDetails)
           
 AggregatedServiceDetails aggregateByServiceType(ServiceDetails[] servicesDetails)
           
 Map<String,Object> getAttributes()
          Returns extra attributes the service details wishes to expose.
 String getDescription()
          Returns a short description of the service.
 String getId()
          Returns the id of the processing unit (usually the bean id).
 String getLongDescription()
          Returns the long description
 String getServiceSubType()
          Returns the type of the serive details.
 String getServiceType()
          Returns the service type.
 void readExternal(ObjectInput in)
           
 String toString()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

protected String id

serviceType

protected String serviceType

serviceSubType

protected String serviceSubType

description

protected String description

longDescription

protected String longDescription

attributes

protected Map<String,Object> attributes
Constructor Detail

PlainServiceDetails

public PlainServiceDetails()

PlainServiceDetails

public PlainServiceDetails(String id,
                           String serviceType,
                           String serviceSubType,
                           String description,
                           String longDescription)
Method Detail

getId

public String getId()
Description copied from interface: ServiceDetails
Returns the id of the processing unit (usually the bean id).

Specified by:
getId in interface ServiceDetails

getServiceType

public String getServiceType()
Description copied from interface: ServiceDetails
Returns the service type. For example, space, dotnet, jee.

Specified by:
getServiceType in interface ServiceDetails

getServiceSubType

public String getServiceSubType()
Description copied from interface: ServiceDetails
Returns the type of the serive details. For example, in case of space, it can be localcache, proxy, ... .

Specified by:
getServiceSubType in interface ServiceDetails

getDescription

public String getDescription()
Description copied from interface: ServiceDetails
Returns a short description of the service.

Specified by:
getDescription in interface ServiceDetails

getLongDescription

public String getLongDescription()
Description copied from interface: ServiceDetails
Returns the long description

Specified by:
getLongDescription in interface ServiceDetails

getAttributes

public Map<String,Object> getAttributes()
Description copied from interface: ServiceDetails
Returns extra attributes the service details wishes to expose.

Specified by:
getAttributes in interface ServiceDetails

aggregateByServiceType

public AggregatedServiceDetails aggregateByServiceType(ServiceDetails[] servicesDetails)

aggregateByServiceSubType

public AggregatedServiceDetails aggregateByServiceSubType(ServiceDetails[] servicesDetails)

aggregateById

public AggregatedServiceDetails aggregateById(ServiceDetails[] servicesDetails)

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

toString

public String toString()
Overrides:
toString in class Object

GigaSpaces XAP 10.0.1 API

Copyright © GigaSpaces.