org.jboss.remoting.detection
Interface AbstractDetectorMBean

All Known Implementing Classes:
AbstractDetector

public interface AbstractDetectorMBean

This provides a MBean accessible interface for setting domain configuration

Author:
Tom Elrod

Method Summary
 Element getConfiguration()
          The getDomains method
 long getDefaultTimeDelay()
           
 long getHeartbeatTimeDelay()
          The amount of time to wait between sending (and sometimes receiving) detection messages.
 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.
 

Method Detail

setConfiguration

public void setConfiguration(Element xml)
                      throws Exception
set the configuration for the domains to be recognized by detector

Parameters:
xml -
Throws:
Exception

getConfiguration

public Element getConfiguration()
The getDomains method

Returns:
an Element value

setHeartbeatTimeDelay

public void setHeartbeatTimeDelay(long heartbeatTimeDelay)
                           throws org.jboss.system.ConfigurationException
The amount of time to wait between sending (and sometimes receiving) detection messages.

Parameters:
heartbeatTimeDelay -
Throws:
org.jboss.system.ConfigurationException

getHeartbeatTimeDelay

public long getHeartbeatTimeDelay()
The amount of time to wait between sending (and sometimes receiving) detection messages.

Returns:

setDefaultTimeDelay

public void setDefaultTimeDelay(long defaultTimeDelay)
                         throws org.jboss.system.ConfigurationException
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.

Parameters:
defaultTimeDelay - time in milliseconds
Throws:
org.jboss.system.ConfigurationException

getDefaultTimeDelay

public long getDefaultTimeDelay()
Returns:
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.


Copyright © 2004 JBoss Inc. All Rights Reserved.