|
Core API 7.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.juniper.smgt.sae.scriptservice.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 ScriptServicepublic void initSessionInfo(ServiceSessionInfo ssi)
ScriptService
initSessionInfo in interface ScriptServicessi - provide information of service session
public void activateSession()
throws ScriptServiceException
ScriptService
activateSession in interface ScriptServiceScriptServiceException
public AccountingData deactivateSession()
throws ScriptServiceException
ScriptService
deactivateSession in interface ScriptServiceScriptServiceException
public AccountingData modifySession(ServiceSessionInfo ssi)
throws ScriptServiceException
ScriptService
modifySession in interface ScriptServiceScriptServiceException
public AccountingData getAccountingData()
throws ScriptServiceException
ScriptService
getAccountingData in interface ScriptServiceScriptServiceException
public void initState(ServiceSessionInfo ssi,
byte[] state)
ScriptService
initState in interface ScriptServicessi - provide information of service sessionstate - public void discarded()
ScriptService
discarded in interface ScriptService
|
Core API 7.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||