org.sandev.TaskHeap.TaskHeapUI
Class TaskHeapUINodeCtrl

java.lang.Object
  extended byorg.sandev.TaskHeap.TaskHeapUI.TaskHeapUINodeCtrl
All Implemented Interfaces:
org.sandev.basics.nodecommon.ControlWrapper, TaskHeapUINodeCtrlMBean

public class TaskHeapUINodeCtrl
extends java.lang.Object
implements TaskHeapUINodeCtrlMBean, org.sandev.basics.nodecommon.ControlWrapper

AUTOGENERATED FILE, DO NOT EDIT DIRECTLY.
source: org.sandev.TaskHeap.TaskHeapUI.TaskHeapUINodeDecl
generator: org.sandev.generator.NodeStdMBeanGenerator
time: Dec 2, 2005 6:38:53 PM


Field Summary
protected  TaskHeapUINode node
          Aggregated node class instance
 
Constructor Summary
TaskHeapUINodeCtrl()
          Default ctor initializes a new node instance.
TaskHeapUINodeCtrl(org.sandev.basics.nodecommon.Controllable node)
          Controllable constructor.
TaskHeapUINodeCtrl(TaskHeapUINode node)
          Node constructor.
 
Method Summary
 java.lang.String getAuthorizerInstanceName()
          accessor for authorizerInstanceName
 org.sandev.basics.nodecommon.Controllable getControllable()
          Wraps getNode
 java.lang.String getInputFileDir()
          accessor for inputFileDir
 int getLogLevel()
          accessor for logLevel
 java.lang.String getLogLevelEnumSummary()
          enum value summary for logLevel
 TaskHeapUINode getNode()
          Initializing accessor for our local node instance.
 java.lang.String getNodeInstanceName()
          accessor for nodeInstanceName
 java.lang.String getOutputFileDir()
          accessor for outputFileDir
 java.lang.String getSandNodeErrorMessage()
          accessor for sandNodeErrorMessage
 int getSandNodeState()
          accessor for sandNodeState
 java.lang.String getSandNodeStateEnumSummary()
          enum value summary for sandNodeState
 java.lang.String getServername()
          accessor for servername
 java.lang.String getTechSupportEmailAddress()
          accessor for techSupportEmailAddress
 java.lang.String getUserLookupInstanceName()
          accessor for userLookupInstanceName
 void info(java.lang.String text)
          Utility to log an informational message.
 void paramChanged(java.lang.String paramName)
          Our current MBean UIs are web browser pages that read the parameters each time the page is generated, so we don't currently react to parameter changes.
 void sandInitialize()
          Register and create this MBean
 void setAuthorizerInstanceName(java.lang.String val)
          mutator for authorizerInstanceName
 void setControllable(org.sandev.basics.nodecommon.Controllable node)
          Passthrough to setNode
 void setInputFileDir(java.lang.String val)
          mutator for inputFileDir
 void setLogLevel(int val)
          mutator for logLevel
 void setNode(TaskHeapUINode node)
          set the aggregated node instance.
 void setOutputFileDir(java.lang.String val)
          mutator for outputFileDir
 void setSandNodeErrorMessage(java.lang.String val)
          mutator for sandNodeErrorMessage
 void setSandNodeState(int val)
          mutator for sandNodeState
 void setTechSupportEmailAddress(java.lang.String val)
          mutator for techSupportEmailAddress
 void setUserLookupInstanceName(java.lang.String val)
          mutator for userLookupInstanceName
 void startService()
          Call the node startup processing when the service starts.
 void stateChanged(int prevState, int currState)
          React to a state change.
 void stopService()
          Call the node shutdown processing when the service stops.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

node

protected TaskHeapUINode node
Aggregated node class instance

Constructor Detail

TaskHeapUINodeCtrl

public TaskHeapUINodeCtrl()
Default ctor initializes a new node instance. Do not use this to set up control for an existing node.


TaskHeapUINodeCtrl

public TaskHeapUINodeCtrl(TaskHeapUINode node)
Node constructor. Sets our node reference to the given node instance


TaskHeapUINodeCtrl

public TaskHeapUINodeCtrl(org.sandev.basics.nodecommon.Controllable node)
Controllable constructor. Sets our node reference by casting the given Controllable reference to a TaskHeapUINode

Method Detail

getNode

public TaskHeapUINode getNode()
Initializing accessor for our local node instance. If no instance was defined on creation, then this method creates a new instance to return.


setNode

public void setNode(TaskHeapUINode node)
set the aggregated node instance. This should generally be done at construction time.


info

public void info(java.lang.String text)
Utility to log an informational message. This calls through to our node log method if we have a node reference, otherwise it just calls System.out.println with the given text. This method does not call getNode(), so it is safe to use it during ctor and initialization processing.


stateChanged

public void stateChanged(int prevState,
                         int currState)
React to a state change. The state change may have come from this bean, or it may have come from another control interface. The node has embedded state change logic which protects against invalid or redundent state transitions, so we don't need to worry about protecting the calls here.

There are more state changes in SAND then there are in the ServiceMBean, so we only pick up on some of the more major state changes here, like running or stopped. Here's how the other ServiceMBean state transitions are handled:

Specified by:
stateChanged in interface org.sandev.basics.nodecommon.ControlWrapper

paramChanged

public void paramChanged(java.lang.String paramName)
Our current MBean UIs are web browser pages that read the parameters each time the page is generated, so we don't currently react to parameter changes.

Specified by:
paramChanged in interface org.sandev.basics.nodecommon.ControlWrapper

setControllable

public void setControllable(org.sandev.basics.nodecommon.Controllable node)
Passthrough to setNode

Specified by:
setControllable in interface org.sandev.basics.nodecommon.ControlWrapper

getControllable

public org.sandev.basics.nodecommon.Controllable getControllable()
Wraps getNode

Specified by:
getControllable in interface org.sandev.basics.nodecommon.ControlWrapper

sandInitialize

public void sandInitialize()
                    throws org.sandev.basics.nodecommon.ControlWrapperException
Register and create this MBean

Specified by:
sandInitialize in interface org.sandev.basics.nodecommon.ControlWrapper
Throws:
org.sandev.basics.nodecommon.ControlWrapperException

startService

public void startService()
                  throws java.lang.Exception
Call the node startup processing when the service starts. This is public to allow for reflective access from an external control adaptor.

Throws:
java.lang.Exception

stopService

public void stopService()
                 throws java.lang.Exception
Call the node shutdown processing when the service stops. This is public to allow for reflective access from an external control adaptor.

Throws:
java.lang.Exception

getUserLookupInstanceName

public java.lang.String getUserLookupInstanceName()
accessor for userLookupInstanceName

Specified by:
getUserLookupInstanceName in interface TaskHeapUINodeCtrlMBean

setUserLookupInstanceName

public void setUserLookupInstanceName(java.lang.String val)
mutator for userLookupInstanceName

Specified by:
setUserLookupInstanceName in interface TaskHeapUINodeCtrlMBean

getAuthorizerInstanceName

public java.lang.String getAuthorizerInstanceName()
accessor for authorizerInstanceName

Specified by:
getAuthorizerInstanceName in interface TaskHeapUINodeCtrlMBean

setAuthorizerInstanceName

public void setAuthorizerInstanceName(java.lang.String val)
mutator for authorizerInstanceName

Specified by:
setAuthorizerInstanceName in interface TaskHeapUINodeCtrlMBean

getInputFileDir

public java.lang.String getInputFileDir()
accessor for inputFileDir

Specified by:
getInputFileDir in interface TaskHeapUINodeCtrlMBean

setInputFileDir

public void setInputFileDir(java.lang.String val)
mutator for inputFileDir

Specified by:
setInputFileDir in interface TaskHeapUINodeCtrlMBean

getOutputFileDir

public java.lang.String getOutputFileDir()
accessor for outputFileDir

Specified by:
getOutputFileDir in interface TaskHeapUINodeCtrlMBean

setOutputFileDir

public void setOutputFileDir(java.lang.String val)
mutator for outputFileDir

Specified by:
setOutputFileDir in interface TaskHeapUINodeCtrlMBean

getTechSupportEmailAddress

public java.lang.String getTechSupportEmailAddress()
accessor for techSupportEmailAddress

Specified by:
getTechSupportEmailAddress in interface TaskHeapUINodeCtrlMBean

setTechSupportEmailAddress

public void setTechSupportEmailAddress(java.lang.String val)
mutator for techSupportEmailAddress

Specified by:
setTechSupportEmailAddress in interface TaskHeapUINodeCtrlMBean

getNodeInstanceName

public java.lang.String getNodeInstanceName()
accessor for nodeInstanceName

Specified by:
getNodeInstanceName in interface TaskHeapUINodeCtrlMBean

getServername

public java.lang.String getServername()
accessor for servername

Specified by:
getServername in interface TaskHeapUINodeCtrlMBean

getSandNodeState

public int getSandNodeState()
accessor for sandNodeState

Specified by:
getSandNodeState in interface TaskHeapUINodeCtrlMBean

getSandNodeStateEnumSummary

public java.lang.String getSandNodeStateEnumSummary()
enum value summary for sandNodeState

Specified by:
getSandNodeStateEnumSummary in interface TaskHeapUINodeCtrlMBean

setSandNodeState

public void setSandNodeState(int val)
mutator for sandNodeState

Specified by:
setSandNodeState in interface TaskHeapUINodeCtrlMBean

getSandNodeErrorMessage

public java.lang.String getSandNodeErrorMessage()
accessor for sandNodeErrorMessage

Specified by:
getSandNodeErrorMessage in interface TaskHeapUINodeCtrlMBean

setSandNodeErrorMessage

public void setSandNodeErrorMessage(java.lang.String val)
mutator for sandNodeErrorMessage

Specified by:
setSandNodeErrorMessage in interface TaskHeapUINodeCtrlMBean

getLogLevel

public int getLogLevel()
accessor for logLevel

Specified by:
getLogLevel in interface TaskHeapUINodeCtrlMBean

getLogLevelEnumSummary

public java.lang.String getLogLevelEnumSummary()
enum value summary for logLevel

Specified by:
getLogLevelEnumSummary in interface TaskHeapUINodeCtrlMBean

setLogLevel

public void setLogLevel(int val)
mutator for logLevel

Specified by:
setLogLevel in interface TaskHeapUINodeCtrlMBean