use of org.jdiameter.common.api.app.ro.ClientRoSessionState in project jain-slee.diameter by RestComm.
the class RoClientSessionActivityImpl method stateChanged.
/*
* (non-Javadoc)
* @see org.jdiameter.api.app.StateChangeListener#stateChanged(java.lang.Enum, java.lang.Enum)
*/
public void stateChanged(Enum oldState, Enum newState) {
ClientRoSessionState s = (ClientRoSessionState) 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