|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.sandev.basics.CacheManager.CacheManagerNodeDecl
org.sandev.basics.CacheManager.CacheManagerNodeBase
public class CacheManagerNodeBase
AUTOGENERATED FILE, DO NOT EDIT DIRECTLY.
source: org.sandev.basics.CacheManager.CacheManagerNodeDecl
generator: org.sandev.generator.NodeClassGenerator
time: Jul 31, 2008 4:34:14 PM
This file contains:
| Field Summary | |
|---|---|
protected ControlWrapper[] |
ctrlwrappers
The control wrappers we need to notify of state or parameter changes. |
protected Controllable[] |
helperNodes
Our helper nodes |
protected IODeclSubscribe |
incomingAsyncCacheActionMessage
Inbound org.sandev.basics.sandmessages.CacheAction asynchronous messaging configuration |
protected IODeclSubscribe |
incomingAsyncSandUpdateMessage
Inbound org.sandev.basics.structs.SandUpdateMessage asynchronous messaging configuration |
protected IODeclReceive |
incomingSyncCacheAction
Inbound org.sandev.basics.sandmessages.CacheAction synchronous messaging configuration |
protected static int |
LOGDEBUG
Convenience redeclaration of corresponding Logger.LOGLEVEL constant |
protected static int |
LOGERROR
Convenience redeclaration of corresponding Logger.LOGLEVEL constant |
protected static int |
LOGFATAL
Convenience redeclaration of corresponding Logger.LOGLEVEL constant |
protected Logger |
logger
Logfile output at specified severity levels. |
protected static int |
LOGINFO
Convenience redeclaration of corresponding Logger.LOGLEVEL constant |
protected int |
logLevel
Calls to log with severity levels less than this value will be ignored. |
static int |
LOGLEVEL_DEBUG
Possible value for logLevel |
static int |
LOGLEVEL_ERROR
Possible value for logLevel |
static int |
LOGLEVEL_FATAL
Possible value for logLevel |
static int |
LOGLEVEL_INFO
Possible value for logLevel |
static int |
LOGLEVEL_WARN
Possible value for logLevel |
protected static int |
LOGWARN
Convenience redeclaration of corresponding Logger.LOGLEVEL constant |
protected Messager |
messager
Communications to and from this node. |
protected NodeInstance |
nodeInstance
The declaration used to initialize this node instance when it was first created. |
protected IODeclSend |
outgoingAsyncCacheAction
Outbound org.sandev.basics.sandmessages.CacheAction asynchronous messaging configuration |
protected Controllable |
parent
Our parent node |
protected java.lang.String |
sandNodeErrorMessage
Text details of the node execution error. |
protected int |
sandNodeState
Runtime state of the node. |
static int |
SANDNODESTATE_FAILED
Possible value for sandNodeState |
static int |
SANDNODESTATE_FAILING
Possible value for sandNodeState |
static int |
SANDNODESTATE_RESUMING
Possible value for sandNodeState |
static int |
SANDNODESTATE_RUNNING
Possible value for sandNodeState |
static int |
SANDNODESTATE_STARTING
Possible value for sandNodeState |
static int |
SANDNODESTATE_STOPPED
Possible value for sandNodeState |
static int |
SANDNODESTATE_STOPPING
Possible value for sandNodeState |
static int |
SANDNODESTATE_SUSPENDED
Possible value for sandNodeState |
static int |
SANDNODESTATE_SUSPENDING
Possible value for sandNodeState |
static int |
SANDNODESTATE_UNDEFINED
Possible value for sandNodeState |
protected SandRoot |
sandRoot
Back reference to the SandRoot that launched us. |
| Fields inherited from class org.sandev.basics.CacheManager.CacheManagerNodeDecl |
|---|
localAuthUserLookup, notificationPassword, notificationUsername |
| Constructor Summary | |
|---|---|
CacheManagerNodeBase()
Default constructor calls init. |
|
| Method Summary | |
|---|---|
void |
addWrapper(ControlWrapper wrapper)
Add the specified wrapper to our notification collection |
SandCollectionMessage |
callQuery(SandQueryMessage sqm)
Generalized query method to handle all queries understood by this node |
void |
deliver(SandMessage msg)
Only those deliver methods explicitely declared by the node should actually be called. |
void |
deliverCacheActionMessage(CacheAction msg)
Asynchronous inbound CacheAction |
void |
deliverSandUpdateMessage(SandUpdateMessage msg)
Asynchronous inbound SandUpdateMessage |
boolean |
fieldHasFlag(java.lang.String fieldname,
int fieldflag)
Return true if the named field declares the indicated flag, false otherwise. |
java.lang.String |
getDeploymentPrefix()
Return the prefix for this deployment. |
Controllable[] |
getHelperNodes()
accessor for helperNodes |
IDCache |
getIDCache()
Retrieve an IDCache for use by this node. |
IODeclSubscribe |
getIncomingAsyncCacheActionMessage()
Accessor for incomingAsyncCacheActionMessage |
static IODeclSubscribe |
getIncomingAsyncCacheActionMessageDefaultValue()
Default value for incomingAsyncCacheActionMessage. |
java.lang.String |
getIncomingAsyncCacheActionMessageFieldPrintValue()
Return the print name of the incomingAsyncCacheActionMessage field. |
static boolean |
getIncomingAsyncCacheActionMessageFlag(int fieldflag)
Field flag accessor. |
static IODeclSubscribe |
getIncomingAsyncCacheActionMessageInvalidValue()
Invalid value for incomingAsyncCacheActionMessage. |
java.lang.String |
getIncomingAsyncCacheActionMessageMetatype()
Return the metatype text for this field, or "" if no metatype was declared. |
java.lang.String |
getIncomingAsyncCacheActionMessagePrintValue()
Retrieve the current value of this field as a print String. |
java.lang.String |
getIncomingAsyncCacheActionMessageRange()
Return the range specification for this field |
java.lang.String |
getIncomingAsyncCacheActionMessageValidityCheck()
Return the empty string if the value of this field is valid according to the base SAND declarations. |
IODeclSubscribe |
getIncomingAsyncSandUpdateMessage()
Accessor for incomingAsyncSandUpdateMessage |
static IODeclSubscribe |
getIncomingAsyncSandUpdateMessageDefaultValue()
Default value for incomingAsyncSandUpdateMessage. |
java.lang.String |
getIncomingAsyncSandUpdateMessageFieldPrintValue()
Return the print name of the incomingAsyncSandUpdateMessage field. |
static boolean |
getIncomingAsyncSandUpdateMessageFlag(int fieldflag)
Field flag accessor. |
static IODeclSubscribe |
getIncomingAsyncSandUpdateMessageInvalidValue()
Invalid value for incomingAsyncSandUpdateMessage. |
java.lang.String |
getIncomingAsyncSandUpdateMessageMetatype()
Return the metatype text for this field, or "" if no metatype was declared. |
java.lang.String |
getIncomingAsyncSandUpdateMessagePrintValue()
Retrieve the current value of this field as a print String. |
java.lang.String |
getIncomingAsyncSandUpdateMessageRange()
Return the range specification for this field |
java.lang.String |
getIncomingAsyncSandUpdateMessageValidityCheck()
Return the empty string if the value of this field is valid according to the base SAND declarations. |
IODeclReceive |
getIncomingSyncCacheAction()
Accessor for incomingSyncCacheAction |
static IODeclReceive |
getIncomingSyncCacheActionDefaultValue()
Default value for incomingSyncCacheAction. |
java.lang.String |
getIncomingSyncCacheActionFieldPrintValue()
Return the print name of the incomingSyncCacheAction field. |
static boolean |
getIncomingSyncCacheActionFlag(int fieldflag)
Field flag accessor. |
static IODeclReceive |
getIncomingSyncCacheActionInvalidValue()
Invalid value for incomingSyncCacheAction. |
java.lang.String |
getIncomingSyncCacheActionMetatype()
Return the metatype text for this field, or "" if no metatype was declared. |
java.lang.String |
getIncomingSyncCacheActionPrintValue()
Retrieve the current value of this field as a print String. |
java.lang.String |
getIncomingSyncCacheActionRange()
Return the range specification for this field |
java.lang.String |
getIncomingSyncCacheActionValidityCheck()
Return the empty string if the value of this field is valid according to the base SAND declarations. |
java.lang.String |
getLocalAuthUserLookup()
Accessor for localAuthUserLookup |
static java.lang.String |
getLocalAuthUserLookupDefaultValue()
Default value for localAuthUserLookup. |
java.lang.String |
getLocalAuthUserLookupFieldPrintValue()
Return the print name of the localAuthUserLookup field. |
static boolean |
getLocalAuthUserLookupFlag(int fieldflag)
Field flag accessor. |
static java.lang.String |
getLocalAuthUserLookupInvalidValue()
Invalid value for localAuthUserLookup. |
static int |
getLocalAuthUserLookupLengthMax()
Maximum localAuthUserLookup length is 70 characters |
static int |
getLocalAuthUserLookupLengthNorm()
Normal localAuthUserLookup length is 30 characters |
java.lang.String |
getLocalAuthUserLookupMetatype()
Return the metatype text for this field, or "" if no metatype was declared. |
java.lang.String |
getLocalAuthUserLookupPrintValue()
Retrieve the current value of this field as a print String. |
java.lang.String |
getLocalAuthUserLookupRange()
Return the range specification for this field |
java.lang.String |
getLocalAuthUserLookupValidityCheck()
Return the empty string if the value of this field is valid according to the base SAND declarations. |
Logger |
getLogger()
Accessor for logger |
static Logger |
getLoggerDefaultValue()
Default value for logger. |
java.lang.String |
getLoggerFieldPrintValue()
Return the print name of the logger field. |
static boolean |
getLoggerFlag(int fieldflag)
Field flag accessor. |
static Logger |
getLoggerInvalidValue()
Invalid value for logger. |
java.lang.String |
getLoggerMetatype()
Return the metatype text for this field, or "" if no metatype was declared. |
java.lang.String |
getLoggerPrintValue()
Retrieve the current value of this field as a print String. |
java.lang.String |
getLoggerRange()
Return the range specification for this field |
java.lang.String |
getLoggerValidityCheck()
Return the empty string if the value of this field is valid according to the base SAND declarations. |
int |
getLogLevel()
Accessor for logLevel |
static java.lang.String[] |
getLogLevelActualVals()
Return an array of the possible values for this field as Strings. |
static int |
getLogLevelDefaultValue()
Default value for logLevel. |
static java.lang.String |
getLogLevelEnumSummary()
Return a single String summary of the possible enum values for debug and similar purposes. |
java.lang.String |
getLogLevelFieldPrintValue()
Return the print name of the logLevel field. |
static boolean |
getLogLevelFlag(int fieldflag)
Field flag accessor. |
static int |
getLogLevelInvalidValue()
Invalid value for logLevel. |
static java.lang.String[] |
getLogLevelKeyVals()
Return an array of unique keys for the values of this field. |
java.lang.String |
getLogLevelMetatype()
Return the metatype text for this field, or "" if no metatype was declared. |
static java.lang.String[] |
getLogLevelPrintVals()
Return an array of the possible values for this field in display format. |
java.lang.String |
getLogLevelPrintValue()
Retrieve the current value of this field as a print String. |
java.lang.String |
getLogLevelRange()
Return the range specification for this field |
java.lang.String |
getLogLevelValidityCheck()
Return the empty string if the value of this field is valid according to the base SAND declarations. |
Messager |
getMessager()
Accessor for messager |
static Messager |
getMessagerDefaultValue()
Default value for messager. |
java.lang.String |
getMessagerFieldPrintValue()
Return the print name of the messager field. |
static boolean |
getMessagerFlag(int fieldflag)
Field flag accessor. |
static Messager |
getMessagerInvalidValue()
Invalid value for messager. |
java.lang.String |
getMessagerMetatype()
Return the metatype text for this field, or "" if no metatype was declared. |
java.lang.String |
getMessagerPrintValue()
Retrieve the current value of this field as a print String. |
java.lang.String |
getMessagerRange()
Return the range specification for this field |
java.lang.String |
getMessagerValidityCheck()
Return the empty string if the value of this field is valid according to the base SAND declarations. |
NodeInstance |
getNodeInstance()
Accessor for nodeInstance |
static NodeInstance |
getNodeInstanceDefaultValue()
Default value for nodeInstance. |
java.lang.String |
getNodeInstanceFieldPrintValue()
Return the print name of the nodeInstance field. |
static boolean |
getNodeInstanceFlag(int fieldflag)
Field flag accessor. |
static NodeInstance |
getNodeInstanceInvalidValue()
Invalid value for nodeInstance. |
java.lang.String |
getNodeInstanceMetatype()
Return the metatype text for this field, or "" if no metatype was declared. |
java.lang.String |
getNodeInstanceName()
convenience wrapper method to retrieve our instance name |
java.lang.String |
getNodeInstancePrintValue()
Retrieve the current value of this field as a print String. |
java.lang.String |
getNodeInstanceRange()
Return the range specification for this field |
java.lang.String |
getNodeInstanceValidityCheck()
Return the empty string if the value of this field is valid according to the base SAND declarations. |
java.lang.String |
getNotificationPassword()
Accessor for notificationPassword |
static java.lang.String |
getNotificationPasswordDefaultValue()
Default value for notificationPassword. |
java.lang.String |
getNotificationPasswordFieldPrintValue()
Return the print name of the notificationPassword field. |
static boolean |
getNotificationPasswordFlag(int fieldflag)
Field flag accessor. |
static java.lang.String |
getNotificationPasswordInvalidValue()
Invalid value for notificationPassword. |
static int |
getNotificationPasswordLengthMax()
Maximum notificationPassword length is 80 characters |
static int |
getNotificationPasswordLengthNorm()
Normal notificationPassword length is 15 characters |
java.lang.String |
getNotificationPasswordMetatype()
Return the metatype text for this field, or "" if no metatype was declared. |
java.lang.String |
getNotificationPasswordPrintValue()
Retrieve the current value of this field as a print String. |
java.lang.String |
getNotificationPasswordRange()
Return the range specification for this field |
java.lang.String |
getNotificationPasswordValidityCheck()
Return the empty string if the value of this field is valid according to the base SAND declarations. |
java.lang.String |
getNotificationUsername()
Accessor for notificationUsername |
static java.lang.String |
getNotificationUsernameDefaultValue()
Default value for notificationUsername. |
java.lang.String |
getNotificationUsernameFieldPrintValue()
Return the print name of the notificationUsername field. |
static boolean |
getNotificationUsernameFlag(int fieldflag)
Field flag accessor. |
static java.lang.String |
getNotificationUsernameInvalidValue()
Invalid value for notificationUsername. |
static int |
getNotificationUsernameLengthMax()
Maximum notificationUsername length is 80 characters |
static int |
getNotificationUsernameLengthNorm()
Normal notificationUsername length is 15 characters |
java.lang.String |
getNotificationUsernameMetatype()
Return the metatype text for this field, or "" if no metatype was declared. |
java.lang.String |
getNotificationUsernamePrintValue()
Retrieve the current value of this field as a print String. |
java.lang.String |
getNotificationUsernameRange()
Return the range specification for this field |
java.lang.String |
getNotificationUsernameValidityCheck()
Return the empty string if the value of this field is valid according to the base SAND declarations. |
IODeclSend |
getOutgoingAsyncCacheAction()
Accessor for outgoingAsyncCacheAction |
static IODeclSend |
getOutgoingAsyncCacheActionDefaultValue()
Default value for outgoingAsyncCacheAction. |
java.lang.String |
getOutgoingAsyncCacheActionFieldPrintValue()
Return the print name of the outgoingAsyncCacheAction field. |
static boolean |
getOutgoingAsyncCacheActionFlag(int fieldflag)
Field flag accessor. |
static IODeclSend |
getOutgoingAsyncCacheActionInvalidValue()
Invalid value for outgoingAsyncCacheAction. |
java.lang.String |
getOutgoingAsyncCacheActionMetatype()
Return the metatype text for this field, or "" if no metatype was declared. |
java.lang.String |
getOutgoingAsyncCacheActionPrintValue()
Retrieve the current value of this field as a print String. |
java.lang.String |
getOutgoingAsyncCacheActionRange()
Return the range specification for this field |
java.lang.String |
getOutgoingAsyncCacheActionValidityCheck()
Return the empty string if the value of this field is valid according to the base SAND declarations. |
Controllable |
getParent()
accessor for parent |
java.lang.String |
getSandNodeErrorMessage()
Accessor for sandNodeErrorMessage |
static java.lang.String |
getSandNodeErrorMessageDefaultValue()
Default value for sandNodeErrorMessage. |
java.lang.String |
getSandNodeErrorMessageFieldPrintValue()
Return the print name of the sandNodeErrorMessage field. |
static boolean |
getSandNodeErrorMessageFlag(int fieldflag)
Field flag accessor. |
static java.lang.String |
getSandNodeErrorMessageInvalidValue()
Invalid value for sandNodeErrorMessage. |
static int |
getSandNodeErrorMessageLengthMax()
Maximum sandNodeErrorMessage length is 70 characters |
static int |
getSandNodeErrorMessageLengthNorm()
Normal sandNodeErrorMessage length is 30 characters |
java.lang.String |
getSandNodeErrorMessageMetatype()
Return the metatype text for this field, or "" if no metatype was declared. |
java.lang.String |
getSandNodeErrorMessagePrintValue()
Retrieve the current value of this field as a print String. |
java.lang.String |
getSandNodeErrorMessageRange()
Return the range specification for this field |
java.lang.String |
getSandNodeErrorMessageValidityCheck()
Return the empty string if the value of this field is valid according to the base SAND declarations. |
int |
getSandNodeState()
Accessor for sandNodeState |
static java.lang.String[] |
getSandNodeStateActualVals()
Return an array of the possible values for this field as Strings. |
static int |
getSandNodeStateDefaultValue()
Default value for sandNodeState. |
static java.lang.String |
getSandNodeStateEnumSummary()
Return a single String summary of the possible enum values for debug and similar purposes. |
java.lang.String |
getSandNodeStateFieldPrintValue()
Return the print name of the sandNodeState field. |
static boolean |
getSandNodeStateFlag(int fieldflag)
Field flag accessor. |
static int |
getSandNodeStateInvalidValue()
Invalid value for sandNodeState. |
static java.lang.String[] |
getSandNodeStateKeyVals()
Return an array of unique keys for the values of this field. |
java.lang.String |
getSandNodeStateMetatype()
Return the metatype text for this field, or "" if no metatype was declared. |
static java.lang.String[] |
getSandNodeStatePrintVals()
Return an array of the possible values for this field in display format. |
java.lang.String |
getSandNodeStatePrintValue()
Retrieve the current value of this field as a print String. |
java.lang.String |
getSandNodeStateRange()
Return the range specification for this field |
java.lang.String |
getSandNodeStateValidityCheck()
Return the empty string if the value of this field is valid according to the base SAND declarations. |
SandRoot |
getSandRoot()
accessor for sandRoot |
java.lang.String |
getServername()
convenience wrapper method to retrieve our home server name |
void |
init()
Initialize all fields to their default values |
void |
log(int severity,
java.lang.String msg)
Log the message with the specified severity. |
void |
log(java.lang.String msg)
Shorthand for log(Logger.LOGLEVEL_INFO,msg) |
static java.lang.String |
logLevelActual2Print(java.lang.String actualVal)
Utility method to transform an actual value for this field into a print value. |
int |
logLevelLabelToValue(java.lang.String label)
Given a label, return the value for it. |
static int |
logLevelLabelToValueStatic(java.lang.String label)
|
static java.lang.String |
logLevelPrint2Actual(java.lang.String printVal)
Utility method to transform a print value for this field into an actual value. |
static java.lang.String |
logLevelPrint2Key(java.lang.String printVal)
Utility method to transform a print value for this field into a key value. |
java.lang.String |
logLevelValueToLabel(int val)
Given a value, return the declared label for it. |
static java.lang.String |
logLevelValueToLabelStatic(int val)
|
protected void |
notifyStateChange(int prevState,
int currState)
Notify our registered control wrappers of our state change |
protected void |
onDelivery(CacheAction msg)
Override this method in your node implementation |
protected void |
onDelivery(SandUpdateMessage msg)
Override this method in your node implementation |
protected void |
onFailure()
Override this method to do work when the node enters the failed state. |
protected CacheAction |
onReceive(CacheAction msg)
Override this method in your node implementation |
protected void |
onRestart()
Override this method to do work during startup(). |
protected void |
onResume()
Override this method to do work during resume(). |
protected void |
onShutdown()
Override this method to do work during shutdown(). |
protected void |
onStartup()
Override this method to do work during startup(). |
protected void |
onSuspend()
Override this method to do work during suspend(). |
void |
readConfigParamsFromNodeInstance(NodeInstance ni)
Read our configuration parameter values from the our node instance. |
CacheAction |
receive(CacheAction msg)
Synchronous inbound CacheAction |
SandMessage |
receive(SandMessage msg)
Only those receive methods explicitely declared by the node should actually be called. |
void |
restart()
Restarts a running node by calling shutdown and then startup |
void |
resume()
Resumes a suspended node. |
static java.lang.String |
sandNodeStateActual2Print(java.lang.String actualVal)
Utility method to transform an actual value for this field into a print value. |
int |
sandNodeStateLabelToValue(java.lang.String label)
Given a label, return the value for it. |
static int |
sandNodeStateLabelToValueStatic(java.lang.String label)
|
static java.lang.String |
sandNodeStatePrint2Actual(java.lang.String printVal)
Utility method to transform a print value for this field into an actual value. |
static java.lang.String |
sandNodeStatePrint2Key(java.lang.String printVal)
Utility method to transform a print value for this field into a key value. |
java.lang.String |
sandNodeStateValueToLabel(int val)
Given a value, return the declared label for it. |
static java.lang.String |
sandNodeStateValueToLabelStatic(int val)
|
void |
send(CacheAction msg)
Asynchronous outbound CacheAction |
void |
setHelperNodes(Controllable[] nodes)
mutator for helperNodes |
void |
setIncomingAsyncCacheActionMessage(IODeclSubscribe incomingAsyncCacheActionMessage)
Mutator for incomingAsyncCacheActionMessage |
void |
setIncomingAsyncCacheActionMessage(java.lang.Object incomingAsyncCacheActionMessage)
Generic mutator for incomingAsyncCacheActionMessage |
void |
setIncomingAsyncSandUpdateMessage(IODeclSubscribe incomingAsyncSandUpdateMessage)
Mutator for incomingAsyncSandUpdateMessage |
void |
setIncomingAsyncSandUpdateMessage(java.lang.Object incomingAsyncSandUpdateMessage)
Generic mutator for incomingAsyncSandUpdateMessage |
void |
setIncomingSyncCacheAction(IODeclReceive incomingSyncCacheAction)
Mutator for incomingSyncCacheAction |
void |
setIncomingSyncCacheAction(java.lang.Object incomingSyncCacheAction)
Generic mutator for incomingSyncCacheAction |
void |
setLocalAuthUserLookup(java.lang.Object localAuthUserLookup)
Generic mutator for localAuthUserLookup |
void |
setLocalAuthUserLookup(java.lang.String localAuthUserLookup)
Mutator for localAuthUserLookup |
void |
setLogger(Logger logger)
Mutator for logger |
void |
setLogger(java.lang.Object logger)
Generic mutator for logger |
void |
setLogLevel(int logLevel)
Mutator for logLevel |
void |
setMessager(Messager messager)
Mutator for messager |
void |
setMessager(java.lang.Object messager)
Generic mutator for messager |
void |
setNodeInstance(NodeInstance nodeInstance)
Mutator for nodeInstance |
void |
setNodeInstance(java.lang.Object nodeInstance)
Generic mutator for nodeInstance |
void |
setNotificationPassword(java.lang.Object notificationPassword)
Generic mutator for notificationPassword |
void |
setNotificationPassword(java.lang.String notificationPassword)
Mutator for notificationPassword |
void |
setNotificationUsername(java.lang.Object notificationUsername)
Generic mutator for notificationUsername |
void |
setNotificationUsername(java.lang.String notificationUsername)
Mutator for notificationUsername |
void |
setOutgoingAsyncCacheAction(IODeclSend outgoingAsyncCacheAction)
Mutator for outgoingAsyncCacheAction |
void |
setOutgoingAsyncCacheAction(java.lang.Object outgoingAsyncCacheAction)
Generic mutator for outgoingAsyncCacheAction |
void |
setParent(Controllable node)
mutator for parent |
void |
setSandNodeErrorMessage(java.lang.Object sandNodeErrorMessage)
Generic mutator for sandNodeErrorMessage |
void |
setSandNodeErrorMessage(java.lang.String sandNodeErrorMessage)
Mutator for sandNodeErrorMessage |
void |
setSandNodeState(int sandNodeState)
Mutator for sandNodeState |
void |
setSandRoot(SandRoot val)
mutator for sandRoot |
protected void |
setupSecureReceive()
Register us for receive with our local Authorizer |
protected void |
setupSubscriptions()
Subscribe us to the nodes we need to listen to |
void |
shutdown()
Stops a running node. |
void |
startup()
Starts a stopped node. |
void |
suspend()
Suspends a running node. |
void |
systemwideShutdown(int code)
Call our shutdown, which shuts down our local nodes, then cascade this call upward to our parent so it spreads throughout the system as needed. |
boolean |
validTransition(int transition)
Validates a state transition by comparing the desired transition with the current state. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected IODeclReceive incomingSyncCacheAction
protected IODeclSend outgoingAsyncCacheAction
protected IODeclSubscribe incomingAsyncSandUpdateMessage
protected IODeclSubscribe incomingAsyncCacheActionMessage
protected int sandNodeState
Controllable
public static final int SANDNODESTATE_UNDEFINED
public static final int SANDNODESTATE_RUNNING
public static final int SANDNODESTATE_SUSPENDED
public static final int SANDNODESTATE_STOPPED
public static final int SANDNODESTATE_FAILED
public static final int SANDNODESTATE_STARTING
public static final int SANDNODESTATE_STOPPING
public static final int SANDNODESTATE_SUSPENDING
public static final int SANDNODESTATE_RESUMING
public static final int SANDNODESTATE_FAILING
protected java.lang.String sandNodeErrorMessage
protected Messager messager
protected Logger logger
protected int logLevel
public static final int LOGLEVEL_DEBUG
public static final int LOGLEVEL_INFO
public static final int LOGLEVEL_WARN
public static final int LOGLEVEL_ERROR
public static final int LOGLEVEL_FATAL
protected NodeInstance nodeInstance
protected SandRoot sandRoot
protected static final int LOGDEBUG
protected static final int LOGINFO
protected static final int LOGWARN
protected static final int LOGERROR
protected static final int LOGFATAL
protected Controllable parent
protected Controllable[] helperNodes
protected ControlWrapper[] ctrlwrappers
| Constructor Detail |
|---|
public CacheManagerNodeBase()
| Method Detail |
|---|
public boolean fieldHasFlag(java.lang.String fieldname,
int fieldflag)
public java.lang.String getLocalAuthUserLookup()
public void setLocalAuthUserLookup(java.lang.String localAuthUserLookup)
public void setLocalAuthUserLookup(java.lang.Object localAuthUserLookup)
public static boolean getLocalAuthUserLookupFlag(int fieldflag)
public static int getLocalAuthUserLookupLengthNorm()
public static int getLocalAuthUserLookupLengthMax()
public static java.lang.String getLocalAuthUserLookupDefaultValue()
public static java.lang.String getLocalAuthUserLookupInvalidValue()
public java.lang.String getLocalAuthUserLookupPrintValue()
Used for debug output, and as an initial value for transformation and formatting.
public java.lang.String getLocalAuthUserLookupFieldPrintValue()
public java.lang.String getLocalAuthUserLookupRange()
public java.lang.String getLocalAuthUserLookupValidityCheck()
public java.lang.String getLocalAuthUserLookupMetatype()
public java.lang.String getNotificationUsername()
public void setNotificationUsername(java.lang.String notificationUsername)
public void setNotificationUsername(java.lang.Object notificationUsername)
public static boolean getNotificationUsernameFlag(int fieldflag)
public static int getNotificationUsernameLengthNorm()
public static int getNotificationUsernameLengthMax()
public static java.lang.String getNotificationUsernameDefaultValue()
public static java.lang.String getNotificationUsernameInvalidValue()
public java.lang.String getNotificationUsernamePrintValue()
Used for debug output, and as an initial value for transformation and formatting.
public java.lang.String getNotificationUsernameFieldPrintValue()
public java.lang.String getNotificationUsernameRange()
public java.lang.String getNotificationUsernameValidityCheck()
public java.lang.String getNotificationUsernameMetatype()
public java.lang.String getNotificationPassword()
public void setNotificationPassword(java.lang.String notificationPassword)
public void setNotificationPassword(java.lang.Object notificationPassword)
public static boolean getNotificationPasswordFlag(int fieldflag)
public static int getNotificationPasswordLengthNorm()
public static int getNotificationPasswordLengthMax()
public static java.lang.String getNotificationPasswordDefaultValue()
public static java.lang.String getNotificationPasswordInvalidValue()
public java.lang.String getNotificationPasswordPrintValue()
Used for debug output, and as an initial value for transformation and formatting.
public java.lang.String getNotificationPasswordFieldPrintValue()
public java.lang.String getNotificationPasswordRange()
public java.lang.String getNotificationPasswordValidityCheck()
public java.lang.String getNotificationPasswordMetatype()
public IODeclReceive getIncomingSyncCacheAction()
public void setIncomingSyncCacheAction(IODeclReceive incomingSyncCacheAction)
public void setIncomingSyncCacheAction(java.lang.Object incomingSyncCacheAction)
public static boolean getIncomingSyncCacheActionFlag(int fieldflag)
public static IODeclReceive getIncomingSyncCacheActionDefaultValue()
public static IODeclReceive getIncomingSyncCacheActionInvalidValue()
public java.lang.String getIncomingSyncCacheActionPrintValue()
Used for debug output, and as an initial value for transformation and formatting.
public java.lang.String getIncomingSyncCacheActionFieldPrintValue()
public java.lang.String getIncomingSyncCacheActionRange()
public java.lang.String getIncomingSyncCacheActionValidityCheck()
public java.lang.String getIncomingSyncCacheActionMetatype()
public IODeclSend getOutgoingAsyncCacheAction()
public void setOutgoingAsyncCacheAction(IODeclSend outgoingAsyncCacheAction)
public void setOutgoingAsyncCacheAction(java.lang.Object outgoingAsyncCacheAction)
public static boolean getOutgoingAsyncCacheActionFlag(int fieldflag)
public static IODeclSend getOutgoingAsyncCacheActionDefaultValue()
public static IODeclSend getOutgoingAsyncCacheActionInvalidValue()
public java.lang.String getOutgoingAsyncCacheActionPrintValue()
Used for debug output, and as an initial value for transformation and formatting.
public java.lang.String getOutgoingAsyncCacheActionFieldPrintValue()
public java.lang.String getOutgoingAsyncCacheActionRange()
public java.lang.String getOutgoingAsyncCacheActionValidityCheck()
public java.lang.String getOutgoingAsyncCacheActionMetatype()
public IODeclSubscribe getIncomingAsyncSandUpdateMessage()
public void setIncomingAsyncSandUpdateMessage(IODeclSubscribe incomingAsyncSandUpdateMessage)
public void setIncomingAsyncSandUpdateMessage(java.lang.Object incomingAsyncSandUpdateMessage)
public static boolean getIncomingAsyncSandUpdateMessageFlag(int fieldflag)
public static IODeclSubscribe getIncomingAsyncSandUpdateMessageDefaultValue()
public static IODeclSubscribe getIncomingAsyncSandUpdateMessageInvalidValue()
public java.lang.String getIncomingAsyncSandUpdateMessagePrintValue()
Used for debug output, and as an initial value for transformation and formatting.
public java.lang.String getIncomingAsyncSandUpdateMessageFieldPrintValue()
public java.lang.String getIncomingAsyncSandUpdateMessageRange()
public java.lang.String getIncomingAsyncSandUpdateMessageValidityCheck()
public java.lang.String getIncomingAsyncSandUpdateMessageMetatype()
public IODeclSubscribe getIncomingAsyncCacheActionMessage()
public void setIncomingAsyncCacheActionMessage(IODeclSubscribe incomingAsyncCacheActionMessage)
public void setIncomingAsyncCacheActionMessage(java.lang.Object incomingAsyncCacheActionMessage)
public static boolean getIncomingAsyncCacheActionMessageFlag(int fieldflag)
public static IODeclSubscribe getIncomingAsyncCacheActionMessageDefaultValue()
public static IODeclSubscribe getIncomingAsyncCacheActionMessageInvalidValue()
public java.lang.String getIncomingAsyncCacheActionMessagePrintValue()
Used for debug output, and as an initial value for transformation and formatting.
public java.lang.String getIncomingAsyncCacheActionMessageFieldPrintValue()
public java.lang.String getIncomingAsyncCacheActionMessageRange()
public java.lang.String getIncomingAsyncCacheActionMessageValidityCheck()
public java.lang.String getIncomingAsyncCacheActionMessageMetatype()
public int getSandNodeState()
getSandNodeState in interface Controllablepublic void setSandNodeState(int sandNodeState)
public java.lang.String sandNodeStateValueToLabel(int val)
public static java.lang.String sandNodeStateValueToLabelStatic(int val)
public int sandNodeStateLabelToValue(java.lang.String label)
public static int sandNodeStateLabelToValueStatic(java.lang.String label)
public static java.lang.String[] getSandNodeStatePrintVals()
public static java.lang.String[] getSandNodeStateKeyVals()
public static java.lang.String[] getSandNodeStateActualVals()
public static java.lang.String sandNodeStatePrint2Key(java.lang.String printVal)
getSandNodeStatePrintVals
and getSandNodeStateKeyVals methods for details.
public static java.lang.String sandNodeStatePrint2Actual(java.lang.String printVal)
getSandNodeStatePrintVals
and getSandNodeStateActualVals methods for details.
public static java.lang.String sandNodeStateActual2Print(java.lang.String actualVal)
getSandNodeStateActualVals
and getSandNodeStatePrintVals methods for details.
public static java.lang.String getSandNodeStateEnumSummary()
public static boolean getSandNodeStateFlag(int fieldflag)
public static int getSandNodeStateDefaultValue()
public static int getSandNodeStateInvalidValue()
public java.lang.String getSandNodeStatePrintValue()
Used for debug output, and as an initial value for transformation and formatting.
public java.lang.String getSandNodeStateFieldPrintValue()
public java.lang.String getSandNodeStateRange()
public java.lang.String getSandNodeStateValidityCheck()
public java.lang.String getSandNodeStateMetatype()
public java.lang.String getSandNodeErrorMessage()
public void setSandNodeErrorMessage(java.lang.String sandNodeErrorMessage)
public void setSandNodeErrorMessage(java.lang.Object sandNodeErrorMessage)
public static boolean getSandNodeErrorMessageFlag(int fieldflag)
public static int getSandNodeErrorMessageLengthNorm()
public static int getSandNodeErrorMessageLengthMax()
public static java.lang.String getSandNodeErrorMessageDefaultValue()
public static java.lang.String getSandNodeErrorMessageInvalidValue()
public java.lang.String getSandNodeErrorMessagePrintValue()
Used for debug output, and as an initial value for transformation and formatting.
public java.lang.String getSandNodeErrorMessageFieldPrintValue()
public java.lang.String getSandNodeErrorMessageRange()
public java.lang.String getSandNodeErrorMessageValidityCheck()
public java.lang.String getSandNodeErrorMessageMetatype()
public Messager getMessager()
getMessager in interface Messageablepublic void setMessager(Messager messager)
setMessager in interface Messageablepublic void setMessager(java.lang.Object messager)
public static boolean getMessagerFlag(int fieldflag)
public static Messager getMessagerDefaultValue()
public static Messager getMessagerInvalidValue()
public java.lang.String getMessagerPrintValue()
Used for debug output, and as an initial value for transformation and formatting.
public java.lang.String getMessagerFieldPrintValue()
public java.lang.String getMessagerRange()
public java.lang.String getMessagerValidityCheck()
public java.lang.String getMessagerMetatype()
public Logger getLogger()
getLogger in interface Loggablepublic void setLogger(Logger logger)
setLogger in interface Loggablepublic void setLogger(java.lang.Object logger)
public static boolean getLoggerFlag(int fieldflag)
public static Logger getLoggerDefaultValue()
public static Logger getLoggerInvalidValue()
public java.lang.String getLoggerPrintValue()
Used for debug output, and as an initial value for transformation and formatting.
public java.lang.String getLoggerFieldPrintValue()
public java.lang.String getLoggerRange()
public java.lang.String getLoggerValidityCheck()
public java.lang.String getLoggerMetatype()
public int getLogLevel()
getLogLevel in interface Loggablepublic void setLogLevel(int logLevel)
setLogLevel in interface Loggablepublic java.lang.String logLevelValueToLabel(int val)
public static java.lang.String logLevelValueToLabelStatic(int val)
public int logLevelLabelToValue(java.lang.String label)
public static int logLevelLabelToValueStatic(java.lang.String label)
public static java.lang.String[] getLogLevelPrintVals()
public static java.lang.String[] getLogLevelKeyVals()
public static java.lang.String[] getLogLevelActualVals()
public static java.lang.String logLevelPrint2Key(java.lang.String printVal)
getLogLevelPrintVals
and getLogLevelKeyVals methods for details.
public static java.lang.String logLevelPrint2Actual(java.lang.String printVal)
getLogLevelPrintVals
and getLogLevelActualVals methods for details.
public static java.lang.String logLevelActual2Print(java.lang.String actualVal)
getLogLevelActualVals
and getLogLevelPrintVals methods for details.
public static java.lang.String getLogLevelEnumSummary()
public static boolean getLogLevelFlag(int fieldflag)
public static int getLogLevelDefaultValue()
public static int getLogLevelInvalidValue()
public java.lang.String getLogLevelPrintValue()
Used for debug output, and as an initial value for transformation and formatting.
public java.lang.String getLogLevelFieldPrintValue()
public java.lang.String getLogLevelRange()
public java.lang.String getLogLevelValidityCheck()
public java.lang.String getLogLevelMetatype()
public NodeInstance getNodeInstance()
getNodeInstance in interface Controllablepublic void setNodeInstance(NodeInstance nodeInstance)
setNodeInstance in interface Controllablepublic void setNodeInstance(java.lang.Object nodeInstance)
public static boolean getNodeInstanceFlag(int fieldflag)
public static NodeInstance getNodeInstanceDefaultValue()
public static NodeInstance getNodeInstanceInvalidValue()
public java.lang.String getNodeInstancePrintValue()
Used for debug output, and as an initial value for transformation and formatting.
public java.lang.String getNodeInstanceFieldPrintValue()
public java.lang.String getNodeInstanceRange()
public java.lang.String getNodeInstanceValidityCheck()
public java.lang.String getNodeInstanceMetatype()
public java.lang.String getNodeInstanceName()
public java.lang.String getServername()
public SandRoot getSandRoot()
getSandRoot in interface Controllablepublic void setSandRoot(SandRoot val)
setSandRoot in interface Controllablepublic void init()
public void log(int severity,
java.lang.String msg)
public void log(java.lang.String msg)
public void startup()
throws ControlException
startup in interface ControllableControlException
public void shutdown()
throws ControlException
shutdown in interface ControllableControlException
public void suspend()
throws ControlException
suspend in interface ControllableControlException
public void resume()
throws ControlException
resume in interface ControllableControlException
public void restart()
throws ControlException
restart in interface ControllableControlExceptionpublic boolean validTransition(int transition)
public void readConfigParamsFromNodeInstance(NodeInstance ni)
protected void onStartup()
throws SandException
startup().
SandException
protected void onShutdown()
throws SandException
shutdown().
SandException
protected void onSuspend()
throws SandException
suspend().
SandException
protected void onResume()
throws SandException
resume().
SandException
protected void onRestart()
throws SandException
startup().
SandException
protected void onFailure()
throws ControlException
ControlExceptionpublic Controllable getParent()
getParent in interface Controllablepublic void setParent(Controllable node)
public Controllable[] getHelperNodes()
getHelperNodes in interface Controllablepublic void setHelperNodes(Controllable[] nodes)
setHelperNodes in interface Controllable
public void systemwideShutdown(int code)
throws ControlException
systemwideShutdown in interface ControllableControlExceptionpublic void addWrapper(ControlWrapper wrapper)
addWrapper in interface Controllable
protected void notifyStateChange(int prevState,
int currState)
protected void setupSubscriptions()
protected void setupSecureReceive()
public CacheAction receive(CacheAction msg)
throws SandException
SandException
protected CacheAction onReceive(CacheAction msg)
throws SandException
SandException
public SandMessage receive(SandMessage msg)
throws SandException
In practice, this doesn't add much overhead if we enumerate
the supported methods at code generation time, and then switch
on the enumeration.
receive in interface MessageableSandException
public void deliverSandUpdateMessage(SandUpdateMessage msg)
throws SandException
SandException
protected void onDelivery(SandUpdateMessage msg)
throws SandException
SandException
public void deliverCacheActionMessage(CacheAction msg)
throws SandException
SandException
protected void onDelivery(CacheAction msg)
throws SandException
SandException
public void deliver(SandMessage msg)
throws SandException
In practice, this doesn't add much overhead if we enumerate
the supported methods at code generation time, and then switch
on the enumeration.
deliver in interface MessageableSandException
public SandCollectionMessage callQuery(SandQueryMessage sqm)
throws SandException
callQuery in interface MessageableSandException
public void send(CacheAction msg)
throws MessagerException
MessagerExceptionpublic IDCache getIDCache()
getIDCache in interface Messageablepublic java.lang.String getDeploymentPrefix()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||