|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.mgcp.stack.EndpointHandler
public class EndpointHandler
Start time:14:39:50 2008-11-21
Project: mobicents-media-server-controllers
| Field Summary | |
|---|---|
protected java.util.TreeSet<jain.protocol.ip.mgcp.message.parms.ConnectionIdentifier> |
connectionIds
|
protected java.lang.String |
endpointId
|
protected ThreadPoolQueueExecutor |
executor
EndpointWide notification requests |
protected java.lang.String |
fakeId
|
protected static org.apache.log4j.Logger |
logger
|
protected java.util.List<TransactionHandlerManagement> |
ongoingTransactions
|
protected java.util.Set<jain.protocol.ip.mgcp.message.parms.RequestedEvent> |
requestedEvents
|
protected EndpointHandlerManager |
stack
|
protected boolean |
useFakeId
|
| Constructor Summary | |
|---|---|
EndpointHandler(EndpointHandlerManager jainMgcpStackImpl,
EndpointHandlerFactory factory)
|
|
| Method Summary | |
|---|---|
void |
addTransactionHandler(TransactionHandlerManagement handler)
Method called once tx has been created |
void |
commandDelivered(jain.protocol.ip.mgcp.JainMgcpCommandEvent commandEvent,
jain.protocol.ip.mgcp.JainMgcpResponseEvent event,
TransactionHandlerManagement handler)
Should be called when response command is delivered - either sent or received. This method should take care of initializing another endpoint handler for cases like CRCX with wildcard and actual name of endpoint in response |
void |
commandDelivered(jain.protocol.ip.mgcp.JainMgcpCommandEvent commandEvent,
TransactionHandlerManagement handler)
Should be called when reqeust command is delivered - either sent or received. |
void |
doEndChecks()
Should be called in case something changes - connection list change, subscription list change, tx termination/completition |
java.lang.String |
getFakeId()
|
void |
init(java.lang.String endpointId)
|
static boolean |
isAllOfWildcard(java.lang.String endpointId)
|
static boolean |
isAnyOfWildcard(java.lang.String endpointId)
|
static boolean |
isWildCardEndpointName(java.lang.String endpointId)
|
protected void |
processRequestedEvents(jain.protocol.ip.mgcp.message.parms.NotifiedEntity entity,
jain.protocol.ip.mgcp.message.parms.RequestedEvent[] rEvents)
|
void |
processRxTimeout(jain.protocol.ip.mgcp.JainMgcpCommandEvent commandEvent,
TransactionHandlerManagement transactionHandler)
Called when remotely created tx times out |
void |
processTxTimeout(jain.protocol.ip.mgcp.JainMgcpCommandEvent commandEvent,
TransactionHandlerManagement transactionHandler)
Called when localy initiated transaction times out |
void |
scheduleTransactionHandler(TransactionHandlerManagement th)
|
void |
setUseFake(boolean b)
|
java.lang.String |
toString()
|
void |
transactionHandlerDeleted(TransactionHandlerManagement th)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger logger
protected java.util.TreeSet<jain.protocol.ip.mgcp.message.parms.ConnectionIdentifier> connectionIds
protected ThreadPoolQueueExecutor executor
protected java.util.List<TransactionHandlerManagement> ongoingTransactions
protected EndpointHandlerManager stack
protected java.lang.String endpointId
protected java.lang.String fakeId
protected boolean useFakeId
protected java.util.Set<jain.protocol.ip.mgcp.message.parms.RequestedEvent> requestedEvents
| Constructor Detail |
|---|
public EndpointHandler(EndpointHandlerManager jainMgcpStackImpl,
EndpointHandlerFactory factory)
| Method Detail |
|---|
public void init(java.lang.String endpointId)
public java.lang.String getFakeId()
public void addTransactionHandler(TransactionHandlerManagement handler)
handler - public void scheduleTransactionHandler(TransactionHandlerManagement th)
public void commandDelivered(jain.protocol.ip.mgcp.JainMgcpCommandEvent commandEvent,
TransactionHandlerManagement handler)
commandEvent - handler -
public void commandDelivered(jain.protocol.ip.mgcp.JainMgcpCommandEvent commandEvent,
jain.protocol.ip.mgcp.JainMgcpResponseEvent event,
TransactionHandlerManagement handler)
commandEvent - event - handler -
protected void processRequestedEvents(jain.protocol.ip.mgcp.message.parms.NotifiedEntity entity,
jain.protocol.ip.mgcp.message.parms.RequestedEvent[] rEvents)
public void processTxTimeout(jain.protocol.ip.mgcp.JainMgcpCommandEvent commandEvent,
TransactionHandlerManagement transactionHandler)
commandEvent - transactionHandler -
public void processRxTimeout(jain.protocol.ip.mgcp.JainMgcpCommandEvent commandEvent,
TransactionHandlerManagement transactionHandler)
commandEvent - transactionHandler - public void transactionHandlerDeleted(TransactionHandlerManagement th)
public void doEndChecks()
public static boolean isWildCardEndpointName(java.lang.String endpointId)
public static boolean isAnyOfWildcard(java.lang.String endpointId)
public static boolean isAllOfWildcard(java.lang.String endpointId)
public java.lang.String toString()
toString in class java.lang.Objectpublic void setUseFake(boolean b)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||