|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.catalina.core.StandardService
org.mobicents.servlet.sip.startup.SipStandardService
org.mobicents.servlet.sip.startup.failover.SipStandardBalancerNodeService
public class SipStandardBalancerNodeService
Sip Servlet implementation of the Service interface.
This implementation extends the SipStandardService (that allows Tomcat to become a converged container)
with the failover features.
This implementation will send heartbeats and health information to the sip balancers configured for this service
(configured in the server.xml as balancers attribute fo the Service Tag)
| Field Summary |
|---|
| Fields inherited from class org.apache.catalina.core.StandardService |
|---|
connectors, container, controller, domain, executors, initialized, mserver, oname, suffix, support, type |
| Fields inherited from interface org.apache.catalina.Lifecycle |
|---|
AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, DESTROY_EVENT, INIT_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT |
| Constructor Summary | |
|---|---|
SipStandardBalancerNodeService()
Deprecated. |
|
| Method Summary | |
|---|---|
boolean |
addBalancer(java.lang.String addr,
int sipPort,
int rmiPort)
Deprecated. |
boolean |
addBalancer(java.lang.String hostName,
int sipPort,
int index,
int rmiPort)
Deprecated. Adds balancer address to distribution list. |
java.lang.String[] |
getBalancers()
Deprecated. |
long |
getHeartBeatInterval()
Deprecated. |
boolean |
removeBalancer(java.lang.String addr,
int sipPort,
int rmiPort)
Deprecated. Tries to remove balancer with name: addr[0].addr[1].addr[2].addr[3] |
boolean |
removeBalancer(java.lang.String hostName,
int sipPort,
int index,
int rmiPort)
Deprecated. |
void |
setHeartBeatInterval(long heartBeatInterval)
Deprecated. |
| Methods inherited from class org.apache.catalina.core.StandardService |
|---|
addExecutor, addLifecycleListener, addPropertyChangeListener, destroy, findConnectors, findExecutors, findLifecycleListeners, getConnectorNames, getContainer, getContainerName, getDomain, getExecutor, getName, getObjectName, getServer, init, postDeregister, postRegister, preDeregister, preRegister, removeExecutor, removeLifecycleListener, removePropertyChangeListener, setContainer, setName, setServer, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.catalina.Service |
|---|
addExecutor, findConnectors, findExecutors, getContainer, getExecutor, getName, getServer, removeExecutor, setContainer, setName, setServer |
| Constructor Detail |
|---|
public SipStandardBalancerNodeService()
| Method Detail |
|---|
public boolean addBalancer(java.lang.String addr,
int sipPort,
int rmiPort)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException,
java.io.IOException
addBalancer in interface SipBalancerNodeServicejava.lang.IllegalArgumentException
java.lang.NullPointerException
java.io.IOException
public boolean addBalancer(java.lang.String hostName,
int sipPort,
int index,
int rmiPort)
throws java.lang.IllegalArgumentException
SipBalancerNodeService
addBalancer in interface SipBalancerNodeServicehostName - -
name of the host to be looked up in DNSindex - -
possible index of IP address when host has more than one
address - like InetAddress.getAllByName(..);
java.lang.IllegalArgumentException - if something goes wrong when adding the balancer address or while trying to connect to itpublic java.lang.String[] getBalancers()
getBalancers in interface SipBalancerNodeServicepublic long getHeartBeatInterval()
getHeartBeatInterval in interface SipBalancerNodeService
public boolean removeBalancer(java.lang.String addr,
int sipPort,
int rmiPort)
throws java.lang.IllegalArgumentException
SipBalancerNodeService
removeBalancer in interface SipBalancerNodeServiceaddr - -
The argument is address representation in network byte order:
the highest order byte of the address is in [0].
java.lang.IllegalArgumentException - -
if there is no balancer with that name on the list.
public boolean removeBalancer(java.lang.String hostName,
int sipPort,
int index,
int rmiPort)
throws java.lang.IllegalArgumentException
removeBalancer in interface SipBalancerNodeServicejava.lang.IllegalArgumentExceptionpublic void setHeartBeatInterval(long heartBeatInterval)
setHeartBeatInterval in interface SipBalancerNodeService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||