|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sandev.basics.MessageDriver.MessageDriverNodeDecl
org.sandev.basics.MessageDriver.MessageDriverNodeInstance
AUTOGENERATED FILE, DO NOT EDIT DIRECTLY.
source: org.sandev.basics.MessageDriver.MessageDriverNodeDecl
generator: org.sandev.generator.NodeInstClassGenerator
time: Dec 2, 2005 6:38:50 PM
This file contains all declared configuration and messaging parameters for this node.
| Field Summary | |
protected NodeInstance[] |
helperNodes
Additional nodes instantiated with this node running together as a logical subsystem. |
protected IODeclReceive |
incomingSyncSandMessage
Inbound org.sandev.basics.structs.SandMessage synchronous messaging configuration |
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 java.lang.String |
nodeInstanceName
The unique name identifying this specific node instance. |
protected IODeclSend |
outgoingAsyncSandMessage
Outbound org.sandev.basics.structs.SandMessage asynchronous messaging configuration |
protected java.lang.String |
servername
The name of the server this instance will be running on. |
| Fields inherited from class org.sandev.basics.MessageDriver.MessageDriverNodeDecl |
basePath, testScripts |
| Fields inherited from interface org.sandev.basics.structs.NodeInstance |
MSGMODE_DIRECT, MSGMODE_SECURE, MSGOPTIMIZE_IF_POSSIBLE, MSGOPTIMIZE_NEVER |
| Fields inherited from interface org.sandev.basics.structs.SandInstanceMessage |
FIELDCHECK_INVALIDVAL, FIELDCHECK_NOTAREF, FIELDCHECK_NOTINRANGE, FIELDCHECK_NULLARRAY, FIELDCHECK_STRINGOVER, FIELDCHECK_UNKNOWNVAL, FIELDFLAG_BINARY, FIELDFLAG_ENCRYPT, FIELDFLAG_INTERNAL, FIELDFLAG_NOECHO, FIELDFLAG_OBFUSCATE, FIELDFLAG_STRINGPERSIST, FIELDFLAG_UNIQUE, GENMOD_ACTION_APPEND, GENMOD_ACTION_INSERT, GENMOD_ACTION_REMOVE, GENMOD_ACTION_SET |
| Constructor Summary | |
MessageDriverNodeInstance()
Default constructor calls init. |
|
| Method Summary | |
void |
addHelperNodes(NodeInstance element)
Appends a value to helperNodes |
void |
addHelperNodes(NodeInstance[] elements)
Appends an array of values to helperNodes |
void |
addTestScripts(java.lang.String element)
Appends a value to testScripts |
void |
addTestScripts(java.lang.String[] elements)
Appends an array of values to testScripts |
void |
clearHelperNodes()
Clears all values from helperNodes |
void |
clearTestScripts()
Clears all values from testScripts |
SandInstanceMessage |
cloneMessage()
Calls cloneMessageDriverNodeInstance |
MessageDriverNodeInstance |
cloneMessageDriverNodeInstance()
Make a deep copy of this MessageDriverNodeInstance. |
SandInstanceMessage |
convertToSuperstructClass()
Return a new instance of the message associated with the superstruct of this instance. |
void |
copyDataFrom(MessageDriverNodeInstance other)
Deep copy all the data from the specified instance. |
void |
copyFieldValue(java.lang.String fieldName,
SandInstanceMessage other)
Copy the specified field from the given instance. |
java.lang.String |
debugDump(java.lang.String prefix)
Dump this instance into a debug printable string. |
void |
defaultField(java.lang.String fieldname)
Set the specified field to its default value. |
boolean |
fieldHasFlag(java.lang.String fieldname,
int fieldflag)
Return true if the named field declares the indicated flag, false otherwise. |
boolean |
fieldsValid()
Validate the fields as specified in the SandInstanceMessage interface |
SandAttrVal[] |
fieldValidate(SandAttrVal[] checkFields)
Validate the fields as specified in the SandInstanceMessage interface |
java.lang.Object |
generalAccessor(java.lang.String fieldspec)
General field accessor method. |
SandAttrVal |
generalDereference(java.lang.String fieldspec)
General reference field accessor method. |
void |
generalModifier(int action,
java.lang.String field,
int index,
java.lang.Object val)
General mutator method. |
java.lang.String[] |
getAllFields()
Return an array of all fields for this class. |
java.lang.String |
getBasePath()
Accessor for basePath |
static java.lang.String |
getBasePathDefaultValue()
Default value for basePath. |
java.lang.String |
getBasePathFieldPrintValue()
Return the print name of the basePath field. |
static boolean |
getBasePathFlag(int fieldflag)
Field flag accessor. |
static java.lang.String |
getBasePathInvalidValue()
Invalid value for basePath. |
static int |
getBasePathLengthMax()
Maximum basePath length is 70 characters |
static int |
getBasePathLengthNorm()
Normal basePath length is 30 characters |
java.lang.String |
getBasePathMetatype()
Return the metatype text for this field, or "" if no metatype was declared. |
java.lang.String |
getBasePathPrintValue()
Retrieve the current value of this field as a print String. |
java.lang.String |
getBasePathRange()
Return the range specification for this field |
java.lang.String |
getBasePathValidityCheck()
Return the empty string if the value of this field is valid according to the base SAND declarations. |
SandCollectionMessage |
getCollectionMessage()
Returns null |
java.lang.String[] |
getDisplayFields()
Return an array of the summary field names for this class. |
java.lang.String[] |
getDisplayValues()
Return the values for the summary fields. |
java.lang.String[] |
getDisplayValues(IDLookup lookup,
AuthUser user,
java.lang.String defaultVal)
Return the values for the summary fields, including dereference expressions. |
NodeInstance[] |
getHelperNodes()
Accessor for helperNodes |
NodeInstance |
getHelperNodes(int index)
Returns the element at the specified index. |
static NodeInstance[] |
getHelperNodesDefaultValue()
Default value for helperNodes. |
static NodeInstance |
getHelperNodesElementInvalidValue()
Invalid value for helperNodeselement. |
static boolean |
getHelperNodesFlag(int fieldflag)
Field flag accessor. |
static NodeInstance[] |
getHelperNodesInvalidValue()
Invalid value for helperNodes. |
java.lang.String |
getHelperNodesMetatype()
Return the metatype text for this field, or "" if no metatype was declared. |
java.lang.String |
getHelperNodesRange()
Return the range specification for this field |
java.lang.String |
getHelperNodesValidityCheck()
Return the empty string if the value of this field is valid according to the base SAND declarations. |
IODeclReceive |
getIncomingSyncSandMessage()
Accessor for incomingSyncSandMessage |
static IODeclReceive |
getIncomingSyncSandMessageDefaultValue()
Default value for incomingSyncSandMessage. |
java.lang.String |
getIncomingSyncSandMessageFieldPrintValue()
Return the print name of the incomingSyncSandMessage field. |
static boolean |
getIncomingSyncSandMessageFlag(int fieldflag)
Field flag accessor. |
static IODeclReceive |
getIncomingSyncSandMessageInvalidValue()
Invalid value for incomingSyncSandMessage. |
java.lang.String |
getIncomingSyncSandMessageMetatype()
Return the metatype text for this field, or "" if no metatype was declared. |
java.lang.String |
getIncomingSyncSandMessagePrintValue()
Retrieve the current value of this field as a print String. |
java.lang.String |
getIncomingSyncSandMessageRange()
Return the range specification for this field |
java.lang.String |
getIncomingSyncSandMessageValidityCheck()
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. |
java.lang.String |
getNodeInstanceName()
Accessor for nodeInstanceName |
static java.lang.String |
getNodeInstanceNameDefaultValue()
Default value for nodeInstanceName. |
java.lang.String |
getNodeInstanceNameFieldPrintValue()
Return the print name of the nodeInstanceName field. |
static boolean |
getNodeInstanceNameFlag(int fieldflag)
Field flag accessor. |
static java.lang.String |
getNodeInstanceNameInvalidValue()
Invalid value for nodeInstanceName. |
static int |
getNodeInstanceNameLengthMax()
Maximum nodeInstanceName length is 70 characters |
static int |
getNodeInstanceNameLengthNorm()
Normal nodeInstanceName length is 30 characters |
java.lang.String |
getNodeInstanceNameMetatype()
Return the metatype text for this field, or "" if no metatype was declared. |
java.lang.String |
getNodeInstanceNamePrintValue()
Retrieve the current value of this field as a print String. |
java.lang.String |
getNodeInstanceNameRange()
Return the range specification for this field |
java.lang.String |
getNodeInstanceNameValidityCheck()
Return the empty string if the value of this field is valid according to the base SAND declarations. |
IODeclSend |
getOutgoingAsyncSandMessage()
Accessor for outgoingAsyncSandMessage |
static IODeclSend |
getOutgoingAsyncSandMessageDefaultValue()
Default value for outgoingAsyncSandMessage. |
java.lang.String |
getOutgoingAsyncSandMessageFieldPrintValue()
Return the print name of the outgoingAsyncSandMessage field. |
static boolean |
getOutgoingAsyncSandMessageFlag(int fieldflag)
Field flag accessor. |
static IODeclSend |
getOutgoingAsyncSandMessageInvalidValue()
Invalid value for outgoingAsyncSandMessage. |
java.lang.String |
getOutgoingAsyncSandMessageMetatype()
Return the metatype text for this field, or "" if no metatype was declared. |
java.lang.String |
getOutgoingAsyncSandMessagePrintValue()
Retrieve the current value of this field as a print String. |
java.lang.String |
getOutgoingAsyncSandMessageRange()
Return the range specification for this field |
java.lang.String |
getOutgoingAsyncSandMessageValidityCheck()
Return the empty string if the value of this field is valid according to the base SAND declarations. |
SandQueryMessage |
getQueryMessage()
Returns null |
java.lang.String |
getServername()
Accessor for servername |
static java.lang.String |
getServernameDefaultValue()
Default value for servername. |
java.lang.String |
getServernameFieldPrintValue()
Return the print name of the servername field. |
static boolean |
getServernameFlag(int fieldflag)
Field flag accessor. |
static java.lang.String |
getServernameInvalidValue()
Invalid value for servername. |
static int |
getServernameLengthMax()
Maximum servername length is 70 characters |
static int |
getServernameLengthNorm()
Normal servername length is 30 characters |
java.lang.String |
getServernameMetatype()
Return the metatype text for this field, or "" if no metatype was declared. |
java.lang.String |
getServernamePrintValue()
Retrieve the current value of this field as a print String. |
java.lang.String |
getServernameRange()
Return the range specification for this field |
java.lang.String |
getServernameValidityCheck()
Return the empty string if the value of this field is valid according to the base SAND declarations. |
java.lang.String |
getShortName()
Returns the unqualified name of this message. |
SandStructMessage |
getStructMessage()
Returns a new MessageDriverNodeInstance instance |
java.lang.String[] |
getTestScripts()
Accessor for testScripts |
java.lang.String |
getTestScripts(int index)
Returns the element at the specified index. |
static java.lang.String[] |
getTestScriptsDefaultValue()
Default value for testScripts. |
static java.lang.String |
getTestScriptsElementInvalidValue()
Invalid value for testScriptselement. |
static boolean |
getTestScriptsFlag(int fieldflag)
Field flag accessor. |
static java.lang.String[] |
getTestScriptsInvalidValue()
Invalid value for testScripts. |
static int |
getTestScriptsLengthMax()
Maximum testScripts length is 70 characters |
static int |
getTestScriptsLengthNorm()
Normal testScripts length is 30 characters |
java.lang.String |
getTestScriptsMetatype()
Return the metatype text for this field, or "" if no metatype was declared. |
java.lang.String |
getTestScriptsRange()
Return the range specification for this field |
java.lang.String |
getTestScriptsValidityCheck()
Return the empty string if the value of this field is valid according to the base SAND declarations. |
SandUpdateMessage |
getUpdateMessage()
Returns null |
java.lang.String |
getValueForFieldName(java.lang.String fieldname,
IDLookup lookup,
AuthUser user,
java.lang.String defaultVal)
Returns the print representation of the value of the specified field, or the given default value if innaccessible. |
boolean |
helperNodesContains(NodeInstance val)
Returns true if helperNodes contains the specified value. |
int |
helperNodesIndexOf(NodeInstance val)
Return the index of the specified value in helperNodes, or -1 if not found. |
void |
init()
Initialize all fields to their default values |
void |
insertHelperNodes(int index,
NodeInstance value)
Insert the specified element at the specified index. |
void |
insertTestScripts(int index,
java.lang.String value)
Insert the specified element at the specified index. |
boolean |
isEquivalent(SandMessage sm)
Declared field equivalence check as specified by the SandMessage interface. |
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 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. |
java.lang.String[] |
referenceValidate(java.lang.String[] locations,
java.lang.String prefix,
IDLookup idlookup,
NameLookup namelookup,
AuthUser au)
Validate the references as specified in the Resolvable interface. |
NodeInstance |
removeHelperNodes(int index)
Remove the element at the specified index and return it. |
boolean |
removeHelperNodesValue(NodeInstance value)
Removes the given element from helperNodes. |
java.lang.String |
removeTestScripts(int index)
Remove the element at the specified index and return it. |
boolean |
removeTestScriptsValue(java.lang.String value)
Removes the given element from testScripts. |
ServerDeclaration |
resolveServernameReference(NameLookup lookup,
AuthUser au)
Converts a reference to an instance by looking it up. |
ServerDeclaration |
resolveServernameReferenceNonCrit(NameLookup lookup,
AuthUser au)
Calls standard method, eating any SandException and returning a new instance with all default values instead. |
void |
setBasePath(java.lang.Object basePath)
Generic mutator for basePath |
void |
setBasePath(java.lang.String basePath)
Mutator for basePath |
void |
setHelperNodes(int index,
NodeInstance value)
Set the value at the index specified. |
void |
setHelperNodes(NodeInstance[] helperNodes)
Mutator for helperNodes |
void |
setHelperNodes(java.lang.Object[] helperNodes)
Generic mutator for helperNodes |
void |
setIncomingSyncSandMessage(IODeclReceive incomingSyncSandMessage)
Mutator for incomingSyncSandMessage |
void |
setIncomingSyncSandMessage(java.lang.Object incomingSyncSandMessage)
Generic mutator for incomingSyncSandMessage |
void |
setLogLevel(int logLevel)
Mutator for logLevel |
void |
setNodeInstanceName(java.lang.Object nodeInstanceName)
Generic mutator for nodeInstanceName |
void |
setNodeInstanceName(java.lang.String nodeInstanceName)
Mutator for nodeInstanceName |
void |
setOutgoingAsyncSandMessage(IODeclSend outgoingAsyncSandMessage)
Mutator for outgoingAsyncSandMessage |
void |
setOutgoingAsyncSandMessage(java.lang.Object outgoingAsyncSandMessage)
Generic mutator for outgoingAsyncSandMessage |
void |
setServername(java.lang.Object servername)
Generic mutator for servername |
void |
setServername(java.lang.String servername)
Mutator for servername |
void |
setTestScripts(int index,
java.lang.String value)
Set the value at the index specified. |
void |
setTestScripts(java.lang.String[] testScripts)
Mutator for testScripts |
int |
sizeofHelperNodes()
Returns the size of helperNodes. |
int |
sizeofTestScripts()
Returns the size of testScripts. |
boolean |
testScriptsContains(java.lang.String val)
Returns true if testScripts contains the specified value. |
int |
testScriptsIndexOf(java.lang.String val)
Return the index of the specified value in testScripts, or -1 if not found. |
java.lang.String |
toString()
Return a string representation of this object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.lang.String nodeInstanceName
protected java.lang.String servername
protected NodeInstance[] helperNodes
protected IODeclReceive incomingSyncSandMessage
protected IODeclSend outgoingAsyncSandMessage
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
| Constructor Detail |
public MessageDriverNodeInstance()
| Method Detail |
public boolean fieldHasFlag(java.lang.String fieldname,
int fieldflag)
fieldHasFlag in interface SandInstanceMessagepublic java.lang.String getBasePath()
public void setBasePath(java.lang.String basePath)
public void setBasePath(java.lang.Object basePath)
public static boolean getBasePathFlag(int fieldflag)
public static int getBasePathLengthNorm()
public static int getBasePathLengthMax()
public static java.lang.String getBasePathDefaultValue()
public static java.lang.String getBasePathInvalidValue()
public java.lang.String getBasePathPrintValue()
Used for debug output, and as an initial value for
transformation and formatting.
public java.lang.String getBasePathFieldPrintValue()
public java.lang.String getBasePathRange()
public java.lang.String getBasePathValidityCheck()
public java.lang.String getBasePathMetatype()
public java.lang.String[] getTestScripts()
public void setTestScripts(java.lang.String[] testScripts)
public void addTestScripts(java.lang.String element)
public void addTestScripts(java.lang.String[] elements)
public java.lang.String getTestScripts(int index)
public void setTestScripts(int index,
java.lang.String value)
public void insertTestScripts(int index,
java.lang.String value)
public java.lang.String removeTestScripts(int index)
public boolean removeTestScriptsValue(java.lang.String value)
public void clearTestScripts()
public boolean testScriptsContains(java.lang.String val)
public int testScriptsIndexOf(java.lang.String val)
public int sizeofTestScripts()
public static boolean getTestScriptsFlag(int fieldflag)
public static int getTestScriptsLengthNorm()
public static int getTestScriptsLengthMax()
public static java.lang.String[] getTestScriptsDefaultValue()
public static java.lang.String getTestScriptsElementInvalidValue()
public static java.lang.String[] getTestScriptsInvalidValue()
public java.lang.String getTestScriptsRange()
public java.lang.String getTestScriptsValidityCheck()
public java.lang.String getTestScriptsMetatype()
public java.lang.String getNodeInstanceName()
getNodeInstanceName in interface NodeInstancepublic void setNodeInstanceName(java.lang.String nodeInstanceName)
public void setNodeInstanceName(java.lang.Object nodeInstanceName)
public static boolean getNodeInstanceNameFlag(int fieldflag)
public static int getNodeInstanceNameLengthNorm()
public static int getNodeInstanceNameLengthMax()
public static java.lang.String getNodeInstanceNameDefaultValue()
public static java.lang.String getNodeInstanceNameInvalidValue()
public java.lang.String getNodeInstanceNamePrintValue()
Used for debug output, and as an initial value for
transformation and formatting.
public java.lang.String getNodeInstanceNameFieldPrintValue()
public java.lang.String getNodeInstanceNameRange()
public java.lang.String getNodeInstanceNameValidityCheck()
public java.lang.String getNodeInstanceNameMetatype()
public java.lang.String getServername()
getServername in interface NodeInstancepublic void setServername(java.lang.String servername)
setServername in interface NodeInstancepublic void setServername(java.lang.Object servername)
public static boolean getServernameFlag(int fieldflag)
public static int getServernameLengthNorm()
public static int getServernameLengthMax()
public static java.lang.String getServernameDefaultValue()
public static java.lang.String getServernameInvalidValue()
public java.lang.String getServernamePrintValue()
Used for debug output, and as an initial value for
transformation and formatting.
public java.lang.String getServernameFieldPrintValue()
public java.lang.String getServernameRange()
public ServerDeclaration resolveServernameReferenceNonCrit(NameLookup lookup,
AuthUser au)
public ServerDeclaration resolveServernameReference(NameLookup lookup,
AuthUser au)
throws SandException
SandExceptionpublic java.lang.String getServernameValidityCheck()
public java.lang.String getServernameMetatype()
public NodeInstance[] getHelperNodes()
getHelperNodes in interface NodeInstancepublic void setHelperNodes(NodeInstance[] helperNodes)
setHelperNodes in interface NodeInstancepublic void setHelperNodes(java.lang.Object[] helperNodes)
public void addHelperNodes(NodeInstance element)
public void addHelperNodes(NodeInstance[] elements)
public NodeInstance getHelperNodes(int index)
public void setHelperNodes(int index,
NodeInstance value)
public void insertHelperNodes(int index,
NodeInstance value)
public NodeInstance removeHelperNodes(int index)
public boolean removeHelperNodesValue(NodeInstance value)
public void clearHelperNodes()
public boolean helperNodesContains(NodeInstance val)
public int helperNodesIndexOf(NodeInstance val)
public int sizeofHelperNodes()
public static boolean getHelperNodesFlag(int fieldflag)
public static NodeInstance[] getHelperNodesDefaultValue()
public static NodeInstance getHelperNodesElementInvalidValue()
public static