|
||||||||||
| 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()
|
|
| Method Summary | |
|---|---|
boolean |
addBalancerAddress(java.lang.String addr)
|
boolean |
addBalancerAddress(java.lang.String hostName,
int index)
Adds balancer address to distribution list. |
java.lang.String[] |
getBalancers()
|
long |
getHeartBeatInterval()
|
java.lang.String |
getInfo()
|
void |
removeBalancerAddress(int index)
|
boolean |
removeBalancerAddress(java.lang.String addr)
Tries to remove balancer with name: addr[0].addr[1].addr[2].addr[3] |
boolean |
removeBalancerAddress(java.lang.String hostName,
int index)
|
void |
setBalancers(java.lang.String balancers)
|
void |
setHeartBeatInterval(long heartBeatInterval)
|
void |
start()
|
void |
stop()
|
| Methods inherited from class org.mobicents.servlet.sip.startup.SipStandardService |
|---|
addConnector, getDarConfigurationFileLocation, getSipApplicationDispatcher, getSipApplicationDispatcherClassName, initialize, removeConnector, setDarConfigurationFileLocation, setSipApplicationDispatcher, setSipApplicationDispatcherClassName |
| 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 java.lang.String getInfo()
getInfo in interface org.apache.catalina.ServicegetInfo in class SipStandardService
public void start()
throws org.apache.catalina.LifecycleException
start in interface org.apache.catalina.Lifecyclestart in class SipStandardServiceorg.apache.catalina.LifecycleException
public void stop()
throws org.apache.catalina.LifecycleException
stop in interface org.apache.catalina.Lifecyclestop in class SipStandardServiceorg.apache.catalina.LifecycleExceptionpublic long getHeartBeatInterval()
getHeartBeatInterval in interface SipBalancerNodeServicepublic void setHeartBeatInterval(long heartBeatInterval)
setHeartBeatInterval in interface SipBalancerNodeServicepublic java.lang.String[] getBalancers()
getBalancers in interface SipBalancerNodeService
public void removeBalancerAddress(int index)
throws java.lang.IllegalArgumentException
removeBalancerAddress in interface SipBalancerNodeServicejava.lang.IllegalArgumentExceptionpublic boolean addBalancerAddress(java.lang.String addr)
addBalancerAddress in interface SipBalancerNodeService
public boolean addBalancerAddress(java.lang.String hostName,
int index)
addBalancerAddress 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(..);
public boolean removeBalancerAddress(java.lang.String addr)
removeBalancerAddress in interface SipBalancerNodeServiceaddr - -
The argument is address representation in network byte order:
the highest order byte of the address is in [0].
public boolean removeBalancerAddress(java.lang.String hostName,
int index)
removeBalancerAddress in interface SipBalancerNodeServicepublic void setBalancers(java.lang.String balancers)
balancers - the balancers to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||