|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.media.server.mgcp.tx.TransactionManager
public class TransactionManager
Implements pool of transactions.
| Field Summary | |
|---|---|
protected CallManager |
callManager
|
protected NamingTree |
namingService
|
protected MgcpProvider |
provider
|
| Constructor Summary | |
|---|---|
TransactionManager(org.mobicents.media.server.scheduler.Scheduler scheduler,
int size)
Creates new transaction's pool. |
|
| Method Summary | |
|---|---|
Transaction |
find(int id)
Find active transaction with specified identifier. |
long |
getTime()
Provides access to the wall clock. |
protected int |
nextID()
Generates unique transaction identifier. |
protected int |
remainder()
Gets the remainder of unused transaction objects. |
org.mobicents.media.server.scheduler.Scheduler |
scheduler()
Gets the access to the scheduler. |
void |
setCallManager(CallManager callManager)
|
void |
setMgcpProvider(MgcpProvider provider)
Assigns MGCP provider. |
void |
setNamingService(NamingTree namingService)
Associates endpoint naming service. |
protected void |
terminate(Transaction t)
Terminates active transaction. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected MgcpProvider provider
protected NamingTree namingService
protected CallManager callManager
| Constructor Detail |
|---|
public TransactionManager(org.mobicents.media.server.scheduler.Scheduler scheduler,
int size)
scheduler - the job schedulersize - the size of the pool.| Method Detail |
|---|
public void setNamingService(NamingTree namingService)
namingService - the endpoint naming service.public org.mobicents.media.server.scheduler.Scheduler scheduler()
public long getTime()
public void setCallManager(CallManager callManager)
public void setMgcpProvider(MgcpProvider provider)
provider - mgcp provider instancepublic Transaction find(int id)
id - the transaction identifier.
protected void terminate(Transaction t)
t - the transaction to be terminatedprotected int nextID()
protected int remainder()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||