Class HighPriorityServices
java.lang.Object
com.google.common.util.concurrent.AbstractIdleService
org.somda.sdc.dpws.device.WebService
org.somda.sdc.glue.provider.services.HighPriorityServices
- All Implemented Interfaces:
com.google.common.util.concurrent.Service,EventSourceAccess,Interceptor
Implementation of the high-priority services.
High-priority services are all services that provide time-critical data:
- Get service
- Set service
- Description event service
- State event service
- Context service
- Waveform service
- Containment tree service
todo DGr tests are missing
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.common.util.concurrent.Service
com.google.common.util.concurrent.Service.Listener, com.google.common.util.concurrent.Service.State -
Method Summary
Modifier and TypeMethodDescriptionvoidRegisters an object that possesses callback functions for incoming set service requests.<T extends AbstractState>
voidsendPeriodicStateReport(List<T> states, MdibVersion mdibVersion) Sends a periodic state report.Methods inherited from class org.somda.sdc.dpws.device.WebService
sendNotification, shutDown, startUp, subscriptionEndToAllMethods inherited from class com.google.common.util.concurrent.AbstractIdleService
addListener, awaitRunning, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, awaitTerminated, executor, failureCause, isRunning, serviceName, startAsync, state, stopAsync, toString
-
Method Details
-
addOperationInvocationReceiver
Registers an object that possesses callback functions for incoming set service requests.- Parameters:
receiver- the object that includes methods annotated withIncomingSetServiceRequest.- See Also:
-
sendPeriodicStateReport
public <T extends AbstractState> void sendPeriodicStateReport(List<T> states, MdibVersion mdibVersion) Sends a periodic state report.This function does not control periodicity. Periodicity has to be controlled by the calling function.
- Type Parameters:
T- the state type.- Parameters:
states- the states that are supposed to be notified.mdibVersion- the MDIB version the report belongs to.
-