|
||||||||||
| 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.
| Field Summary | |
|---|---|
protected java.lang.String |
additionalParameterableHeaders
|
protected boolean |
bypassRequestExecutor
|
protected boolean |
bypassResponseExecutor
|
protected java.lang.String |
concurrencyControlMode
|
protected long |
congestionControlCheckingInterval
|
protected java.lang.String |
congestionControlPolicy
|
protected boolean |
connectorsStartedExternally
|
protected java.lang.String |
darConfigurationFileLocation
|
protected int |
dispatcherThreadPoolSize
|
protected int |
memoryThreshold
|
protected java.lang.String |
outboundProxy
|
protected SipApplicationDispatcher |
sipApplicationDispatcher
|
protected java.lang.String |
sipApplicationDispatcherClassName
|
protected int |
sipMessageQueueSize
|
| 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[] |
findSipConnectors()
|
java.lang.String |
getAdditionalParameterableHeaders()
|
int |
getBackToNormalMemoryThreshold()
|
int |
getBackToNormalSipMessageQueueSize()
|
int |
getBaseTimerInterval()
|
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()
|
boolean |
getGatherStatistics()
PRESENT TO ACCOMODATE JOPR. |
java.lang.String |
getInfo()
|
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()
|
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. |
boolean |
isBypassRequestExecutor()
|
boolean |
isBypassResponseExecutor()
|
boolean |
isGatherStatistics()
|
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 |
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 |
setDispatcherThreadPoolSize(int dispatcherThreadPoolSize)
|
void |
setGatherStatistics(boolean skipStatistics)
|
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 |
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 |
|---|
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
| 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.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 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[] 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.MalformedObjectNameException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||