public interface ScriptService
Modifier and Type | Method and Description |
---|---|
void |
activateSession()
Activate the script service session.
|
AccountingData |
deactivateSession()
Deactivate the script service session.
|
void |
discarded()
Notify that the service session has been discarded.
|
AccountingData |
getAccountingData()
Poll current accounting data.
|
byte[] |
getState()
Return opaque state data that will be stored persistently on the router.
|
void |
initSessionInfo(ServiceSessionInfo info)
Provide session information to the script service.
|
void |
initState(ServiceSessionInfo info,
byte[] state)
Initialize a recovered script service session after synchronization
of the state.
|
AccountingData |
modifySession(ServiceSessionInfo info)
Modify the script service session.
|
void initSessionInfo(ServiceSessionInfo info)
info
- provide information of service sessionvoid activateSession() throws ScriptServiceException
ScriptServiceException
AccountingData deactivateSession() throws ScriptServiceException
ScriptServiceException
AccountingData modifySession(ServiceSessionInfo info) throws ScriptServiceException
ScriptServiceException
AccountingData getAccountingData() throws ScriptServiceException
ScriptServiceException
byte[] getState()
void initState(ServiceSessionInfo info, byte[] state)
info
- provide information of service sessionstate
- void discarded()