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

java.lang.Object
  extended by org.mobicents.media.server.mgcp.tx.GlobalTransactionManager

public class GlobalTransactionManager
extends Object

Implements pool of transactions.

Author:
yulian oifa

Field Summary
protected  MgcpProvider provider
           
 
Constructor Summary
GlobalTransactionManager(org.mobicents.media.server.scheduler.Scheduler scheduler)
           
 
Method Summary
 Transaction allocateNew(InetSocketAddress source, int id)
           
 TransactionManager createTransactionManager()
           
 Transaction find(InetSocketAddress source, int id)
          Find active transaction with specified identifier.
 long getTime()
          Provides access to the wall clock.
 org.mobicents.media.server.scheduler.Scheduler scheduler()
          Gets the access to the scheduler.
 void setMgcpProvider(MgcpProvider provider)
          Assigns MGCP provider.
 void setNamingService(NamingTree namingService)
          Associates endpoint naming service.
 void setPoolSize(int poolSize)
          Associates endpoint naming service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

provider

protected MgcpProvider provider
Constructor Detail

GlobalTransactionManager

public GlobalTransactionManager(org.mobicents.media.server.scheduler.Scheduler scheduler)
Method Detail

setNamingService

public void setNamingService(NamingTree namingService)
Associates endpoint naming service.

Parameters:
namingService - the endpoint naming service.

setPoolSize

public void setPoolSize(int poolSize)
Associates endpoint naming service.

Parameters:
namingService - the endpoint naming service.

scheduler

public org.mobicents.media.server.scheduler.Scheduler scheduler()
Gets the access to the scheduler.

Returns:
job scheduler.

getTime

public long getTime()
Provides access to the wall clock.

Returns:
time measured by wall clock.

setMgcpProvider

public void setMgcpProvider(MgcpProvider provider)
Assigns MGCP provider.

Parameters:
provider - mgcp provider instance

find

public Transaction find(InetSocketAddress source,
                        int id)
Find active transaction with specified identifier.

Parameters:
id - the transaction identifier.
Returns:
transaction object or null if does not exist.

allocateNew

public Transaction allocateNew(InetSocketAddress source,
                               int id)

createTransactionManager

public TransactionManager createTransactionManager()


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