org.mobicents.slee.services.sip.balancer
Class NodeRegisterImpl
java.lang.Object
org.mobicents.slee.services.sip.balancer.NodeRegisterImpl
- All Implemented Interfaces:
- java.rmi.Remote, NodeRegister, NodeRegisterImplMBean
public class NodeRegisterImpl
- extends java.lang.Object
- implements NodeRegister, NodeRegisterImplMBean
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodeRegisterImpl
public NodeRegisterImpl(java.net.InetAddress serverAddress)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
getGatheredInfo
public java.util.List<SIPNode> getGatheredInfo()
- Specified by:
getGatheredInfo in interface NodeRegisterImplMBean
startServer
public boolean startServer()
- Specified by:
startServer in interface NodeRegisterImplMBean
stopServer
public boolean stopServer()
- Specified by:
stopServer in interface NodeRegisterImplMBean
unStickSessionFromNode
public void unStickSessionFromNode(java.lang.String callID)
- Specified by:
unStickSessionFromNode in interface NodeRegister
reset
public void reset()
getNextNode
public SIPNode getNextNode()
throws java.lang.IndexOutOfBoundsException
- Specified by:
getNextNode in interface NodeRegister
- Throws:
java.lang.IndexOutOfBoundsException
stickSessionToNode
public SIPNode stickSessionToNode(java.lang.String callID)
- Specified by:
stickSessionToNode in interface NodeRegister
getGluedNode
public SIPNode getGluedNode(java.lang.String callID)
- Specified by:
getGluedNode in interface NodeRegister
handlePingInRegister
public void handlePingInRegister(java.util.ArrayList<SIPNode> ping)
- Specified by:
handlePingInRegister in interface NodeRegister
getAddress
public java.net.InetAddress getAddress()
- Specified by:
getAddress in interface NodeRegisterImplMBean
getNodeExpiration
public long getNodeExpiration()
- Specified by:
getNodeExpiration in interface NodeRegisterImplMBean
getNodeExpirationTaskInterval
public long getNodeExpirationTaskInterval()
- Specified by:
getNodeExpirationTaskInterval in interface NodeRegisterImplMBean
setNodeExpiration
public void setNodeExpiration(long value)
throws java.lang.IllegalArgumentException
- Description copied from interface:
NodeRegisterImplMBean
- Sets value which indicates when node has expired. if node.timeStamp+nodeExpiration
- Specified by:
setNodeExpiration in interface NodeRegisterImplMBean
- Throws:
java.lang.IllegalArgumentException
setNodeExpirationTaskInterval
public void setNodeExpirationTaskInterval(long value)
- Description copied from interface:
NodeRegisterImplMBean
- Sets interval between runs of task that removes nodes that expired.
- Specified by:
setNodeExpirationTaskInterval in interface NodeRegisterImplMBean
Copyright © 2008. All Rights Reserved.