public class SipApplicationDispatcherImpl extends Object implements SipApplicationDispatcher, SipApplicationDispatcherImplMBean, MBeanRegistration, org.mobicents.ha.javax.sip.LoadBalancerHeartBeatingListener
| Modifier and Type | Class and Description |
|---|---|
class |
SipApplicationDispatcherImpl.CongestionControlTimerTask
Timer task that will gather information about congestion control
|
| Modifier and Type | Field and Description |
|---|---|
protected ScheduledFuture |
congestionControlTimerFuture |
protected SipApplicationDispatcherImpl.CongestionControlTimerTask |
congestionControlTimerTask |
protected String |
domain |
protected MBeanServer |
mserver |
protected ObjectName |
oname |
protected javax.sip.SipStack |
sipStack |
| Constructor and Description |
|---|
SipApplicationDispatcherImpl() |
protected javax.sip.SipStack sipStack
protected transient SipApplicationDispatcherImpl.CongestionControlTimerTask congestionControlTimerTask
protected transient ScheduledFuture congestionControlTimerFuture
protected String domain
protected ObjectName oname
protected MBeanServer mserver
public void init()
throws IllegalArgumentException
init in interface SipApplicationDispatcherIllegalArgumentExceptionpublic void start()
start in interface SipApplicationDispatcherpublic void stop()
stop in interface SipApplicationDispatcherpublic void addSipApplication(String sipApplicationName, SipContext sipApplication)
addSipApplication in interface SipApplicationDispatcherpublic SipContext removeSipApplication(String sipApplicationName)
removeSipApplication in interface SipApplicationDispatcherpublic void processIOException(javax.sip.IOExceptionEvent event)
processIOException in interface javax.sip.SipListenerpublic int getNumberOfPendingMessages()
public void processRequest(javax.sip.RequestEvent requestEvent)
processRequest in interface javax.sip.SipListenerpublic void processResponse(javax.sip.ResponseEvent responseEvent)
processResponse in interface javax.sip.SipListenerpublic void processDialogTerminated(javax.sip.DialogTerminatedEvent dialogTerminatedEvent)
processDialogTerminated in interface javax.sip.SipListenerpublic void processDialogTimeout(gov.nist.javax.sip.DialogTimeoutEvent timeoutEvent)
processDialogTimeout in interface gov.nist.javax.sip.SipListenerExtpublic SipConnector findSipConnector(String ipAddress, int port, String transport)
public void processTimeout(javax.sip.TimeoutEvent timeoutEvent)
processTimeout in interface javax.sip.SipListenerpublic void processTransactionTerminated(javax.sip.TransactionTerminatedEvent transactionTerminatedEvent)
processTransactionTerminated in interface javax.sip.SipListenerpublic String getApplicationNameFromHash(String hash)
getApplicationNameFromHash in interface SipApplicationDispatcherpublic String getHashFromApplicationName(String appName)
getHashFromApplicationName in interface SipApplicationDispatcherpublic String getApplicationServerId()
getApplicationServerId in interface SipApplicationDispatcherpublic String getApplicationServerIdHash()
getApplicationServerIdHash in interface SipApplicationDispatcherpublic final boolean isRouteExternal(javax.sip.header.RouteHeader routeHeader)
isRouteExternal in interface SipApplicationDispatcherrouteHeader - the route to checkpublic final boolean isViaHeaderExternal(javax.sip.header.ViaHeader viaHeader)
isViaHeaderExternal in interface SipApplicationDispatcherviaHeader - the via header to checkpublic final boolean isExternal(String host, int port, String transport)
isExternal in interface SipApplicationDispatcherhost - can be hostname or ipaddressport - port numbertransport - transport usedpublic SipApplicationRouter getSipApplicationRouter()
getSipApplicationRouter in interface SipApplicationDispatcherpublic void setSipApplicationRouter(SipApplicationRouter sipApplicationRouter)
sipApplicationRouter - the sipApplicationRouter to setpublic SipNetworkInterfaceManager getSipNetworkInterfaceManager()
getSipNetworkInterfaceManager in interface SipApplicationDispatcherpublic MobicentsSipFactory getSipFactory()
getSipFactory in interface SipApplicationDispatcherpublic List<SipURI> getOutboundInterfaces()
getOutboundInterfaces in interface SipApplicationDispatcherpublic void addHostName(String hostName)
addHostName in interface SipApplicationDispatcherpublic Set<String> findHostNames()
findHostNames in interface SipApplicationDispatcherpublic void removeHostName(String hostName)
removeHostName in interface SipApplicationDispatcherpublic SipApplicationRouterInfo getNextInterestedApplication(MobicentsSipServletRequest sipServletRequest)
getNextInterestedApplication in interface SipApplicationDispatcherpublic ThreadPoolExecutor getAsynchronousExecutor()
getAsynchronousExecutor in interface SipApplicationDispatcherpublic Iterator<SipContext> findSipApplications()
findSipApplications in interface SipApplicationDispatcherstateInfo - the state info to serializepublic SipContext findSipApplication(String applicationName)
findSipApplication in interface SipApplicationDispatcherpublic org.mobicents.ext.javax.sip.dns.DNSServerLocator getDNSServerLocator()
getDNSServerLocator in interface SipApplicationDispatcherpublic void setDNSServerLocator(org.mobicents.ext.javax.sip.dns.DNSServerLocator dnsServerLocator)
setDNSServerLocator in interface SipApplicationDispatcherpublic ObjectName getObjectName()
public String getDomain()
getDomain in interface SipApplicationDispatcherpublic void setDomain(String domain)
setDomain in interface SipApplicationDispatcherpublic void postDeregister()
postDeregister in interface MBeanRegistrationpublic void postRegister(Boolean registrationDone)
postRegister in interface MBeanRegistrationpublic void preDeregister()
throws Exception
preDeregister in interface MBeanRegistrationExceptionpublic ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception
preRegister in interface MBeanRegistrationExceptionpublic String[] findInstalledSipApplications()
findInstalledSipApplications in interface SipApplicationDispatcherpublic Object retrieveApplicationRouterConfiguration()
retrieveApplicationRouterConfiguration in interface SipApplicationDispatcherpublic Map<String,List<? extends SipApplicationRouterInfo>> getApplicationRouterConfiguration()
getApplicationRouterConfiguration in interface SipApplicationDispatcherpublic void updateApplicationRouterConfiguration(Object configuration)
updateApplicationRouterConfiguration in interface SipApplicationDispatcherpublic Serializable retrieveApplicationRouterConfigurationString()
retrieveApplicationRouterConfigurationString in interface SipApplicationDispatcherpublic void updateApplicationRouterConfiguration(Serializable configuration)
updateApplicationRouterConfiguration in interface SipApplicationDispatcherpublic ConcurrencyControlMode getConcurrencyControlMode()
getConcurrencyControlMode in interface SipApplicationDispatcherpublic void setConcurrencyControlMode(ConcurrencyControlMode concurrencyControlMode)
setConcurrencyControlMode in interface SipApplicationDispatcherpublic int getQueueSize()
getQueueSize in interface SipApplicationDispatcherpublic void setQueueSize(int queueSize)
setQueueSize in interface SipApplicationDispatcherpublic void setConcurrencyControlModeByName(String concurrencyControlMode)
setConcurrencyControlModeByName in interface SipApplicationDispatcherpublic long getRequestsProcessed()
public Map<String,AtomicLong> getRequestsProcessedByMethod()
public Map<String,AtomicLong> getResponsesProcessedByStatusCode()
public long getRequestsProcessedByMethod(String method)
public long getResponsesProcessedByStatusCode(String statusCode)
public long getResponsesProcessed()
public void setCongestionControlCheckingInterval(long congestionControlCheckingInterval)
setCongestionControlCheckingInterval in interface SipApplicationDispatchercongestionControlCheckingInterval - the congestionControlCheckingInterval to setpublic long getCongestionControlCheckingInterval()
getCongestionControlCheckingInterval in interface SipApplicationDispatcherpublic void setCongestionControlPolicy(CongestionControlPolicy congestionControlPolicy)
setCongestionControlPolicy in interface SipApplicationDispatchercongestionControlPolicy - the congestionControlPolicy to setpublic void setCongestionControlPolicyByName(String congestionControlPolicy)
setCongestionControlPolicyByName in interface SipApplicationDispatcherpublic String getCongestionControlPolicyByName()
getCongestionControlPolicyByName in interface SipApplicationDispatcherpublic CongestionControlPolicy getCongestionControlPolicy()
getCongestionControlPolicy in interface SipApplicationDispatcherpublic void setMemoryThreshold(int memoryThreshold)
setMemoryThreshold in interface SipApplicationDispatchermemoryThreshold - the memoryThreshold to setpublic int getMemoryThreshold()
getMemoryThreshold in interface SipApplicationDispatcherpublic int getNumberOfMessagesInQueue()
getNumberOfMessagesInQueue in interface SipApplicationDispatcherpublic double getPercentageOfMemoryUsed()
getPercentageOfMemoryUsed in interface SipApplicationDispatcherpublic void setBypassRequestExecutor(boolean bypassRequestExecutor)
setBypassRequestExecutor in interface SipApplicationDispatcherbypassRequestExecutor - the bypassRequestExecutor to setpublic boolean isBypassRequestExecutor()
isBypassRequestExecutor in interface SipApplicationDispatcherpublic void setBypassResponseExecutor(boolean bypassResponseExecutor)
setBypassResponseExecutor in interface SipApplicationDispatcherbypassResponseExecutor - the bypassResponseExecutor to setpublic boolean isBypassResponseExecutor()
isBypassResponseExecutor in interface SipApplicationDispatcherpublic void setBaseTimerInterval(int baseTimerInterval)
setBaseTimerInterval in interface SipApplicationDispatcherbaseTimerInterval - the baseTimerInterval to setpublic int getBaseTimerInterval()
getBaseTimerInterval in interface SipApplicationDispatcherpublic void setT2Interval(int t2Interval)
setT2Interval in interface SipApplicationDispatchert2Interval - the t2Interval to setpublic int getT2Interval()
getT2Interval in interface SipApplicationDispatcherpublic void setT4Interval(int t4Interval)
setT4Interval in interface SipApplicationDispatchert4Interval - the t4Interval to setpublic int getT4Interval()
getT4Interval in interface SipApplicationDispatcherpublic void setTimerDInterval(int timerDInterval)
setTimerDInterval in interface SipApplicationDispatchertimerDInterval - the timerDInterval to setpublic int getTimerDInterval()
getTimerDInterval in interface SipApplicationDispatcherpublic String[] getExtensionsSupported()
getExtensionsSupported in interface SipApplicationDispatcherpublic String[] getRfcSupported()
getRfcSupported in interface SipApplicationDispatcherpublic void loadBalancerAdded(org.mobicents.ha.javax.sip.SipLoadBalancer sipLoadBalancer)
loadBalancerAdded in interface org.mobicents.ha.javax.sip.LoadBalancerHeartBeatingListenerpublic void loadBalancerRemoved(org.mobicents.ha.javax.sip.SipLoadBalancer sipLoadBalancer)
loadBalancerRemoved in interface org.mobicents.ha.javax.sip.LoadBalancerHeartBeatingListenerpublic void sendSwitchoverInstruction(String fromJvmRoute, String toJvmRoute)
sendSwitchoverInstruction in interface SipApplicationDispatcherinfo - public void setGatherStatistics(boolean skipStatistics)
setGatherStatistics in interface SipApplicationDispatcherskipStatistics - the skipStatistics to setpublic boolean isGatherStatistics()
isGatherStatistics in interface SipApplicationDispatcherpublic boolean getGatherStatistics()
public void setBackToNormalMemoryThreshold(int backToNormalMemoryThreshold)
setBackToNormalMemoryThreshold in interface SipApplicationDispatcherbackToNormalPercentageOfMemoryUsed - the backToNormalPercentageOfMemoryUsed to setpublic int getBackToNormalMemoryThreshold()
getBackToNormalMemoryThreshold in interface SipApplicationDispatcherpublic void setBackToNormalQueueSize(int backToNormalQueueSize)
setBackToNormalQueueSize in interface SipApplicationDispatcherbackToNormalQueueSize - the backToNormalQueueSize to setpublic int getBackToNormalQueueSize()
getBackToNormalQueueSize in interface SipApplicationDispatcherpublic javax.sip.SipStack getSipStack()
getSipStack in interface SipApplicationDispatcherpublic void setSipStack(javax.sip.SipStack sipStack)
setSipStack in interface SipApplicationDispatcherprotected void startSipStack()
throws javax.sip.SipException
javax.sip.SipExceptionprotected void stopSipStack()
public String getVersion()
getVersion in interface SipApplicationDispatcherpublic SipService getSipService()
getSipService in interface SipApplicationDispatcherpublic void setSipService(SipService sipService)
setSipService in interface SipApplicationDispatcherCopyright © 2014. All Rights Reserved.