use of org.jdiameter.common.api.app.gx.ClientGxSessionState in project jain-slee.diameter by RestComm.
the class GxClientSessionActivityImpl method stateChanged.
/*
* (non-Javadoc)
* @see org.jdiameter.api.app.StateChangeListener#stateChanged(java.lang.Enum, java.lang.Enum)
*/
public void stateChanged(Enum oldState, Enum newState) {
final ClientGxSessionState s = (ClientGxSessionState) newState;
// PENDING_TERMINATION(4), PENDING_BUFFERED(5), OPEN(6);
switch(s) {
case PENDING_EVENT:
// this.state = CreditControlSessionState.PENDING_EVENT;
break;
case PENDING_BUFFERED:
// this.state = CreditControlSessionState.PENDING_BUFFERED;
break;
case PENDING_TERMINATION:
// this.state = CreditControlSessionState.PENDING_TERMINATION;
break;
case PENDING_UPDATE:
// this.state = CreditControlSessionState.PENDING_UPDATE;
break;
case OPEN:
// this.state = CreditControlSessionState.OPEN;
break;
case PENDING_INITIAL:
// this.state = CreditControlSessionState.PENDING_INITIAL;
break;
case IDLE:
// this.state = CreditControlSessionState.IDLE;
this.setTerminateAfterProcessing(true);
super.baseListener.startActivityRemoveTimer(getActivityHandle());
break;
default:
logger.error("Unexpected state in Credit-Control Client FSM: " + s);
}
}
Aggregations