org.mobicents.slee.resource.mgcp.ra
Class MgcpResourceAdaptor

java.lang.Object
  extended by org.mobicents.slee.resource.mgcp.ra.MgcpResourceAdaptor
All Implemented Interfaces:
javax.slee.resource.ResourceAdaptor

public class MgcpResourceAdaptor
extends java.lang.Object
implements javax.slee.resource.ResourceAdaptor

Author:
Oleg Kulikov, eduardomartins, amit bhayani

Field Summary
static int ACTIVITY_FLAGS
           
 
Constructor Summary
MgcpResourceAdaptor()
           
 
Method Summary
 void activityEnded(javax.slee.resource.ActivityHandle handle)
           
 void activityUnreferenced(javax.slee.resource.ActivityHandle arg0)
           
 void administrativeRemove(javax.slee.resource.ActivityHandle arg0)
           
protected  void endActivity(javax.slee.resource.ActivityHandle handle)
           
 void eventProcessingFailed(javax.slee.resource.ActivityHandle arg0, javax.slee.resource.FireableEventType arg1, java.lang.Object arg2, javax.slee.Address arg3, javax.slee.resource.ReceivableService arg4, int arg5, javax.slee.resource.FailureReason arg6)
           
 void eventProcessingSuccessful(javax.slee.resource.ActivityHandle arg0, javax.slee.resource.FireableEventType arg1, java.lang.Object arg2, javax.slee.Address arg3, javax.slee.resource.ReceivableService arg4, int arg5)
           
 void eventUnreferenced(javax.slee.resource.ActivityHandle arg0, javax.slee.resource.FireableEventType arg1, java.lang.Object arg2, javax.slee.Address arg3, javax.slee.resource.ReceivableService arg4, int arg5)
           
 java.lang.Object getActivity(javax.slee.resource.ActivityHandle handle)
           
 javax.slee.resource.ActivityHandle getActivityHandle(java.lang.Object activity)
           
 javax.slee.resource.Marshaler getMarshaler()
           
protected  MgcpActivityManager getMgcpActivityManager()
           
 java.lang.Object getResourceAdaptorInterface(java.lang.String arg0)
           
protected  javax.slee.resource.SleeEndpoint getSleeEndpoint()
           
 void processMgcpCommandEvent(jain.protocol.ip.mgcp.JainMgcpCommandEvent event)
           
 void processMgcpResponseEvent(jain.protocol.ip.mgcp.JainMgcpResponseEvent response, jain.protocol.ip.mgcp.JainMgcpEvent command)
          Processes a Response Event object (acknowledgment to a Command Event object) received from a JainMgcpProvider.
 void processRxTimeout(jain.protocol.ip.mgcp.JainMgcpCommandEvent event)
          Processes a timeout on a received JainMgcpCommandEvent event transaction, to prevent further failures the activity will end.
 void processTxRxTimeout(jain.protocol.ip.mgcp.JainMgcpCommandEvent event)
          Processes a timeout occurred in a sent JainMgcpCommandEvent event transaction, to prevent further failures the activity will end after the RA fires the TransactionTimeout event.
 void processTxTimeout(jain.protocol.ip.mgcp.JainMgcpCommandEvent event)
           
 void queryLiveness(javax.slee.resource.ActivityHandle handle)
           
 void raActive()
           
 void raConfigurationUpdate(javax.slee.resource.ConfigProperties arg0)
           
 void raConfigure(javax.slee.resource.ConfigProperties properties)
           
 void raInactive()
           
 void raStopping()
           
 void raUnconfigure()
           
 void raVerifyConfiguration(javax.slee.resource.ConfigProperties properties)
           
protected  void sendingCreateConnectionResponse(jain.protocol.ip.mgcp.message.CreateConnectionResponse event)
          Indicates the provider will send the specified CreateConnectionResponse event, which contains the ConnectionIdentifier to update the MgcpConnectionActivity related with the Mgcp transaction.
 void serviceActive(javax.slee.resource.ReceivableService receivableService)
           
 void serviceInactive(javax.slee.resource.ReceivableService receivableService)
           
 void serviceStopping(javax.slee.resource.ReceivableService receivableService)
           
 void setResourceAdaptorContext(javax.slee.resource.ResourceAdaptorContext raContext)
           
 void unsetResourceAdaptorContext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTIVITY_FLAGS

public static final int ACTIVITY_FLAGS
See Also:
Constant Field Values
Constructor Detail

MgcpResourceAdaptor

public MgcpResourceAdaptor()
Method Detail

activityEnded

public void activityEnded(javax.slee.resource.ActivityHandle handle)
Specified by:
activityEnded in interface javax.slee.resource.ResourceAdaptor

activityUnreferenced

public void activityUnreferenced(javax.slee.resource.ActivityHandle arg0)
Specified by:
activityUnreferenced in interface javax.slee.resource.ResourceAdaptor

administrativeRemove

public void administrativeRemove(javax.slee.resource.ActivityHandle arg0)
Specified by:
administrativeRemove in interface javax.slee.resource.ResourceAdaptor

eventProcessingFailed

public void eventProcessingFailed(javax.slee.resource.ActivityHandle arg0,
                                  javax.slee.resource.FireableEventType arg1,
                                  java.lang.Object arg2,
                                  javax.slee.Address arg3,
                                  javax.slee.resource.ReceivableService arg4,
                                  int arg5,
                                  javax.slee.resource.FailureReason arg6)
Specified by:
eventProcessingFailed in interface javax.slee.resource.ResourceAdaptor

eventProcessingSuccessful

public void eventProcessingSuccessful(javax.slee.resource.ActivityHandle arg0,
                                      javax.slee.resource.FireableEventType arg1,
                                      java.lang.Object arg2,
                                      javax.slee.Address arg3,
                                      javax.slee.resource.ReceivableService arg4,
                                      int arg5)
Specified by:
eventProcessingSuccessful in interface javax.slee.resource.ResourceAdaptor

eventUnreferenced

public void eventUnreferenced(javax.slee.resource.ActivityHandle arg0,
                              javax.slee.resource.FireableEventType arg1,
                              java.lang.Object arg2,
                              javax.slee.Address arg3,
                              javax.slee.resource.ReceivableService arg4,
                              int arg5)
Specified by:
eventUnreferenced in interface javax.slee.resource.ResourceAdaptor

getActivity

public java.lang.Object getActivity(javax.slee.resource.ActivityHandle handle)
Specified by:
getActivity in interface javax.slee.resource.ResourceAdaptor

getActivityHandle

public javax.slee.resource.ActivityHandle getActivityHandle(java.lang.Object activity)
Specified by:
getActivityHandle in interface javax.slee.resource.ResourceAdaptor

getMarshaler

public javax.slee.resource.Marshaler getMarshaler()
Specified by:
getMarshaler in interface javax.slee.resource.ResourceAdaptor

getResourceAdaptorInterface

public java.lang.Object getResourceAdaptorInterface(java.lang.String arg0)
Specified by:
getResourceAdaptorInterface in interface javax.slee.resource.ResourceAdaptor

queryLiveness

public void queryLiveness(javax.slee.resource.ActivityHandle handle)
Specified by:
queryLiveness in interface javax.slee.resource.ResourceAdaptor

raActive

public void raActive()
Specified by:
raActive in interface javax.slee.resource.ResourceAdaptor

raConfigurationUpdate

public void raConfigurationUpdate(javax.slee.resource.ConfigProperties arg0)
Specified by:
raConfigurationUpdate in interface javax.slee.resource.ResourceAdaptor

raConfigure

public void raConfigure(javax.slee.resource.ConfigProperties properties)
Specified by:
raConfigure in interface javax.slee.resource.ResourceAdaptor

raInactive

public void raInactive()
Specified by:
raInactive in interface javax.slee.resource.ResourceAdaptor

raStopping

public void raStopping()
Specified by:
raStopping in interface javax.slee.resource.ResourceAdaptor

raUnconfigure

public void raUnconfigure()
Specified by:
raUnconfigure in interface javax.slee.resource.ResourceAdaptor

raVerifyConfiguration

public void raVerifyConfiguration(javax.slee.resource.ConfigProperties properties)
                           throws javax.slee.resource.InvalidConfigurationException
Specified by:
raVerifyConfiguration in interface javax.slee.resource.ResourceAdaptor
Throws:
javax.slee.resource.InvalidConfigurationException

serviceActive

public void serviceActive(javax.slee.resource.ReceivableService receivableService)
Specified by:
serviceActive in interface javax.slee.resource.ResourceAdaptor

serviceInactive

public void serviceInactive(javax.slee.resource.ReceivableService receivableService)
Specified by:
serviceInactive in interface javax.slee.resource.ResourceAdaptor

serviceStopping

public void serviceStopping(javax.slee.resource.ReceivableService receivableService)
Specified by:
serviceStopping in interface javax.slee.resource.ResourceAdaptor

setResourceAdaptorContext

public void setResourceAdaptorContext(javax.slee.resource.ResourceAdaptorContext raContext)
Specified by:
setResourceAdaptorContext in interface javax.slee.resource.ResourceAdaptor

unsetResourceAdaptorContext

public void unsetResourceAdaptorContext()
Specified by:
unsetResourceAdaptorContext in interface javax.slee.resource.ResourceAdaptor

processMgcpCommandEvent

public void processMgcpCommandEvent(jain.protocol.ip.mgcp.JainMgcpCommandEvent event)

processMgcpResponseEvent

public void processMgcpResponseEvent(jain.protocol.ip.mgcp.JainMgcpResponseEvent response,
                                     jain.protocol.ip.mgcp.JainMgcpEvent command)
Processes a Response Event object (acknowledgment to a Command Event object) received from a JainMgcpProvider.

Parameters:
response - The JAIN MGCP Response Event Object that is to be processed.

endActivity

protected void endActivity(javax.slee.resource.ActivityHandle handle)

getSleeEndpoint

protected javax.slee.resource.SleeEndpoint getSleeEndpoint()

getMgcpActivityManager

protected MgcpActivityManager getMgcpActivityManager()

sendingCreateConnectionResponse

protected void sendingCreateConnectionResponse(jain.protocol.ip.mgcp.message.CreateConnectionResponse event)
Indicates the provider will send the specified CreateConnectionResponse event, which contains the ConnectionIdentifier to update the MgcpConnectionActivity related with the Mgcp transaction.

Parameters:
event -

processTxRxTimeout

public void processTxRxTimeout(jain.protocol.ip.mgcp.JainMgcpCommandEvent event)
Processes a timeout occurred in a sent JainMgcpCommandEvent event transaction, to prevent further failures the activity will end after the RA fires the TransactionTimeout event.

Parameters:
event - the command sent.

processRxTimeout

public void processRxTimeout(jain.protocol.ip.mgcp.JainMgcpCommandEvent event)
Processes a timeout on a received JainMgcpCommandEvent event transaction, to prevent further failures the activity will end.

Parameters:
event - the command sent.

processTxTimeout

public void processTxTimeout(jain.protocol.ip.mgcp.JainMgcpCommandEvent event)


Copyright © 2010. All Rights Reserved.