org.jdiameter.server.impl.app.acc
Class ServerAccSessionImpl
java.lang.Object
org.jdiameter.common.impl.app.AppSessionImpl
org.jdiameter.common.impl.app.acc.AppAccSessionImpl
org.jdiameter.server.impl.app.acc.ServerAccSessionImpl
- All Implemented Interfaces:
- ServerAccSession, AppSession, StateMachine, BaseSession, EventListener<Request,Answer>, NetworkReqListener
public class ServerAccSessionImpl
- extends AppAccSessionImpl
- implements EventListener<Request,Answer>, ServerAccSession, 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 IServerAccActionContext context
listener
protected transient ServerAccSessionListener listener
TIMER_NAME_TS
protected static final java.lang.String TIMER_NAME_TS
- See Also:
- Constant Field Values
sessionData
protected IServerAccSessionData sessionData
ServerAccSessionImpl
public ServerAccSessionImpl(IServerAccSessionData sessionData,
ISessionFactory sessionFactory,
ServerAccSessionListener serverSessionListener,
IServerAccActionContext serverContextListener,
StateChangeListener<AppSession> stLst,
boolean stateless)
ServerAccSessionImpl
public ServerAccSessionImpl(IServerAccSessionData sessionData,
ISessionFactory sessionFactory,
ServerAccSessionListener serverSessionListener,
IServerAccActionContext serverContextListener,
StateChangeListener<AppSession> stLst)
sendAccountAnswer
public void sendAccountAnswer(AccountAnswer accountAnswer)
throws InternalException,
java.lang.IllegalStateException,
RouteException,
OverloadException
- Specified by:
sendAccountAnswer in interface ServerAccSession
- 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 AppAccSessionImpl
Copyright © 2014. All Rights Reserved.