GigaSpaces XAP 7.0 API

org.openspaces.pu.service
Class PlainServiceMonitors

java.lang.Object
  extended by org.openspaces.pu.service.PlainServiceMonitors
All Implemented Interfaces:
Externalizable, Serializable, ServiceMonitors
Direct Known Subclasses:
EventContainerServiceMonitors, RemotingServiceMonitors, WebRequestsServiceMonitors

public class PlainServiceMonitors
extends Object
implements ServiceMonitors, Externalizable

A simple implementation of ServiceMonitors.

Author:
kimchy
See Also:
Serialized Form

Field Summary
protected  ServiceDetails details
           
protected  String id
           
protected  Map<String,Object> monitors
           
 
Constructor Summary
PlainServiceMonitors()
           
PlainServiceMonitors(String id)
           
 
Method Summary
 ServiceDetails getDetails()
          Returns the details of the service.
 String getId()
          Returns the id of the service monitor (usually the bean id).
 Map<String,Object> getMonitors()
          Returns monitor values.
 void readExternal(ObjectInput in)
           
 void setDetails(ServiceDetails details)
           
 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

details

protected ServiceDetails details

monitors

protected Map<String,Object> monitors
Constructor Detail

PlainServiceMonitors

public PlainServiceMonitors()

PlainServiceMonitors

public PlainServiceMonitors(String id)
Method Detail

getId

public String getId()
Description copied from interface: ServiceMonitors
Returns the id of the service monitor (usually the bean id).

Specified by:
getId in interface ServiceMonitors

getMonitors

public Map<String,Object> getMonitors()
Description copied from interface: ServiceMonitors
Returns monitor values.

Specified by:
getMonitors in interface ServiceMonitors

getDetails

public ServiceDetails getDetails()
Description copied from interface: ServiceMonitors
Returns the details of the service.

Note, should not be marshalled from the server to the client, the client should be able to set it.

Specified by:
getDetails in interface ServiceMonitors

setDetails

public void setDetails(ServiceDetails details)

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 7.0 API

Copyright © GigaSpaces.