org.mobicents.mscontrol
Interface MsConnectionListener

All Superinterfaces:
java.io.Serializable

public interface MsConnectionListener
extends java.io.Serializable

The class interested in receiving the MsConnectionEvent should implement this interface. When ever there is change in state of MsConnection, instance of MsConnectionEvent is fired.

Author:
Oleg Kulikov, amit.bhayani

Method Summary
 void connectionCreated(MsConnectionEvent event)
          This method is called when the MsConnectionEventID.CONNECTION_CREATED is fired.
 void connectionDeleted(MsConnectionEvent event)
          This method is called when MsConnectionEventID.CONNECTION_DELETED is fired.
 void connectionInitialized(MsConnectionEvent event)
          This method is called when the MsConnectionEventID.CONNECTION_INITIALIZED is fired.
 void connectionModifed(MsConnectionEvent event)
          This method is called when MsConnectionEventID.CONNECTION_MODIFIED is fired.
 void txFailed(MsConnectionEvent event)
          This method is called when MsConnectionEventID.TX_FAILED is fired.
 

Method Detail

connectionInitialized

void connectionInitialized(MsConnectionEvent event)
This method is called when the MsConnectionEventID.CONNECTION_INITIALIZED is fired. MsConnection is created by calling MsSession.createNetworkConnection() and MsCOnnection

Parameters:
event -

connectionCreated

void connectionCreated(MsConnectionEvent event)
This method is called when the MsConnectionEventID.CONNECTION_CREATED is fired. Fired when MsConnection.modify(String localDesc, String remoteDesc) is called and creation of org.mobicents.media.server.spi.Connection is successful

Parameters:
event -

connectionModifed

void connectionModifed(MsConnectionEvent event)
This method is called when MsConnectionEventID.CONNECTION_MODIFIED is fired. Fired when MsConnection.modify(String localDesc, String remoteDesc) is called and modification of org.mobicents.media.server.spi.Connection is successful

Parameters:
event -

connectionDeleted

void connectionDeleted(MsConnectionEvent event)
This method is called when MsConnectionEventID.CONNECTION_DELETED is fired. Fired when MsConnection.release() is called.

Parameters:
event -

txFailed

void txFailed(MsConnectionEvent event)
This method is called when MsConnectionEventID.TX_FAILED is fired. Fired when creation of org.mobicents.media.server.spi.Connection fails when MsConnection.modify(String localDesc, String remoteDesc) is called

Parameters:
event -


Copyright © 2008. All Rights Reserved.