org.mobicents.mscontrol.impl
Class MsSessionImpl

java.lang.Object
  extended by org.mobicents.mscontrol.impl.MsActionPerformer
      extended by org.mobicents.mscontrol.impl.MsSessionImpl
All Implemented Interfaces:
java.io.Serializable, java.lang.Runnable, org.mobicents.mscontrol.MsSession

public class MsSessionImpl
extends MsActionPerformer
implements org.mobicents.mscontrol.MsSession

Author:
Oleg Kulikov, amit.bhayani
See Also:
Serialized Form

Field Summary
protected  java.util.ArrayList<org.mobicents.mscontrol.MsConnection> connections
           
protected  java.util.ArrayList<org.mobicents.mscontrol.MsLink> links
           
protected  MsProviderImpl provider
           
 
Fields inherited from class org.mobicents.mscontrol.impl.MsActionPerformer
taskList
 
Constructor Summary
MsSessionImpl(MsProviderImpl provider, java.util.concurrent.ExecutorService eventQueue)
          Creates a new instance of MsSessionImpl
 
Method Summary
 void addSessionListener(org.mobicents.mscontrol.MsSessionListener listener)
          (Non Java-doc).
 org.mobicents.mscontrol.MsLink createLink(org.mobicents.mscontrol.MsLinkMode mode)
          (Non Java-doc).
 org.mobicents.mscontrol.MsConnection createNetworkConnection(java.lang.String trunkName)
          (Non Java-doc).
 java.util.List<org.mobicents.mscontrol.MsConnection> getConnections()
           
 java.lang.String getId()
           
 java.util.List<org.mobicents.mscontrol.MsLink> getLinks()
           
 org.mobicents.mscontrol.MsProvider getProvider()
          (Non Java-doc).
 org.mobicents.mscontrol.MsSessionState getState()
          (Non Java-doc).
protected  void removeConnection(org.mobicents.mscontrol.MsConnection msConnection)
           
protected  void removeLink(org.mobicents.mscontrol.MsLink link)
           
 void removeSessionListener(org.mobicents.mscontrol.MsSessionListener listener)
          (Non Java-doc).
protected  void sendEvent(java.lang.Runnable evt)
           
 java.lang.String toString()
          Return the string representation of the session.
 
Methods inherited from class org.mobicents.mscontrol.impl.MsActionPerformer
run, submit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

provider

protected MsProviderImpl provider

links

protected java.util.ArrayList<org.mobicents.mscontrol.MsLink> links

connections

protected java.util.ArrayList<org.mobicents.mscontrol.MsConnection> connections
Constructor Detail

MsSessionImpl

public MsSessionImpl(MsProviderImpl provider,
                     java.util.concurrent.ExecutorService eventQueue)
Creates a new instance of MsSessionImpl

Method Detail

getId

public java.lang.String getId()
Specified by:
getId in interface org.mobicents.mscontrol.MsSession

getProvider

public org.mobicents.mscontrol.MsProvider getProvider()
(Non Java-doc).

Specified by:
getProvider in interface org.mobicents.mscontrol.MsSession
See Also:
MsSession.getProvider().

getState

public org.mobicents.mscontrol.MsSessionState getState()
(Non Java-doc).

Specified by:
getState in interface org.mobicents.mscontrol.MsSession
See Also:
MsSession.getState().

createLink

public org.mobicents.mscontrol.MsLink createLink(org.mobicents.mscontrol.MsLinkMode mode)
(Non Java-doc).

Specified by:
createLink in interface org.mobicents.mscontrol.MsSession
See Also:
MsSession.getProvider().

createNetworkConnection

public org.mobicents.mscontrol.MsConnection createNetworkConnection(java.lang.String trunkName)
(Non Java-doc).

Specified by:
createNetworkConnection in interface org.mobicents.mscontrol.MsSession
See Also:
org.mobicents.mscontrol.MsSession#createNetworkConnection().

sendEvent

protected void sendEvent(java.lang.Runnable evt)

addSessionListener

public void addSessionListener(org.mobicents.mscontrol.MsSessionListener listener)
(Non Java-doc).

Specified by:
addSessionListener in interface org.mobicents.mscontrol.MsSession
See Also:
MsSession.addSessionListener(MsSessionListener).

removeSessionListener

public void removeSessionListener(org.mobicents.mscontrol.MsSessionListener listener)
(Non Java-doc).

Specified by:
removeSessionListener in interface org.mobicents.mscontrol.MsSession
See Also:
MsSession.removeSessionListener(MsSessionListener).

getConnections

public java.util.List<org.mobicents.mscontrol.MsConnection> getConnections()
Specified by:
getConnections in interface org.mobicents.mscontrol.MsSession

getLinks

public java.util.List<org.mobicents.mscontrol.MsLink> getLinks()
Specified by:
getLinks in interface org.mobicents.mscontrol.MsSession

removeConnection

protected void removeConnection(org.mobicents.mscontrol.MsConnection msConnection)

removeLink

protected void removeLink(org.mobicents.mscontrol.MsLink link)

toString

public java.lang.String toString()
Return the string representation of the session.

Overrides:
toString in class java.lang.Object
Returns:
text view of the endpoint which includes unique identifier of the session.


Copyright © 2009. All Rights Reserved.