|
||||||||||
| 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
public class SipStandardService
Sip Servlet implementation of the SipService interface.
This class inherits from the Tomcat StandardService. It adds a SipApplicationDispatcher
that will be listen for sip messages received by the sip stacks started by
the sip connectors associated with this context.
This has one attribute which is the sipApplicationDispatcherClassName allowing one
to specify the class name of the sipApplicationDispacther to easily replace
the default sipApplicationDispatcher with a custom one.
| 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 | |
|---|---|
SipStandardService()
|
|
| Method Summary | |
|---|---|
void |
addConnector(org.apache.catalina.connector.Connector connector)
|
boolean |
addSipConnector(SipConnector sipConnector)
|
protected javax.management.ObjectName |
createSipConnectorObjectName(org.apache.catalina.connector.Connector connector,
java.lang.String domain,
java.lang.String type)
|
SipConnector |
findSipConnector(java.lang.String transport)
|
SipConnector[] |
findSipConnectors()
|
java.lang.String |
getAdditionalParameterableHeaders()
|
java.lang.String |
getAddressResolverClass()
Deprecated. |
int |
getBackToNormalMemoryThreshold()
|
int |
getBackToNormalSipMessageQueueSize()
|
int |
getBaseTimerInterval()
|
protected java.lang.String |
getCatalinaBase()
Returns first the catalina.base if it is defined then the catalina.home if it is defined then the current dir if none is specified |
java.lang.String |
getConcurrencyControlMode()
ConcurrencyControl control mode is SipSession, AppSession or None Specifies the isolation level of concurrently executing requests. |
long |
getCongestionControlCheckingInterval()
|
java.lang.String |
getCongestionControlPolicy()
|
java.lang.String |
getDarConfigurationFileLocation()
|
int |
getDispatcherThreadPoolSize()
|
java.lang.String |
getDnsServerLocatorClass()
|
boolean |
getGatherStatistics()
PRESENT TO ACCOMODATE JOPR. |
java.lang.String |
getInfo()
|
java.lang.String |
getJvmRoute()
|
int |
getMemoryThreshold()
|
java.lang.String |
getOutboundProxy()
|
SipApplicationDispatcher |
getSipApplicationDispatcher()
Retrieve the sip application dispatcher associated with this service |
java.lang.String |
getSipApplicationDispatcherClassName()
Retrieve the sip application dispatcher class name |
int |
getSipMessageQueueSize()
Message queue size. |
java.lang.String |
getSipPathName()
|
javax.sip.SipStack |
getSipStack()
*Get the underlying SIP Stack handling the incoming and outgoing SIP Messages |
java.util.Properties |
getSipStackProperties()
|
java.lang.String |
getSipStackPropertiesFile()
|
int |
getT2Interval()
|
int |
getT4Interval()
|
int |
getTimerDInterval()
|
void |
initialize()
|
void |
initializeSystemPortProperties()
This method simply makes the HTTP and SSL ports avaialble everywhere in the JVM in order jsip ha to read them for balancer description purposes. |
protected void |
initSipStack()
|
boolean |
isBypassRequestExecutor()
|
boolean |
isBypassResponseExecutor()
|
boolean |
isDialogPendingRequestChecking()
Whether we check for pending requests and return 491 response if there are any |
boolean |
isGatherStatistics()
|
boolean |
isHttpFollowsSip()
|
boolean |
isMd5ContactUserPart()
|
boolean |
isUsePrettyEncoding()
|
protected void |
registerSipConnector(org.apache.catalina.connector.Connector connector)
Register the sip connector under a different name than HTTP Connector and we add the transport to avoid clashing with 2 connectors having the same port and address |
void |
removeConnector(org.apache.catalina.connector.Connector connector)
|
boolean |
removeSipConnector(java.lang.String ipAddress,
int port,
java.lang.String transport)
|
void |
setAdditionalParameterableHeaders(java.lang.String additionalParameterableHeaders)
|
void |
setAddressResolverClass(java.lang.String dnsAddressResolverClass)
Deprecated. |
void |
setBackToNormalMemoryThreshold(int backToNormalMemoryThreshold)
|
void |
setBackToNormalSipMessageQueueSize(int backToNormalSipMessageQueueSize)
|
void |
setBalancers(java.lang.String balancers)
Deprecated. |
void |
setBaseTimerInterval(int baseTimerInterval)
|
void |
setBypassRequestExecutor(boolean bypassRequestExecutor)
|
void |
setBypassResponseExecutor(boolean bypassResponseExecutor)
|
void |
setConcurrencyControlMode(java.lang.String concurrencyControlMode)
ConcurrencyControl control mode is SipSession, AppSession or None Specifies the isolation level of concurrently executing requests. |
void |
setCongestionControlCheckingInterval(long congestionControlCheckingInterval)
|
void |
setCongestionControlPolicy(java.lang.String congestionControlPolicy)
|
void |
setDarConfigurationFileLocation(java.lang.String darConfigurationFileLocation)
|
void |
setDialogPendingRequestChecking(boolean dialogPendingRequestChecking)
Whether we check for pending requests and return 491 response if there are any |
void |
setDispatcherThreadPoolSize(int dispatcherThreadPoolSize)
|
void |
setDnsServerLocatorClass(java.lang.String dnsServerLocatorClass)
|
void |
setGatherStatistics(boolean skipStatistics)
|
void |
setHttpFollowsSip(boolean httpFollowsSip)
|
void |
setJvmRoute(java.lang.String jvmRoute)
|
void |
setMd5ContactUserPart(boolean md5ContactUserPart)
|
void |
setMemoryThreshold(int memoryThreshold)
|
void |
setOutboundProxy(java.lang.String outboundProxy)
|
void |
setSipApplicationDispatcher(SipApplicationDispatcher sipApplicationDispatcher)
Set the sip application dispatcher associated with this service |
void |
setSipApplicationDispatcherClassName(java.lang.String sipApplicationDispatcherName)
Set the sip application dispatcher class name |
void |
setSipMessageQueueSize(int sipMessageQueueSize)
Message queue size. |
void |
setSipPathName(java.lang.String sipPathName)
|
void |
setSipStackProperties(java.util.Properties sipStackProperties)
|
void |
setSipStackPropertiesFile(java.lang.String sipStackPropertiesFile)
|
void |
setT2Interval(int t2Interval)
|
void |
setT4Interval(int t4Interval)
|
void |
setTimerDInterval(int timerDInterval)
|
void |
setUsePrettyEncoding(boolean usePrettyEncoding)
|
void |
start()
|
void |
stop()
|
| 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 |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_SIP_PATH_NAME
public static final java.lang.String PASS_INVITE_NON_2XX_ACK_TO_LISTENER
public static final java.lang.String TCP_POST_PARSING_THREAD_POOL_SIZE
public static final java.lang.String AUTOMATIC_DIALOG_SUPPORT_STACK_PROP
public static final java.lang.String LOOSE_DIALOG_VALIDATION
public static final java.lang.String SERVER_LOG_STACK_PROP
public static final java.lang.String DEBUG_LOG_STACK_PROP
public static final java.lang.String SERVER_HEADER
public static final java.lang.String USER_AGENT_HEADER
public static final java.lang.String JVM_ROUTE
protected java.lang.String sipApplicationDispatcherClassName
protected SipApplicationDispatcher sipApplicationDispatcher
protected int sipMessageQueueSize
protected int memoryThreshold
protected java.lang.String outboundProxy
protected long congestionControlCheckingInterval
protected int dispatcherThreadPoolSize
protected java.lang.String concurrencyControlMode
protected java.lang.String congestionControlPolicy
protected java.lang.String additionalParameterableHeaders
protected boolean bypassResponseExecutor
protected boolean bypassRequestExecutor
protected java.lang.String darConfigurationFileLocation
protected boolean connectorsStartedExternally
protected boolean dialogPendingRequestChecking
protected boolean httpFollowsSip
protected java.lang.String jvmRoute
| Constructor Detail |
|---|
public SipStandardService()
| Method Detail |
|---|
public java.lang.String getInfo()
getInfo in interface org.apache.catalina.ServicegetInfo in class org.apache.catalina.core.StandardServicepublic void addConnector(org.apache.catalina.connector.Connector connector)
addConnector in interface org.apache.catalina.ServiceaddConnector in class org.apache.catalina.core.StandardServiceprotected void registerSipConnector(org.apache.catalina.connector.Connector connector)
connector - connector to registerpublic void removeConnector(org.apache.catalina.connector.Connector connector)
removeConnector in interface org.apache.catalina.ServiceremoveConnector in class org.apache.catalina.core.StandardService
public void initialize()
throws org.apache.catalina.LifecycleException
initialize in interface org.apache.catalina.Serviceinitialize in class org.apache.catalina.core.StandardServiceorg.apache.catalina.LifecycleException
public void start()
throws org.apache.catalina.LifecycleException
start in interface org.apache.catalina.Lifecyclestart in class org.apache.catalina.core.StandardServiceorg.apache.catalina.LifecycleExceptionpublic java.lang.String getJvmRoute()
public void setJvmRoute(java.lang.String jvmRoute)
protected void initSipStack()
throws org.apache.catalina.LifecycleException
org.apache.catalina.LifecycleException
public void stop()
throws org.apache.catalina.LifecycleException
stop in interface org.apache.catalina.Lifecyclestop in class org.apache.catalina.core.StandardServiceorg.apache.catalina.LifecycleExceptionpublic java.lang.String getSipApplicationDispatcherClassName()
public void setSipApplicationDispatcherClassName(java.lang.String sipApplicationDispatcherName)
sipApplicationDispatcherClassName - the sip application dispatcher class name to be setpublic SipApplicationDispatcher getSipApplicationDispatcher()
SipService
getSipApplicationDispatcher in interface SipServicepublic void setSipApplicationDispatcher(SipApplicationDispatcher sipApplicationDispatcher)
SipService
setSipApplicationDispatcher in interface SipServicesipApplicationDispatcher - the sipApplicationDispatcher to setpublic java.lang.String getDarConfigurationFileLocation()
public void setDarConfigurationFileLocation(java.lang.String darConfigurationFileLocation)
darConfigurationFileLocation - the darConfigurationFileLocation to setpublic int getSipMessageQueueSize()
public void setSipMessageQueueSize(int sipMessageQueueSize)
public java.lang.String getConcurrencyControlMode()
public void setConcurrencyControlMode(java.lang.String concurrencyControlMode)
public void setMemoryThreshold(int memoryThreshold)
memoryThreshold - the memoryThreshold to setpublic int getMemoryThreshold()
public void setGatherStatistics(boolean skipStatistics)
skipStatistics - the skipStatistics to setpublic boolean isGatherStatistics()
public boolean getGatherStatistics()
public void setBackToNormalMemoryThreshold(int backToNormalMemoryThreshold)
backToNormalPercentageOfMemoryUsed - the backToNormalPercentageOfMemoryUsed to setpublic int getBackToNormalMemoryThreshold()
public void setBackToNormalSipMessageQueueSize(int backToNormalSipMessageQueueSize)
backToNormalQueueSize - the backToNormalQueueSize to setpublic int getBackToNormalSipMessageQueueSize()
public void setCongestionControlPolicy(java.lang.String congestionControlPolicy)
congestionControlPolicy - the congestionControlPolicy to setpublic java.lang.String getCongestionControlPolicy()
public void setCongestionControlCheckingInterval(long congestionControlCheckingInterval)
congestionControlCheckingInterval - the congestionControlCheckingInterval to setpublic long getCongestionControlCheckingInterval()
public java.lang.String getAdditionalParameterableHeaders()
public void setAdditionalParameterableHeaders(java.lang.String additionalParameterableHeaders)
public boolean isBypassResponseExecutor()
public void setBypassResponseExecutor(boolean bypassResponseExecutor)
bypassResponseExecutor - the bypassResponseExecutor to setpublic boolean isBypassRequestExecutor()
public void setBypassRequestExecutor(boolean bypassRequestExecutor)
bypassRequestExecutor - the bypassRequestExecutor to setpublic boolean isMd5ContactUserPart()
public void setMd5ContactUserPart(boolean md5ContactUserPart)
public void setUsePrettyEncoding(boolean usePrettyEncoding)
usePrettyEncoding - the usePrettyEncoding to setpublic boolean isUsePrettyEncoding()
public void setSipPathName(java.lang.String sipPathName)
sipPathName - the sipPathName to setpublic java.lang.String getSipPathName()
public void setBaseTimerInterval(int baseTimerInterval)
baseTimerInterval - the baseTimerInterval to setpublic int getBaseTimerInterval()
public java.lang.String getOutboundProxy()
public void setOutboundProxy(java.lang.String outboundProxy)
public int getDispatcherThreadPoolSize()
public void setDispatcherThreadPoolSize(int dispatcherThreadPoolSize)
public void setBalancers(java.lang.String balancers)
balancers - the balancers to set
public boolean addSipConnector(SipConnector sipConnector)
throws java.lang.Exception
java.lang.Exception
public boolean removeSipConnector(java.lang.String ipAddress,
int port,
java.lang.String transport)
throws java.lang.Exception
java.lang.Exceptionpublic SipConnector findSipConnector(java.lang.String transport)
public SipConnector[] findSipConnectors()
public void initializeSystemPortProperties()
protected javax.management.ObjectName createSipConnectorObjectName(org.apache.catalina.connector.Connector connector,
java.lang.String domain,
java.lang.String type)
throws javax.management.MalformedObjectNameException
javax.management.MalformedObjectNameExceptionpublic void setT2Interval(int t2Interval)
t2Interval - the t2Interval to setpublic int getT2Interval()
public void setT4Interval(int t4Interval)
t4Interval - the t4Interval to setpublic int getT4Interval()
public void setTimerDInterval(int timerDInterval)
timerDInterval - the timerDInterval to setpublic int getTimerDInterval()
public void setSipStackPropertiesFile(java.lang.String sipStackPropertiesFile)
sipStackPropertiesFile - the sipStackPropertiesFile to setpublic java.util.Properties getSipStackProperties()
public void setSipStackProperties(java.util.Properties sipStackProperties)
sipStackProperties - the sipStackProperties to setpublic java.lang.String getSipStackPropertiesFile()
@Deprecated public void setAddressResolverClass(java.lang.String dnsAddressResolverClass)
dnsAddressResolverClass - the dnsAddressResolverClass to set@Deprecated public java.lang.String getAddressResolverClass()
public boolean isDialogPendingRequestChecking()
public void setDialogPendingRequestChecking(boolean dialogPendingRequestChecking)
dialogPendingRequestChecking - public boolean isHttpFollowsSip()
public void setHttpFollowsSip(boolean httpFollowsSip)
public javax.sip.SipStack getSipStack()
SipService
getSipStack in interface SipServicepublic void setDnsServerLocatorClass(java.lang.String dnsServerLocatorClass)
dnsServerLocatorClass - the dnsServerLocatorClass to setpublic java.lang.String getDnsServerLocatorClass()
protected java.lang.String getCatalinaBase()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||