|
Core API 7.6 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.juniper.smgt.sae.scriptservice.NullScriptService
public class NullScriptService
No-op implementation of the ScriptService interface. This class can be used to implement a no-op service, i.e. a service that can be activated only for its side effects, e.g. for admission control purposes. Also, this class can be subclassed by simple script service implementations that do not need to implement all methods of the script service interface.
Constructor Summary | |
---|---|
NullScriptService()
|
Method Summary | |
---|---|
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 ssi)
Provide session information to the script service. |
void |
initState(ServiceSessionInfo ssi,
byte[] state)
Initialize a recovered script service session after synchronization of the state. |
AccountingData |
modifySession(ServiceSessionInfo ssi)
Modify the script service session. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NullScriptService()
Method Detail |
---|
public byte[] getState()
ScriptService
getState
in interface ScriptService
public void initSessionInfo(ServiceSessionInfo ssi)
ScriptService
initSessionInfo
in interface ScriptService
ssi
- provide information of service sessionpublic void activateSession() throws ScriptServiceException
ScriptService
activateSession
in interface ScriptService
ScriptServiceException
public AccountingData deactivateSession() throws ScriptServiceException
ScriptService
deactivateSession
in interface ScriptService
ScriptServiceException
public AccountingData modifySession(ServiceSessionInfo ssi) throws ScriptServiceException
ScriptService
modifySession
in interface ScriptService
ScriptServiceException
public AccountingData getAccountingData() throws ScriptServiceException
ScriptService
getAccountingData
in interface ScriptService
ScriptServiceException
public void initState(ServiceSessionInfo ssi, byte[] state)
ScriptService
initState
in interface ScriptService
ssi
- provide information of service sessionpublic void discarded()
ScriptService
discarded
in interface ScriptService
|
Core API 7.6 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |