org.mobicents.servlet.sip.startup.failover
Class SipStandardBalancerNodeService
java.lang.Object
org.apache.catalina.util.LifecycleBase
org.apache.catalina.util.LifecycleMBeanBase
org.apache.catalina.core.StandardService
org.mobicents.servlet.sip.startup.SipStandardService
org.mobicents.servlet.sip.startup.failover.SipStandardBalancerNodeService
- All Implemented Interfaces:
- javax.management.MBeanRegistration, org.apache.catalina.Lifecycle, org.apache.catalina.Service, SipBalancerNodeService, SipService
Deprecated.
public class SipStandardBalancerNodeService
- extends SipStandardService
- implements SipBalancerNodeService
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)
- Author:
- Jean Deruelle
| Fields inherited from class org.mobicents.servlet.sip.startup.SipStandardService |
additionalParameterableHeaders, AUTOMATIC_DIALOG_SUPPORT_STACK_PROP, bypassRequestExecutor, bypassResponseExecutor, concurrencyControlMode, congestionControlCheckingInterval, congestionControlPolicy, connectorsStartedExternally, darConfigurationFileLocation, DEBUG_LOG_STACK_PROP, DEFAULT_SIP_PATH_NAME, dialogPendingRequestChecking, dispatcherThreadPoolSize, httpFollowsSip, JVM_ROUTE, jvmRoute, LOOSE_DIALOG_VALIDATION, memoryThreshold, outboundProxy, PASS_INVITE_NON_2XX_ACK_TO_LISTENER, SERVER_HEADER, SERVER_LOG_STACK_PROP, sipApplicationDispatcher, sipApplicationDispatcherClassName, sipMessageQueueSize, TCP_POST_PARSING_THREAD_POOL_SIZE, USER_AGENT_HEADER |
| Fields inherited from class org.apache.catalina.core.StandardService |
connectors, container, executors, support |
| Fields inherited from class org.apache.catalina.util.LifecycleMBeanBase |
mserver |
| Fields inherited from interface org.apache.catalina.Lifecycle |
AFTER_DESTROY_EVENT, AFTER_INIT_EVENT, AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_DESTROY_EVENT, BEFORE_INIT_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, CONFIGURE_START_EVENT, CONFIGURE_STOP_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT |
|
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.mobicents.servlet.sip.startup.SipStandardService |
addConnector, addSipConnector, createSipConnectorObjectName, findSipConnector, findSipConnectors, getAdditionalParameterableHeaders, getAddressResolverClass, getBackToNormalMemoryThreshold, getBackToNormalSipMessageQueueSize, getBaseTimerInterval, getConcurrencyControlMode, getCongestionControlCheckingInterval, getCongestionControlPolicy, getDarConfigurationFileLocation, getDispatcherThreadPoolSize, getGatherStatistics, getInfo, getJvmRoute, getMemoryThreshold, getOutboundProxy, getSipApplicationDispatcher, getSipApplicationDispatcherClassName, getSipMessageQueueSize, getSipPathName, getSipStack, getSipStackProperties, getSipStackPropertiesFile, getT2Interval, getT4Interval, getTimerDInterval, initializeSystemPortProperties, initInternal, initSipStack, isBypassRequestExecutor, isBypassResponseExecutor, isDialogPendingRequestChecking, isGatherStatistics, isHttpFollowsSip, isUsePrettyEncoding, registerSipConnector, removeConnector, removeSipConnector, setAdditionalParameterableHeaders, setAddressResolverClass, setBackToNormalMemoryThreshold, setBackToNormalSipMessageQueueSize, setBalancers, setBaseTimerInterval, setBypassRequestExecutor, setBypassResponseExecutor, setConcurrencyControlMode, setCongestionControlCheckingInterval, setCongestionControlPolicy, setDarConfigurationFileLocation, setDialogPendingRequestChecking, setDispatcherThreadPoolSize, setGatherStatistics, setHttpFollowsSip, setJvmRoute, setMemoryThreshold, setOutboundProxy, setSipApplicationDispatcher, setSipApplicationDispatcherClassName, setSipMessageQueueSize, setSipPathName, setSipStackProperties, setSipStackPropertiesFile, setT2Interval, setT4Interval, setTimerDInterval, setUsePrettyEncoding, startInternal, stopInternal |
| Methods inherited from class org.apache.catalina.core.StandardService |
addExecutor, addPropertyChangeListener, destroyInternal, findConnectors, findExecutors, getConnectorNames, getContainer, getDomainInternal, getExecutor, getName, getObjectNameKeyProperties, getParentClassLoader, getServer, removeExecutor, removePropertyChangeListener, setContainer, setName, setParentClassLoader, setServer, toString |
| Methods inherited from class org.apache.catalina.util.LifecycleMBeanBase |
getDomain, getObjectName, postDeregister, postRegister, preDeregister, preRegister, register, setDomain, unregister |
| Methods inherited from class org.apache.catalina.util.LifecycleBase |
addLifecycleListener, destroy, findLifecycleListeners, fireLifecycleEvent, getState, getStateName, init, removeLifecycleListener, setState, setState, start, stop |
| 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, getParentClassLoader, getServer, removeExecutor, setContainer, setName, setParentClassLoader, setServer |
| Methods inherited from interface org.apache.catalina.Lifecycle |
addLifecycleListener, destroy, findLifecycleListeners, getState, getStateName, init, removeLifecycleListener, start, stop |
SipStandardBalancerNodeService
public SipStandardBalancerNodeService()
- Deprecated.
addBalancer
public boolean addBalancer(java.lang.String addr,
int sipPort,
int rmiPort)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException,
java.io.IOException
- Deprecated.
- Specified by:
addBalancer in interface SipBalancerNodeService
- Throws:
java.lang.IllegalArgumentException
java.lang.NullPointerException
java.io.IOException
addBalancer
public boolean addBalancer(java.lang.String hostName,
int sipPort,
int index,
int rmiPort)
throws java.lang.IllegalArgumentException
- Deprecated.
- Description copied from interface:
SipBalancerNodeService
- Adds balancer address to distribution list. Tries to connect to it.
- Specified by:
addBalancer in interface SipBalancerNodeService
- Parameters:
hostName - -
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(..);
- Returns:
- true - if address didnt exist and it has been
injected into list
- false - otherwise
- Throws:
java.lang.IllegalArgumentException - if something goes wrong when adding the balancer address or while trying to connect to it
getBalancers
public java.lang.String[] getBalancers()
- Deprecated.
- Specified by:
getBalancers in interface SipBalancerNodeService
- Returns:
- - list of String objects representing balancer addresses. Example
content:
- 192.168.1.100
- ala.ma.kota.pl
getHeartBeatInterval
public long getHeartBeatInterval()
- Deprecated.
- Specified by:
getHeartBeatInterval in interface SipBalancerNodeService
removeBalancer
public boolean removeBalancer(java.lang.String addr,
int sipPort,
int rmiPort)
throws java.lang.IllegalArgumentException
- Deprecated.
- Description copied from interface:
SipBalancerNodeService
- Tries to remove balancer with name: addr[0].addr[1].addr[2].addr[3]
- Specified by:
removeBalancer in interface SipBalancerNodeService
- Parameters:
addr - -
The argument is address representation in network byte order:
the highest order byte of the address is in [0].
- Returns:
- true - if name exists and was removed
- false - otherwise
- Throws:
java.lang.IllegalArgumentException - -
if there is no balancer with that name on the list.
removeBalancer
public boolean removeBalancer(java.lang.String hostName,
int sipPort,
int index,
int rmiPort)
throws java.lang.IllegalArgumentException
- Deprecated.
- Specified by:
removeBalancer in interface SipBalancerNodeService
- Throws:
java.lang.IllegalArgumentException
setHeartBeatInterval
public void setHeartBeatInterval(long heartBeatInterval)
- Deprecated.
- Specified by:
setHeartBeatInterval in interface SipBalancerNodeService
Copyright © 2011. All Rights Reserved.