|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mobicents.slee.resource.mgcp.ra.MgcpResourceAdaptor
public class MgcpResourceAdaptor
| Field Summary |
|---|
| Fields inherited from interface javax.slee.resource.ResourceAdaptor |
|---|
SBB_PROCESSED_EVENT |
| Constructor Summary | |
|---|---|
MgcpResourceAdaptor()
Creates a new instance of MgcpResourceAdaptor |
|
| Method Summary | |
|---|---|
void |
activityEnded(javax.slee.resource.ActivityHandle handle)
The SLEE calls this method to inform the resource adaptor that the SLEE has completed activity end processing for the activity represented by the activity handle. |
void |
activityUnreferenced(javax.slee.resource.ActivityHandle handle)
The SLEE calls this method to inform the resource adaptor that the activity's Activity Context object is no longer attached to any SBB entities and is no longer referenced by any SLEE Facilities. |
protected void |
endActivity(javax.slee.resource.ActivityHandle handle)
|
void |
entityActivated()
This method is called by the SLEE to notify a resource adaptor object that the resource adaptor entity is being activated. |
void |
entityCreated(javax.slee.resource.BootstrapContext bootstrapContext)
This method is called by the SLEE when a resource adaptor object instance is bootstrapped, either when a resource adaptor entity is created or during SLEE startup. |
void |
entityDeactivated()
This method is called by the SLEE to notify the resource adaptor object that the SLEE is not aware of any activities owned by the resource adaptor entity and thus is transitioning the resource adaptor entity from the Stopping state to the Inactive state. |
void |
entityDeactivating()
The method is called by the SLEE to notify the resource adaptor object that the resource adaptor entity is deactivating. |
void |
entityRemoved()
This method is called by the SLEE when a resource adaptor object instance is being removed, either when a resource adaptor entity is deleted or during SLEE shutdown. |
void |
eventProcessingFailed(javax.slee.resource.ActivityHandle handle,
java.lang.Object event,
int eventID,
javax.slee.Address address,
int flags,
javax.slee.resource.FailureReason reason)
The SLEE calls this method to inform the resource adaptor object that the specified event was processed unsuccessfully by the SLEE. |
void |
eventProcessingSuccessful(javax.slee.resource.ActivityHandle handle,
java.lang.Object event,
int eventID,
javax.slee.Address address,
int flags)
The SLEE calls this method to inform the resource adaptor object that the specified event was processed successfully by the SLEE. |
java.lang.Object |
getActivity(javax.slee.resource.ActivityHandle handle)
The SLEE calls this method to get access to the underlying activity for an activity handle. |
javax.slee.resource.ActivityHandle |
getActivityHandle(java.lang.Object activity)
The SLEE calls this method to get an activity handle for an activity created by the underlying resource. |
javax.slee.resource.Marshaler |
getMarshaler()
The SLEE calls this method to get reference to the Marshaler object. |
MgcpActivityManager |
getMgcpActivityManager()
|
java.lang.Integer |
getPort()
|
java.lang.Object |
getSBBResourceAdaptorInterface(java.lang.String string)
The SLEE calls this method to get access to the underlying resource adaptor interface that enables the SBB to invoke the resource adaptor, to send messages for example. |
javax.slee.resource.SleeEndpoint |
getSleeEndpoint()
|
org.mobicents.mgcp.stack.JainMgcpStackImpl |
getStack()
|
void |
processMgcpCommandEvent(jain.protocol.ip.mgcp.JainMgcpCommandEvent event)
Processes a Command Event object received from a JainMgcpProvider. |
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 |
processTxTimeout(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 |
queryLiveness(javax.slee.resource.ActivityHandle handle)
The SLEE calls this method to query if a specific activity belonging to this resource adaptor object is alive. |
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 |
serviceActivated(java.lang.String serviceKey)
The SLEE calls this method to inform the resource adaptor that a service has been activated and is interested in the event types associated to the service key. |
void |
serviceDeactivated(java.lang.String serviceKey)
The SLEE calls this method to inform the SLEE that a service has been deactivated and is no longer interested in the event types associated to the service key. |
void |
serviceInstalled(java.lang.String serviceKey,
int[] eventIDs,
java.lang.String[] resourceOptions)
The SLEE calls this method to signify to the resource adaptor that a service has been installed and is interested in a specific set of events. |
void |
serviceUninstalled(java.lang.String serviceKey)
The SLEE calls this method to signify that a service has been uninstalled in the SLEE. |
void |
setPort(java.lang.Integer port)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MgcpResourceAdaptor()
| Method Detail |
|---|
public java.lang.Integer getPort()
public void setPort(java.lang.Integer port)
public MgcpActivityManager getMgcpActivityManager()
public org.mobicents.mgcp.stack.JainMgcpStackImpl getStack()
public void entityCreated(javax.slee.resource.BootstrapContext bootstrapContext)
throws javax.slee.resource.ResourceException
entityCreated in interface javax.slee.resource.ResourceAdaptorbootstrapContext - contains references to the SLEE endpoint and the facilities
that may be used by the resource adaptor instance.
javax.slee.resource.ResourceExceptionpublic void entityRemoved()
entityRemoved in interface javax.slee.resource.ResourceAdaptor
public void entityActivated()
throws javax.slee.resource.ResourceException
entityActivated in interface javax.slee.resource.ResourceAdaptorjavax.slee.resource.ResourceExceptionpublic void entityDeactivating()
entityDeactivating in interface javax.slee.resource.ResourceAdaptorpublic void entityDeactivated()
entityDeactivated in interface javax.slee.resource.ResourceAdaptor
public void eventProcessingSuccessful(javax.slee.resource.ActivityHandle handle,
java.lang.Object event,
int eventID,
javax.slee.Address address,
int flags)
eventProcessingSuccessful in interface javax.slee.resource.ResourceAdaptorhandle - the activity handle of the activity upon which the event was
fired.event - is the event fired on the activity. This value may be null if
no actual event was fired.eventID - the unique identifier of the event type fired to the SLEE. If
the event argument is null, the value of this parameter is
undefined.address - the default address on which the event was fired. If a null
default address was specified, this value is also null. If the
event argument is null, the value of this parameter is
undefined.flags - the necessary information that enables any post-event
processing required by the resource adaptor.
public void eventProcessingFailed(javax.slee.resource.ActivityHandle handle,
java.lang.Object event,
int eventID,
javax.slee.Address address,
int flags,
javax.slee.resource.FailureReason reason)
eventProcessingFailed in interface javax.slee.resource.ResourceAdaptorhandle - the activity handle of the activity upon which the event was
fired.event - is the event fired on the activity. This value may be null if
no actual event was fired.eventID - the unique identifier of the event type fired to the SLEE. If
the event argument is null, the value of this parameter is
undefined.address - the default address on which the event was fired. If a null
default address was specified, this value is also null. If the
event argument is null, the value of this parameter is
undefined.flags - the necessary information that enables any post-event
processing required by the resource adaptor.reason - informs the resource adaptor why the event processing failed.public void activityEnded(javax.slee.resource.ActivityHandle handle)
activityEnded in interface javax.slee.resource.ResourceAdaptorhandle - the activity handle of the activity which has ended.public void activityUnreferenced(javax.slee.resource.ActivityHandle handle)
activityUnreferenced in interface javax.slee.resource.ResourceAdaptorhandle - the activity handle of the activity which has been
unreferenced.public void queryLiveness(javax.slee.resource.ActivityHandle handle)
queryLiveness in interface javax.slee.resource.ResourceAdaptorhandle - the activity which the SLEE is querying.public java.lang.Object getActivity(javax.slee.resource.ActivityHandle handle)
getActivity in interface javax.slee.resource.ResourceAdaptorthe - activity handle of the requested activity.
public javax.slee.resource.ActivityHandle getActivityHandle(java.lang.Object activity)
getActivityHandle in interface javax.slee.resource.ResourceAdaptoractivity - the activity object.
public java.lang.Object getSBBResourceAdaptorInterface(java.lang.String string)
getSBBResourceAdaptorInterface in interface javax.slee.resource.ResourceAdaptorpublic javax.slee.resource.Marshaler getMarshaler()
Marshaler interface. The
Marshaler is used by the SLEE to convert between object and distributable
forms of events and event handles. This ensures the SLEE has flexibility
to process events, for example in a clustered environment it is
conceptually possible for the SLEE to process the event on a node other
than the node the event was created on. The method takes no input
parameters. All resource adaptors must implement a Marshaler object hence
this method must return a non-null value.
getMarshaler in interface javax.slee.resource.ResourceAdaptor
public void serviceInstalled(java.lang.String serviceKey,
int[] eventIDs,
java.lang.String[] resourceOptions)
serviceInstalled in interface javax.slee.resource.ResourceAdaptorserviceKey - is the key of the service associated to the resource adaptor.eventIDs - the set of events the service identified by the service key is
interested in.resourceOptions - the set of resource options that map to the events that are
included in this filter.public void serviceUninstalled(java.lang.String serviceKey)
serviceUninstalled in interface javax.slee.resource.ResourceAdaptorserviceKey - the key of the service associated to the resource adaptor.public void serviceActivated(java.lang.String serviceKey)
serviceActivated in interface javax.slee.resource.ResourceAdaptorserviceKey - the key of the service associated to the resource adaptor.public void serviceDeactivated(java.lang.String serviceKey)
serviceDeactivated in interface javax.slee.resource.ResourceAdaptorthe - key of the service currently active in the resource adaptor.public javax.slee.resource.SleeEndpoint getSleeEndpoint()
protected void endActivity(javax.slee.resource.ActivityHandle handle)
public void processMgcpCommandEvent(jain.protocol.ip.mgcp.JainMgcpCommandEvent event)
event - received command event.
public void processMgcpResponseEvent(jain.protocol.ip.mgcp.JainMgcpResponseEvent response,
jain.protocol.ip.mgcp.JainMgcpEvent command)
response - The JAIN MGCP Response Event Object that is to be processed.public void processTxTimeout(jain.protocol.ip.mgcp.JainMgcpCommandEvent event)
JainMgcpCommandEvent event
transaction, to prevent further failures the activity will end after the
RA fires the TransactionTimeout event.
event - the command sent.public void processRxTimeout(jain.protocol.ip.mgcp.JainMgcpCommandEvent event)
JainMgcpCommandEvent event
transaction, to prevent further failures the activity will end.
event - the command sent.public void sendingCreateConnectionResponse(jain.protocol.ip.mgcp.message.CreateConnectionResponse event)
CreateConnectionResponse event, which contains the
ConnectionIdentifier to update the MgcpConnectionActivity
related with the Mgcp transaction.
event -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||