Interface SdcDevicePlugin
-
- All Implemented Interfaces:
public interface SdcDevicePluginDefinition of a plugin for SdcDevice that is called back on different stages of startup and shutdown.
Every callback provides full control of Device. There is also access to the LocalMdibAccess and OperationInvocationReceiver collection passed to the SdcDevice constructor via org.somda.sdc.glue.provider.factory.SdcDeviceFactory.
All of the previously mentioned data is accessible through SdcDeviceContext.
The plugin mechanism can be used in order to run LocalMdibAccess controllers.
-
-
Method Summary
Modifier and Type Method Description voidbeforeStartUp(SdcDeviceContext context)Called before the device starts up. voidafterStartUp(SdcDeviceContext context)Called once the device is running. voidbeforeShutDown(SdcDeviceContext context)Called before the device is about to shutdown. voidafterShutDown(SdcDeviceContext context)Called after the device was shut down. -
-
Method Detail
-
beforeStartUp
void beforeStartUp(SdcDeviceContext context)
Called before the device starts up.
- Parameters:
context- all accessible SdcDevice data.
-
afterStartUp
void afterStartUp(SdcDeviceContext context)
Called once the device is running.
This callback is triggered only if the device was running before, i.e., isRunning returned true.
- Parameters:
context- all accessible SdcDevice data.
-
beforeShutDown
void beforeShutDown(SdcDeviceContext context)
Called before the device is about to shutdown.
This callback is triggered only if the device was running before, i.e., isRunning returned true.
- Parameters:
context- all accessible SdcDevice data.
-
afterShutDown
void afterShutDown(SdcDeviceContext context)
Called after the device was shut down.
This callback is triggered only if the device was running before, i.e., isRunning returned true.
- Parameters:
context- all accessible SdcDevice data.
-
-
-
-