org.mobicents.tools.sip.balancer
Class BalancerRunner
java.lang.Object
org.mobicents.tools.sip.balancer.BalancerRunner
- All Implemented Interfaces:
- BalancerRunnerMBean
public class BalancerRunner
- extends java.lang.Object
- implements BalancerRunnerMBean
- Author:
- jean.deruelle@gmail.com
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SIP_BALANCER_JMX_NAME
public static final java.lang.String SIP_BALANCER_JMX_NAME
- See Also:
- Constant Field Values
HTML_ADAPTOR_PORT
public static final java.lang.String HTML_ADAPTOR_PORT
- See Also:
- Constant Field Values
REGISTRY_PORT
public static final java.lang.String REGISTRY_PORT
- See Also:
- Constant Field Values
HTML_ADAPTOR_JMX_NAME
public static final java.lang.String HTML_ADAPTOR_JMX_NAME
- See Also:
- Constant Field Values
fwd
protected SIPBalancerForwarder fwd
reg
protected NodeRegisterImpl reg
BalancerRunner
public BalancerRunner()
main
public static void main(java.lang.String[] args)
- Parameters:
args -
start
public void start(java.lang.String configurationFileLocation)
- Specified by:
start in interface BalancerRunnerMBean
- Parameters:
configurationFileLocation -
stop
public void stop()
- Specified by:
stop in interface BalancerRunnerMBean
getNodeExpiration
public long getNodeExpiration()
- Specified by:
getNodeExpiration in interface BalancerRunnerMBean
getNodeExpirationTaskInterval
public long getNodeExpirationTaskInterval()
- Specified by:
getNodeExpirationTaskInterval in interface BalancerRunnerMBean
getNumberOfRequestsProcessed
public long getNumberOfRequestsProcessed()
- Specified by:
getNumberOfRequestsProcessed in interface BalancerRunnerMBean
getNumberOfResponsesProcessed
public long getNumberOfResponsesProcessed()
- Specified by:
getNumberOfResponsesProcessed in interface BalancerRunnerMBean
setNodeExpiration
public void setNodeExpiration(long value)
- Description copied from interface:
BalancerRunnerMBean
- Sets value which indicates when node has expired. if node.timeStamp+nodeExpiration
- Specified by:
setNodeExpiration in interface BalancerRunnerMBean
setNodeExpirationTaskInterval
public void setNodeExpirationTaskInterval(long value)
- Description copied from interface:
BalancerRunnerMBean
- Sets interval between runs of task that removes nodes that expired.
- Specified by:
setNodeExpirationTaskInterval in interface BalancerRunnerMBean
getNodes
public java.util.List<SIPNode> getNodes()
- Specified by:
getNodes in interface BalancerRunnerMBean
getNodeList
public java.lang.String[] getNodeList()
- Specified by:
getNodeList in interface BalancerRunnerMBean
getNumberOfGluedSessions
public int getNumberOfGluedSessions()
- Specified by:
getNumberOfGluedSessions in interface BalancerRunnerMBean
Copyright © 2009. All Rights Reserved.