hkontrol.module.debug.action
Class PrintState

java.lang.Object
  extended by hkontrol.core.AbstractAction
      extended by hkontrol.module.debug.action.PrintState

public class PrintState
extends AbstractAction


Constructor Summary
PrintState()
           
 
Method Summary
 void execute(ImmutableState state)
          Gets called if the action is triggered by a matching rule.
protected  HKConnection getConnection()
          returns a HKConnection object if a connection is associated with the calling module instance.
 
Methods inherited from class hkontrol.core.AbstractAction
construct, getConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintState

public PrintState()
Method Detail

execute

public void execute(ImmutableState state)
Description copied from class: AbstractAction
Gets called if the action is triggered by a matching rule.

Specified by:
execute in class AbstractAction

getConnection

protected HKConnection getConnection()
                              throws ModuleException
returns a HKConnection object if a connection is associated with the calling module instance.

Returns:
the associated connection or null if no connection is configured
Throws:
ModuleException - if connection could not be established