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

class Context

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

class Context
extends Context with AnyRef
implementation whose methods simply print a message (to show what method was called) to the console. Those returning an Option always return None.
Method Summary
def constantsFor (diName : java.lang.String) : scala.None
returns constants for diName.
def interpretCmdFor (diName : java.lang.String, cmd : java.io.Serializable) : scala.None
have diName interpret cmd.
def statusFor (diName : java.lang.String) : scala.None
returns status sample together with timestamp for diName.
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
def constantsFor(diName : java.lang.String) : scala.None
returns constants for diName.
Throws
ClientDiException -
Overrides
Context.constantsFor

def statusFor(diName : java.lang.String) : scala.None
returns status sample together with timestamp for diName.
Returns
None if diName happens to be statusless.
Throws
ClientDiException -
Overrides
Context.statusFor

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.
Overrides
Context.subscribeTo

def interpretCmdFor(diName : java.lang.String, cmd : java.io.Serializable) : scala.None
have diName interpret cmd.
Throws
ClientDiException -
Overrides
Context.interpretCmdFor


Copyright 2009 Latterfrosken Software Development Limited