org.sandev.basics.structs
Class ServerDeclarationStruct

java.lang.Object
  extended by org.sandev.basics.structs.ServerDeclarationStruct
Direct Known Subclasses:
ServerDeclaration

public class ServerDeclarationStruct
extends java.lang.Object

A ServerDeclaration represents a logical environment where a SAND node can run. Nodes running on separate servers are non-local and must communicate via secure channel using gateways. When running a distributed application, the server declarations describe what servers the system will be running on.

summary fields: servername
This message has the following verb forms: update query collection

Field Summary
protected  java.lang.String description
          Additional descriptive information useful for identifying this server.
protected  java.lang.String serverID
          A unique identifier for this server.
protected  java.lang.String servername
          The name of the server for SAND Configuration purposes.
 
Constructor Summary
ServerDeclarationStruct()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

servername

protected java.lang.String servername
The name of the server for SAND Configuration purposes.

declared default value: ""
the values for this field are unique.
declared invalid value: "SANDEV_INVALID_SERVERNAME"
Length in characters, normal: 20 max: 128

description

protected java.lang.String description
Additional descriptive information useful for identifying this server. Optional.

declared default value: ""
declared invalid value: "SANDEV_INVALID_DESCRIPTION"
Length in characters, normal: 255 max: 4096

serverID

protected java.lang.String serverID
A unique identifier for this server. When determining which nodes out of a configuration should be loaded for a particular machine, the SAND environment checks the ID of the machine it is running on against this value.

If the SAND_SERVERID environment variable is set, then its value is compared with this value. If the SAND_SERVERID is not set, then the current IP Address is compared with this value. If the direct IP address comparison fails, an attempt is made to convert this value to an IP address through DNS lookup and the comparison is retried.

declared default value: ""
declared invalid value: "SANDEV_INVALID_SERVERID"
Length in characters, normal: 30 max: 80
Constructor Detail

ServerDeclarationStruct

public ServerDeclarationStruct()