|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.remoting.detection.AbstractDetector
AbstractDetector
Field Summary | |
protected org.jboss.logging.Logger |
log
|
protected javax.management.MBeanServer |
mbeanserver
|
protected javax.management.ObjectName |
objectName
|
protected javax.management.ObjectName |
registryObjectName
|
Constructor Summary | |
AbstractDetector()
|
Method Summary | |
protected boolean |
checkInvokerServer(Detection detection,
ClassLoader cl)
|
protected void |
detect(Detection detection)
called when a remote detection from a peer is received by a detector |
Element |
getConfiguration()
The getConfiguration method |
long |
getDefaultTimeDelay()
|
protected long |
getHeartbeatDelay()
return the initial delay in milliseconds before the initial heartbeat is fired. |
protected long |
getHeartbeatPeriod()
return the period in milliseconds between subsequent heartbeats. |
long |
getHeartbeatTimeDelay()
The amount of time to wait between sending (and sometimes receiving) detection messages. |
protected long |
getPingerDelay()
return the delay in milliseconds between when the timer is created to when the first pinger thread runs. |
protected long |
getPingerPeriod()
return the period in milliseconds between checking lost servers against the last detection timestamp. |
protected abstract void |
heartbeat()
subclasses must implement to provide the specific heartbeat protocol for this server to send out to other servers on the network |
protected boolean |
isRemoteDetection(Detection detection)
|
void |
postDeregister()
|
void |
postRegister(Boolean aBoolean)
|
void |
preDeregister()
|
javax.management.ObjectName |
preRegister(javax.management.MBeanServer mBeanServer,
javax.management.ObjectName objectName)
|
void |
setConfiguration(Element xml)
set the configuration for the domains to be recognized by detector |
void |
setDefaultTimeDelay(long defaultTimeDelay)
The amount of time which can elapse without receiving a detection event before a server will be suspected as being dead and peroforming an explicit invocation on it to verify it is alive. |
void |
setHeartbeatTimeDelay(long heartbeatTimeDelay)
The amount of time to wait between sending (and sometimes receiving) detection messages. |
void |
start()
called by MBeanServer to start the mbean lifecycle |
protected void |
startHeartbeat(long delay,
long period)
start heartbeating |
protected void |
startPinger(long delay,
long period)
start the pinger timer thread |
void |
stop()
called by the MBeanServer to stop the mbean lifecycle |
protected void |
stopHeartbeat()
stop heartbeating |
protected void |
stopPinger()
stop the pinger timer thread |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected final org.jboss.logging.Logger log
protected javax.management.MBeanServer mbeanserver
protected javax.management.ObjectName objectName
protected javax.management.ObjectName registryObjectName
Constructor Detail |
public AbstractDetector()
Method Detail |
public void setHeartbeatTimeDelay(long heartbeatTimeDelay) throws org.jboss.system.ConfigurationException
setHeartbeatTimeDelay
in interface AbstractDetectorMBean
heartbeatTimeDelay
-
org.jboss.system.ConfigurationException
public long getHeartbeatTimeDelay()
getHeartbeatTimeDelay
in interface AbstractDetectorMBean
public void setDefaultTimeDelay(long defaultTimeDelay) throws org.jboss.system.ConfigurationException
setDefaultTimeDelay
in interface AbstractDetectorMBean
defaultTimeDelay
- time in milliseconds
org.jboss.system.ConfigurationException
public long getDefaultTimeDelay()
getDefaultTimeDelay
in interface AbstractDetectorMBean
public void start() throws Exception
start
in interface Detector
Exception
protected long getPingerDelay()
protected long getPingerPeriod()
protected void startPinger(long delay, long period)
delay
- period
- protected void stopPinger()
public void stop() throws Exception
stop
in interface Detector
Exception
public void postDeregister()
postDeregister
in interface javax.management.MBeanRegistration
public void postRegister(Boolean aBoolean)
postRegister
in interface javax.management.MBeanRegistration
public void preDeregister() throws Exception
preDeregister
in interface javax.management.MBeanRegistration
Exception
public javax.management.ObjectName preRegister(javax.management.MBeanServer mBeanServer, javax.management.ObjectName objectName) throws Exception
preRegister
in interface javax.management.MBeanRegistration
Exception
public void setConfiguration(Element xml) throws Exception
setConfiguration
in interface AbstractDetectorMBean
xml
-
Exception
public Element getConfiguration()
getConfiguration
method
getConfiguration
in interface AbstractDetectorMBean
Element
valueprotected void startHeartbeat(long delay, long period)
delay
- period
- protected void stopHeartbeat()
protected long getHeartbeatDelay()
protected long getHeartbeatPeriod()
protected abstract void heartbeat()
protected void detect(Detection detection)
detection
- protected boolean isRemoteDetection(Detection detection)
protected boolean checkInvokerServer(Detection detection, ClassLoader cl)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |