|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sourceforge.esw.util.proxy.SupportObjectProxy | +--net.sourceforge.esw.service.ServiceProxy
IHeartbeatGenerator
,
ISupportObject
, Serialized FormFields inherited from interface net.sourceforge.esw.service.IService |
PRIMARY, SECONDARY, TERTIARY, UNAVAILABLE |
Constructor Summary | |
ServiceProxy(IService aDelegate)
Creates a new ServiceProxy. |
Method Summary | |
void |
die()
Requests that this IService instance to kill itself. |
IHeartbeatGenerator |
getHeartbeatGenerator()
Returns the IHeartbeatGenterator instance for this IService instance. |
int |
getPriority()
Returns the priority of this IService instance. |
boolean |
isSane()
States whether this IService instance is sane. |
boolean |
isStarted()
States whether this IService instance is started. |
boolean |
ping()
Allows checking of connection to this IService instance. |
void |
setPriority(int aPriority)
Sets the priority of this IService instance. |
void |
start()
Starts this IService instance and allows it to serve client requests. |
void |
stop()
Stops this IService instance and keeps it from serving client requests. |
Methods inherited from class net.sourceforge.esw.util.proxy.SupportObjectProxy |
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getID, getProperty, getPropertySize, propertyKeys, removeProperty, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener, setID, setProperty |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sourceforge.esw.util.ISupportObject |
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getID, getProperty, getPropertySize, propertyKeys, removeProperty, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener, setID, setProperty |
Constructor Detail |
public ServiceProxy(IService aDelegate)
Method Detail |
public void start()
The service should be registered with a lookup server regardless of whether it is started or not.
Fires an IServiceResources.START_PROPERTY property change event.
start
in interface IService
stop()
public void stop()
The service should be registered with a lookup server regardless of whether it is stopped or not.
Fires an IServiceResources.STOP_PROPERTY property change event.
stop
in interface IService
start()
public boolean isStarted()
isStarted
in interface IService
public IHeartbeatGenerator getHeartbeatGenerator()
getHeartbeatGenerator
in interface IService
public boolean isSane()
This default implementation always returns true. Implementors should change this to do some useful sanity checking.
isSane
in interface IService
public void die()
This default implementation calls System.exit(0)
.
Fires an IServiceResources.DIE_PROPERTY property change event.
die
in interface IService
public boolean ping()
ping
in interface IService
public void setPriority(int aPriority)
Fires an IServiceResources.PRIORITY_PROPERTY property change event.
setPriority
in interface IService
aPriority
- the new priority of this IService instance.public int getPriority()
getPriority
in interface IService
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |