Scala Monitoring and Control System API
com.lafros.macs.OtherDiDependent

trait Context

[source: com/lafros/macs/OtherDiDependent.scala]

trait Context
extends AnyRef
passed to OtherDiDependent Di.Drivers.
Direct Known Subclasses:
dummy.OtherDiDependent.Context

Method Summary
abstract def constantsFor (diName : java.lang.String) : scala.Option[java.io.Serializable]
returns constants for diName.
abstract def interpretCmdFor (diName : java.lang.String, cmd : java.io.Serializable) : scala.Option[java.io.Serializable]
have diName interpret cmd.
abstract def statusFor (diName : java.lang.String) : scala.Option[(java.io.Serializable, Long)]
returns status sample together with timestamp for diName.
abstract def subscribeTo (diName : java.lang.String, b : Boolean) : Unit
while subscribing, status samples from the specified DI will be received as soon as they become available. Note that subscriptions may be requested and in force whether the specified DI happens to be registered or not. Note also that it is possible to subscribe to a StatelessDi; however, statusFor will return None. Does nothing if already subscribe/unsubscribed.
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
abstract def constantsFor(diName : java.lang.String) : scala.Option[java.io.Serializable]
returns constants for diName.
Throws
ClientDiException -

abstract def statusFor(diName : java.lang.String) : scala.Option[(java.io.Serializable, Long)]
returns status sample together with timestamp for diName.
Returns
None if diName happens to be statusless.
Throws
ClientDiException -

abstract def subscribeTo(diName : java.lang.String, b : Boolean) : Unit
while subscribing, status samples from the specified DI will be received as soon as they become available. Note that subscriptions may be requested and in force whether the specified DI happens to be registered or not. Note also that it is possible to subscribe to a StatelessDi; however, statusFor will return None. Does nothing if already subscribe/unsubscribed.

abstract def interpretCmdFor(diName : java.lang.String, cmd : java.io.Serializable) : scala.Option[java.io.Serializable]
have diName interpret cmd.
Throws
ClientDiException -


Copyright 2009 Latterfrosken Software Development Limited