JMACS

org.jmacs
Interface IDi.IDriver.ISampler.IContext

All Superinterfaces:
IDi.IDriver.IContext
All Known Subinterfaces:
IDi.IDriver.IClient.IContext, IDi.IDriver.ISubscriber.IContext
Enclosing interface:
IDi.IDriver.ISampler

public static interface IDi.IDriver.ISampler.IContext
extends IDi.IDriver.IContext

as passed to IDi.IDriver.ISamplers. When specifying the name of a target device interface (see IDi.AbstractFactory), 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.)


Method Summary
 Serializable getStatus(String diName)
          attempts to get status of diName.
 Serializable getStatus(String diName, long[] timestamp)
          as above but also returns timestamp.
 
Methods inherited from interface org.jmacs.IDi.IDriver.IContext
getConstants
 

Method Detail

getStatus

Serializable getStatus(String diName)
                       throws 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:
ClientDiException

getStatus

Serializable getStatus(String diName,
                       long[] timestamp)
                       throws ClientDiException
as above but also returns timestamp.

Parameters:
timestamp - the first element will contain the timestamp (ms since epoch) of the status sample upon return
Throws:
ClientDiException

JMACS

jmacs.org