org.mobicents.tools.sip.balancer
Class BalancerRunner

java.lang.Object
  extended by org.mobicents.tools.sip.balancer.BalancerRunner
All Implemented Interfaces:
BalancerRunnerMBean

public class BalancerRunner
extends java.lang.Object
implements BalancerRunnerMBean

Author:
jean.deruelle@gmail.com

Field Summary
protected  SIPBalancerForwarder fwd
           
static java.lang.String HTML_ADAPTOR_JMX_NAME
           
static java.lang.String HTML_ADAPTOR_PORT
           
protected  NodeRegisterImpl reg
           
static java.lang.String REGISTRY_PORT
           
static java.lang.String SIP_BALANCER_JMX_NAME
           
 
Constructor Summary
BalancerRunner()
           
 
Method Summary
 long getNodeExpiration()
           
 long getNodeExpirationTaskInterval()
           
 java.lang.String[] getNodeList()
           
 java.util.List<SIPNode> getNodes()
           
 int getNumberOfGluedSessions()
           
 long getNumberOfRequestsProcessed()
           
 long getNumberOfResponsesProcessed()
           
static void main(java.lang.String[] args)
           
 void setNodeExpiration(long value)
          Sets value which indicates when node has expired. if node.timeStamp+nodeExpiration
 void setNodeExpirationTaskInterval(long value)
          Sets interval between runs of task that removes nodes that expired.
 void start(java.lang.String configurationFileLocation)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

BalancerRunner

public BalancerRunner()
Method Detail

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.