|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jgroups.stack.Protocol
org.jgroups.protocols.FD
org.jgroups.protocols.FD_PING
public class FD_PING
Protocol which uses an executable (e.g. /sbin/ping, or a script) to check whether a given host is up or not, taking 1 argument; the host name of the host to be pinged. Property 'cmd' determines the program to be executed (use a fully qualified name if the program is not on the path).
Nested Class Summary | |
---|---|
protected static class |
FD_PING.Pinger
|
protected class |
FD_PING.PingMonitor
Executes the ping command. |
Nested classes/interfaces inherited from class org.jgroups.protocols.FD |
---|
FD.Broadcaster, FD.BroadcastTask, FD.FdHeader, FD.Monitor |
Field Summary |
---|
Fields inherited from class org.jgroups.protocols.FD |
---|
bcast_task, num_heartbeats, num_suspect_events |
Fields inherited from class org.jgroups.stack.Protocol |
---|
down_handler, down_prot, down_queue, down_thread, down_thread_prio, log, observer, props, stack, stats, up_handler, up_prot, up_queue, up_thread, up_thread_prio |
Constructor Summary | |
---|---|
FD_PING()
|
Method Summary | |
---|---|
protected FD.Monitor |
createMonitor()
|
java.lang.String |
getName()
|
boolean |
setProperties(java.util.Properties props)
Configures the protocol initially. |
Methods inherited from class org.jgroups.protocols.FD |
---|
down, getCurrentNumTries, getLocalAddress, getMaxTries, getMembers, getNumberOfHeartbeatsSent, getNumSuspectEventsGenerated, getPingableMembers, getPingDest, getTimeout, init, isShun, printSuspectHistory, resetStats, setMaxTries, setShun, setTimeout, stop, up |
Methods inherited from class org.jgroups.stack.Protocol |
---|
destroy, downThreadEnabled, dumpStats, enableStats, getDownProtocol, getDownQueue, getProperties, getUpProtocol, getUpQueue, handleSpecialDownEvent, passDown, passUp, printStats, providedDownServices, providedUpServices, receiveDownEvent, receiveUpEvent, requiredDownServices, requiredUpServices, setDownProtocol, setObserver, setPropertiesInternal, setProtocolStack, setUpProtocol, start, startDownHandler, startUpHandler, statsEnabled, stopInternal, upThreadEnabled |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FD_PING()
Method Detail |
---|
public java.lang.String getName()
getName
in class FD
public boolean setProperties(java.util.Properties props)
Protocol
"loopback=false;unicast_inport=4444"
setProperties
in class FD
protected FD.Monitor createMonitor()
createMonitor
in class FD
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |