org.openspaces.pu.service
Class PlainServiceMonitors
java.lang.Object
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
id
protected String id
details
protected ServiceDetails details
monitors
protected Map<String,Object> monitors
PlainServiceMonitors
public PlainServiceMonitors()
PlainServiceMonitors
public PlainServiceMonitors(String id)
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
Copyright © GigaSpaces.