hp.opencall.media.signalling
Class PCCircuitManager

java.lang.Object
  extended byhp.opencall.media.signalling.PCCircuitManager

public class PCCircuitManager
extends java.lang.Object

PCCircuitManager is the Point Code Circuit Manager.

This circuit manager update the circuit states thanks to the connection provider that calls the setState method.
Its embedded data base allows to supply an available circuit when the connection provider need to establish an outgoing call.
The circuit allocation algorithm is provisioned with the OCMP configuration tools.


Field Summary
static int REFUSAL_BY_BLOCKING_CIRCUITS
           
static int REFUSAL_BY_REJECTING_CALLS
           
 
Constructor Summary
PCCircuitManager()
           
 
Method Summary
static void blockAllCircuits(long lpc, ISUPExternalCnxProvider aCnx)
           
static long getOutgoingCircuit(long dpc)
          get a free circuit to establish an outgoing call.
static long getOutgoingCircuit(long dpc, int cic)
          get a specific free circuit to establish an outgoing call.
static int getShutdownCallRefusalMechanisms()
           
static boolean hasOngoingCalls()
           
static void releaseAllBusyCircuits(long lpc, ISUPExternalCnxProvider aCnx)
           
static void releaseAllCircuits(long lpc, ISUPExternalCnxProvider aCnx)
           
static void setState(long dpc, int cic, hp.opencall.media.tdm.CircuitState aCircuitState)
          Set the state of circuit.
static void unblockAllBlockedCircuits(long lpc, ISUPExternalCnxProvider aCnx)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REFUSAL_BY_REJECTING_CALLS

public static final int REFUSAL_BY_REJECTING_CALLS
See Also:
Constant Field Values

REFUSAL_BY_BLOCKING_CIRCUITS

public static final int REFUSAL_BY_BLOCKING_CIRCUITS
See Also:
Constant Field Values
Constructor Detail

PCCircuitManager

public PCCircuitManager()
Method Detail

setState

public static void setState(long dpc,
                            int cic,
                            hp.opencall.media.tdm.CircuitState aCircuitState)
                     throws hp.opencall.media.common.ResourceNotAvailableException
Set the state of circuit.

Parameters:
cic - specifies the Circuit Identifier Code
aCircuitState - specifies the new circuit state

Throws:
hp.opencall.media.common.ResourceNotAvailableException - if the circuit is unknown

getOutgoingCircuit

public static long getOutgoingCircuit(long dpc)
                               throws hp.opencall.media.common.ResourceNotAvailableException
get a free circuit to establish an outgoing call.

Parameters:
dpc - is the Destination Point Code to reach

Throws:
hp.opencall.media.common.ResourceNotAvailableException - if no circuit match for the request

getOutgoingCircuit

public static long getOutgoingCircuit(long dpc,
                                      int cic)
                               throws hp.opencall.media.common.ResourceNotAvailableException
get a specific free circuit to establish an outgoing call.

Parameters:
dpc - is the Destination Point Code to reach
cic - is the Circuit Identifier Code required

Throws:
hp.opencall.media.common.ResourceNotAvailableException - if the circuit does not match for the request

hasOngoingCalls

public static boolean hasOngoingCalls()

getShutdownCallRefusalMechanisms

public static int getShutdownCallRefusalMechanisms()

releaseAllBusyCircuits

public static void releaseAllBusyCircuits(long lpc,
                                          ISUPExternalCnxProvider aCnx)

releaseAllCircuits

public static void releaseAllCircuits(long lpc,
                                      ISUPExternalCnxProvider aCnx)

blockAllCircuits

public static void blockAllCircuits(long lpc,
                                    ISUPExternalCnxProvider aCnx)

unblockAllBlockedCircuits

public static void unblockAllBlockedCircuits(long lpc,
                                             ISUPExternalCnxProvider aCnx)