org.jdiameter.server.impl.app.rf
Class ServerRfSessionImpl
java.lang.Object
org.jdiameter.common.impl.app.AppSessionImpl
org.jdiameter.common.impl.app.rf.AppRfSessionImpl
org.jdiameter.server.impl.app.rf.ServerRfSessionImpl
- All Implemented Interfaces:
- AppSession, StateMachine, BaseSession, EventListener<Request,Answer>, NetworkReqListener, ServerRfSession
public class ServerRfSessionImpl
- extends AppRfSessionImpl
- implements EventListener<Request,Answer>, ServerRfSession, NetworkReqListener
Server Accounting session implementation
- Author:
- erick.svenson@yahoo.com, Alexandre Mendonca , Bartosz Baranowski
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
context
protected transient IServerRfActionContext context
listener
protected transient ServerRfSessionListener listener
TIMER_NAME_TS
protected static final java.lang.String TIMER_NAME_TS
- See Also:
- Constant Field Values
sessionData
protected IServerRfSessionData sessionData
ServerRfSessionImpl
public ServerRfSessionImpl(IServerRfSessionData sessionData,
ISessionFactory sessionFactory,
ServerRfSessionListener serverSessionListener,
IServerRfActionContext serverContextListener,
StateChangeListener<AppSession> stLst,
long tsTimeout,
boolean stateless)
sendAccountAnswer
public void sendAccountAnswer(RfAccountingAnswer accountAnswer)
throws InternalException,
java.lang.IllegalStateException,
RouteException,
OverloadException
- Specified by:
sendAccountAnswer in interface ServerRfSession
- Throws:
InternalException
java.lang.IllegalStateException
RouteException
OverloadException
isStateless
public boolean isStateless()
- Specified by:
isStateless in interface AppSession
setState
protected void setState(IAppSessionState newState)
handleEvent
public boolean handleEvent(StateEvent event)
throws InternalException,
OverloadException
- Specified by:
handleEvent in interface StateMachine
- Throws:
InternalException
OverloadException
handleEventForStatelessMode
public boolean handleEventForStatelessMode(StateEvent event)
throws InternalException,
OverloadException
- Throws:
InternalException
OverloadException
handleEventForStatefulMode
public boolean handleEventForStatefulMode(StateEvent event)
throws InternalException,
OverloadException
- Throws:
InternalException
OverloadException
onTimer
public void onTimer(java.lang.String timerName)
- Specified by:
onTimer in class AppSessionImpl
createStopAnswer
protected Answer createStopAnswer(Request request)
createInterimAnswer
protected Answer createInterimAnswer(Request request)
createEventAnswer
protected Answer createEventAnswer(Request request)
createStartAnswer
protected Answer createStartAnswer(Request request)
getState
public <E> E getState(java.lang.Class<E> eClass)
- Specified by:
getState in interface StateMachine
processRequest
public Answer processRequest(Request request)
- Specified by:
processRequest in interface NetworkReqListener
receivedSuccessMessage
public void receivedSuccessMessage(Request request,
Answer answer)
- Specified by:
receivedSuccessMessage in interface EventListener<Request,Answer>
timeoutExpired
public void timeoutExpired(Request request)
- Specified by:
timeoutExpired in interface EventListener<Request,Answer>
isReplicable
public boolean isReplicable()
- Specified by:
isReplicable in interface BaseSession- Overrides:
isReplicable in class AppSessionImpl
release
public void release()
- Specified by:
release in interface BaseSession- Overrides:
release in class AppRfSessionImpl
Copyright © 2014. All Rights Reserved.