JMACS

org.jmacs
Interface IDiDriver.IContext

All Known Subinterfaces:
IDiDriver.IContext.IControlOnly, IDiDriver.IContext.IFull, IDiDriver.IContext.ISubscribeOnly
Enclosing interface:
IDiDriver

public static interface IDiDriver.IContext

passed to IDiDriver.IClients. When specifying the name of a target device interface (see ISpi), start with '.' to prepend the name of the client DI itself, otherwise the name of the root will be prepended. (Thus, "." refers to the client DI itself, and "" to the root itself.)


Nested Class Summary
static interface IDiDriver.IContext.IControlOnly
          passed to IDiDriver.IClient.IControllers.
static interface IDiDriver.IContext.IFull
          passed to IDiDriver.IClient.IFulls.
static interface IDiDriver.IContext.ISubscribeOnly
          passed to IDiDriver.IClient.ISubscribers.
static class IDiDriver.IContext.TimestampContainer
          timestamp field will be set if instance is supplied when calling IContext.getStatus.
 
Method Summary
 Serializable getStatus(String diName)
          attempts to get status of diName.
 Serializable getStatus(String diName, IDiDriver.IContext.TimestampContainer container)
          as before but also returns timestamp via container.
 

Method Detail

getStatus

Serializable getStatus(String diName)
                       throws DiDriverException,
                              ClientDiException
attempts to get status of diName. If this is being subscribed to, but no up-to-date sample is found in the cache, then null is returned.

Parameters:
diName - See above.
Throws:
DiDriverException
ClientDiException

getStatus

Serializable getStatus(String diName,
                       IDiDriver.IContext.TimestampContainer container)
                       throws DiDriverException,
                              ClientDiException
as before but also returns timestamp via container.

Parameters:
diName - See above.
Throws:
DiDriverException
ClientDiException

JMACS

jmacs.org