|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.media.server.mgcp.controller.signal.Signal
public abstract class Signal
Bridges the gap between the MGCP signal/event model and server SPI.
The Signal can be
| Field Summary | |
|---|---|
protected ArrayList<Text> |
events
Requested events |
| Constructor Summary | |
|---|---|
Signal(String name)
|
|
| Method Summary | |
|---|---|
boolean |
accept(Text event)
|
abstract void |
cancel()
|
protected void |
complete()
|
abstract boolean |
doAccept(Text event)
|
abstract void |
execute()
Executes this signal |
Connection |
getConnection(String ID)
|
Endpoint |
getEndpoint()
|
Text |
getName()
Gets the name of the signal. |
protected MgcpPackage |
getPackage()
Gets access to the package to holding this signal. |
protected RequestedEvent |
getTrigger()
Gets the signal request which triggered this signal executor. |
void |
reset()
|
protected void |
sendEvent(Text evt)
|
protected void |
sendEvent(Text pckName,
Text evtName,
Text params)
|
protected void |
setPackage(MgcpPackage mgcpPackage)
Assigns package to which this signal belongs. |
void |
setTrigger(Text packageName,
Text eventName,
Text options)
Triggers this signal executor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ArrayList<Text> events
| Constructor Detail |
|---|
public Signal(String name)
| Method Detail |
|---|
public Text getName()
protected void setPackage(MgcpPackage mgcpPackage)
mgcpPackage - package instance.protected MgcpPackage getPackage()
public void setTrigger(Text packageName,
Text eventName,
Text options)
packageName - the name of packageevent - name the name of signalprotected RequestedEvent getTrigger()
public abstract void execute()
public boolean accept(Text event)
public abstract boolean doAccept(Text event)
public void reset()
protected void sendEvent(Text evt)
protected void sendEvent(Text pckName,
Text evtName,
Text params)
public abstract void cancel()
protected void complete()
public Endpoint getEndpoint()
public Connection getConnection(String ID)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||