public interface MonitorableService
Modifier and Type | Method and Description |
---|---|
net.jini.core.lease.Lease |
monitor(long duration)
Establish a Lease to monitor the reachability of the Service
|
void |
ping()
Low cost roundtrip check
|
void |
startHeartbeat(String[] configArgs)
Start a heartbeat mechanism to determine the reachability of the Service.
|
void ping() throws RemoteException
RemoteException
- If an error occurred during communication with the
servicenet.jini.core.lease.Lease monitor(long duration) throws net.jini.core.lease.LeaseDeniedException, RemoteException
duration
- The duration (in milliseconds) of the requested Leasenet.jini.core.lease.LeaseDeniedException
- If requested Lease is deniedRemoteException
- If communication errors occurvoid startHeartbeat(String[] configArgs) throws net.jini.config.ConfigurationException, RemoteException
org.rioproject.impl.fdh.HeartbeatFaultDetectionHandler.heartbeatServer
configArgs
- Configuration attributes the Service will use to
establish a heartbeat mechanismnet.jini.config.ConfigurationException
- If there are errors processing the
configurationRemoteException
- If communication errors occurCopyright © 2007–2018 Rio Project. All rights reserved.