org.mobicents.media.server.mgcp.tx
Class Action

java.lang.Object
  extended by org.mobicents.media.server.mgcp.tx.Action
All Implemented Interfaces:
org.mobicents.media.server.scheduler.TaskChainListener
Direct Known Subclasses:
CreateConnectionCmd, DeleteConnectionCmd, ModifyConnectionCmd, NotificationRequestCmd, NotifyCmd

public class Action
extends Object
implements org.mobicents.media.server.scheduler.TaskChainListener

Defines action.

Author:
kulikov

Field Summary
protected  ActionListener listener
           
 
Constructor Summary
protected Action()
          Creates new instance of the action.
 
Method Summary
 MgcpEvent getEvent()
          Gets the event caused this action.
 void onException(Exception e)
          (Non Java-doc.)
 void onTermination()
          (Non Java-doc.)
 void rollback()
          Rollback previously made changes.
 void setActionHandler(org.mobicents.media.server.scheduler.TaskChain handler)
          Assigns action handler.
protected  void setEvent(MgcpEvent event)
          Assigns the event caused this action.
 void setRollbackHandler(org.mobicents.media.server.scheduler.Task handler)
          Assigns rollback handler
 void start(Transaction tx)
          Starts action execution.
protected  Transaction transaction()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listener

protected ActionListener listener
Constructor Detail

Action

protected Action()
Creates new instance of the action.

Method Detail

setEvent

protected void setEvent(MgcpEvent event)
Assigns the event caused this action.

Parameters:
event - the object describes the event

getEvent

public MgcpEvent getEvent()
Gets the event caused this action.

Returns:
the event object

setActionHandler

public void setActionHandler(org.mobicents.media.server.scheduler.TaskChain handler)
Assigns action handler.

Parameters:
handler - action handler

setRollbackHandler

public void setRollbackHandler(org.mobicents.media.server.scheduler.Task handler)
Assigns rollback handler

Parameters:
handler - rollback handler.

start

public void start(Transaction tx)
Starts action execution.

Parameters:
context - transaction context

rollback

public void rollback()
Rollback previously made changes.


onTermination

public void onTermination()
(Non Java-doc.)

Specified by:
onTermination in interface org.mobicents.media.server.scheduler.TaskChainListener
See Also:
TaskChainListener.onTermination()

onException

public void onException(Exception e)
(Non Java-doc.)

Specified by:
onException in interface org.mobicents.media.server.scheduler.TaskChainListener
See Also:
org.mobicents.media.server.scheduler.TaskChainListener#onException()

transaction

protected Transaction transaction()


Copyright © 2012 TeleStax, Inc.. All Rights Reserved.