org.almendra.janet.cas.node
Class NodeDescriptor

java.lang.Object
  extended by org.almendra.janet.cas.node.Descriptor
      extended by org.almendra.janet.cas.node.NodeDescriptor

public class NodeDescriptor
extends Descriptor

Author:
Oliver

Field Summary
protected  java.util.List applicationDescriptors
           
protected  RegistryLocation centralRegistryLocation
           
protected  int clearTextTabAfterLines
           
protected  java.util.List clusterEventRegistryDescriptors
           
protected  java.util.List clusterSpaceDescriptors
           
static java.lang.String DESCRIPTOR_BASE_DIR
           
protected  boolean enableApplicationArbitrator
           
protected  boolean enableSystemArbitrator
           
protected  boolean exitVMOnNodeShutdown
           
static java.lang.String FILE_NAME
           
static java.lang.String LABEL
           
protected  LocalLoggerDescriptor localLoggerDescriptor
           
protected  RegistryLocation localRegistryLocation
           
protected  boolean showGUI
           
static StringVector SUPPORTED_VERSIONS
           
protected  SystemApplicationDescriptor systemApplicationDescriptor
           
static java.lang.String TAG_ARBITRATION
           
static java.lang.String TAG_ARBITRATION_ATTRIBUTE_ENABLE_APPLICATION_ARBITRATOR
           
static java.lang.String TAG_ARBITRATION_ATTRIBUTE_ENABLE_SYSTEM_ARBITRATOR
           
static java.lang.String TAG_CLEAR_TEXT_TAB_AFTER_LINES
           
static java.lang.String TAG_EXIT_VM_ON_NODE_SHUTDOWN
           
static java.lang.String TAG_REGISTRY
           
static java.lang.String TAG_REGISTRY_ATTRIBUTE_CENTRAL_HOSTNAME
           
static java.lang.String TAG_REGISTRY_ATTRIBUTE_CENTRAL_PORT
           
static java.lang.String TAG_REGISTRY_ATTRIBUTE_LOCAL_PORT
           
static java.lang.String TAG_SHOW_GUI
           
static java.lang.String TAG_VERSION
           
static java.lang.String TAG_VERSION_ATTRIBUTE_NAME
           
protected  java.lang.String versionName
           
 
Constructor Summary
NodeDescriptor()
           
 
Method Summary
protected  void checkVersion(org.jdom.Element element)
           
static NodeDescriptor create(org.jdom.Element element)
           
protected  void fill(org.jdom.Element element)
           
protected  void fillArbitration(org.jdom.Element element)
           
protected  void fillClusterEventRegistries(org.jdom.Element element)
           
protected  void fillClusterSpaces(org.jdom.Element element)
           
protected  void fillRegistry(org.jdom.Element element)
           
 java.util.List getApplicationDescriptors()
           
 java.util.List getApplications()
           
 RegistryLocation getCentralRegistryLocation()
           
 int getClearTextTabAfterLines()
           
 java.util.List getClusterEventRegistryDescriptors()
           
 java.util.List getClusterSpaceDescriptors()
           
static java.lang.String[] getClusterSubobjectPrefixes()
           
 LocalLoggerDescriptor getLocalLoggerDescriptor()
           
 RegistryLocation getLocalRegistryLocation()
           
 SystemApplication getSystemApplication()
           
 SystemApplicationDescriptor getSystemApplicationDescriptor()
           
 java.lang.String getVersionName()
           
 boolean isEnableApplicationArbitrator()
           
 boolean isEnableSystemArbitrator()
           
 boolean isExitVMOnNodeShutdown()
           
 boolean isShowGUI()
           
protected  void readClearTextTabAfterLines(org.jdom.Element element)
           
protected  void readShowGUI(org.jdom.Element element)
           
 void setApplicationDescriptors(java.util.List applicationDescriptors)
           
 void setClusterEventRegistryDescriptors(java.util.List clusterEventRegistryDescriptors)
           
 void setExitVMOnNodeShutdown(boolean exitVMOnNodeShutdown)
           
 void setShowGUI(boolean showGUI)
           
 void setSystemApplicationDescriptor(SystemApplicationDescriptor systemApplicationDescriptor)
           
 void visit(java.util.Map values)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUPPORTED_VERSIONS

public static final StringVector SUPPORTED_VERSIONS

FILE_NAME

public static final java.lang.String FILE_NAME
See Also:
Constant Field Values

LABEL

public static final java.lang.String LABEL
See Also:
Constant Field Values

TAG_REGISTRY

public static final java.lang.String TAG_REGISTRY
See Also:
Constant Field Values

TAG_VERSION

public static final java.lang.String TAG_VERSION
See Also:
Constant Field Values

TAG_SHOW_GUI

public static final java.lang.String TAG_SHOW_GUI
See Also:
Constant Field Values

TAG_EXIT_VM_ON_NODE_SHUTDOWN

public static final java.lang.String TAG_EXIT_VM_ON_NODE_SHUTDOWN
See Also:
Constant Field Values

TAG_CLEAR_TEXT_TAB_AFTER_LINES

public static final java.lang.String TAG_CLEAR_TEXT_TAB_AFTER_LINES
See Also:
Constant Field Values

TAG_VERSION_ATTRIBUTE_NAME

public static final java.lang.String TAG_VERSION_ATTRIBUTE_NAME
See Also:
Constant Field Values

TAG_REGISTRY_ATTRIBUTE_CENTRAL_HOSTNAME

public static final java.lang.String TAG_REGISTRY_ATTRIBUTE_CENTRAL_HOSTNAME
See Also:
Constant Field Values

TAG_REGISTRY_ATTRIBUTE_CENTRAL_PORT

public static final java.lang.String TAG_REGISTRY_ATTRIBUTE_CENTRAL_PORT
See Also:
Constant Field Values

TAG_REGISTRY_ATTRIBUTE_LOCAL_PORT

public static final java.lang.String TAG_REGISTRY_ATTRIBUTE_LOCAL_PORT
See Also:
Constant Field Values

TAG_ARBITRATION

public static final java.lang.String TAG_ARBITRATION
See Also:
Constant Field Values

TAG_ARBITRATION_ATTRIBUTE_ENABLE_APPLICATION_ARBITRATOR

public static final java.lang.String TAG_ARBITRATION_ATTRIBUTE_ENABLE_APPLICATION_ARBITRATOR
See Also:
Constant Field Values

TAG_ARBITRATION_ATTRIBUTE_ENABLE_SYSTEM_ARBITRATOR

public static final java.lang.String TAG_ARBITRATION_ATTRIBUTE_ENABLE_SYSTEM_ARBITRATOR
See Also:
Constant Field Values

DESCRIPTOR_BASE_DIR

public static final java.lang.String DESCRIPTOR_BASE_DIR
See Also:
Constant Field Values

systemApplicationDescriptor

protected SystemApplicationDescriptor systemApplicationDescriptor

applicationDescriptors

protected java.util.List applicationDescriptors

clusterSpaceDescriptors

protected java.util.List clusterSpaceDescriptors

clusterEventRegistryDescriptors

protected java.util.List clusterEventRegistryDescriptors

versionName

protected java.lang.String versionName

centralRegistryLocation

protected RegistryLocation centralRegistryLocation

localRegistryLocation

protected RegistryLocation localRegistryLocation

localLoggerDescriptor

protected LocalLoggerDescriptor localLoggerDescriptor

showGUI

protected boolean showGUI

exitVMOnNodeShutdown

protected boolean exitVMOnNodeShutdown

clearTextTabAfterLines

protected int clearTextTabAfterLines

enableApplicationArbitrator

protected boolean enableApplicationArbitrator

enableSystemArbitrator

protected boolean enableSystemArbitrator
Constructor Detail

NodeDescriptor

public NodeDescriptor()
Method Detail

getSystemApplicationDescriptor

public SystemApplicationDescriptor getSystemApplicationDescriptor()
Returns:
Returns the systemApplicationDescriptor.

setSystemApplicationDescriptor

public void setSystemApplicationDescriptor(SystemApplicationDescriptor systemApplicationDescriptor)
Parameters:
systemApplicationDescriptor - The systemApplicationDescriptor to set.

create

public static NodeDescriptor create(org.jdom.Element element)
                             throws XMLParseException
Throws:
XMLParseException

fill

protected void fill(org.jdom.Element element)
             throws XMLParseException
Parameters:
element -
Throws:
XMLParseException

fillArbitration

protected void fillArbitration(org.jdom.Element element)
                        throws XMLParseException
Parameters:
element -
Throws:
XMLParseException

readClearTextTabAfterLines

protected void readClearTextTabAfterLines(org.jdom.Element element)
                                   throws XMLParseException
Parameters:
element -
Throws:
XMLParseException

fillClusterSpaces

protected void fillClusterSpaces(org.jdom.Element element)
                          throws XMLParseException
Parameters:
element -
Throws:
XMLParseException

fillClusterEventRegistries

protected void fillClusterEventRegistries(org.jdom.Element element)
                                   throws XMLParseException
Parameters:
element -
Throws:
XMLParseException

readShowGUI

protected void readShowGUI(org.jdom.Element element)
                    throws XMLParseException
Parameters:
element -
Throws:
XMLParseException

checkVersion

protected void checkVersion(org.jdom.Element element)
                     throws XMLParseException
Parameters:
element -
Throws:
XMLParseException

fillRegistry

protected void fillRegistry(org.jdom.Element element)
                     throws XMLParseException
Parameters:
element -
Throws:
XMLParseException

getSystemApplication

public SystemApplication getSystemApplication()
                                       throws DescriptorParseException
Returns:
Throws:
DescriptorParseException

getApplicationDescriptors

public java.util.List getApplicationDescriptors()
Returns:
Returns the applicationDescriptors.

setApplicationDescriptors

public void setApplicationDescriptors(java.util.List applicationDescriptors)
Parameters:
applicationDescriptors - The applicationDescriptors to set.

getApplications

public java.util.List getApplications()
                               throws DescriptorParseException
Throws:
DescriptorParseException

getCentralRegistryLocation

public RegistryLocation getCentralRegistryLocation()
Returns:
Returns the centralRegistryLocation.

getLocalRegistryLocation

public RegistryLocation getLocalRegistryLocation()
Returns:
Returns the localRegistryLocation.

getLocalLoggerDescriptor

public LocalLoggerDescriptor getLocalLoggerDescriptor()
Returns:
Returns the localLoggerDescriptor.

isShowGUI

public boolean isShowGUI()
Returns:
Returns the showGUI.

setShowGUI

public void setShowGUI(boolean showGUI)
Parameters:
showGUI - The showGUI to set.

getVersionName

public java.lang.String getVersionName()
Returns:
Returns the versionName.

getClusterSpaceDescriptors

public java.util.List getClusterSpaceDescriptors()
Returns:
Returns the clusterSpaceDescriptors.

getClusterEventRegistryDescriptors

public java.util.List getClusterEventRegistryDescriptors()
Returns:
Returns the clusterEventRegistryDescriptors.

setClusterEventRegistryDescriptors

public void setClusterEventRegistryDescriptors(java.util.List clusterEventRegistryDescriptors)
Parameters:
clusterEventRegistryDescriptors - The clusterEventRegistryDescriptors to set.

isExitVMOnNodeShutdown

public boolean isExitVMOnNodeShutdown()
Returns:
Returns the exitVMOnNodeShutdown.

setExitVMOnNodeShutdown

public void setExitVMOnNodeShutdown(boolean exitVMOnNodeShutdown)
Parameters:
exitVMOnNodeShutdown - The exitVMOnNodeShutdown to set.

getClusterSubobjectPrefixes

public static java.lang.String[] getClusterSubobjectPrefixes()

visit

public void visit(java.util.Map values)
Parameters:
values -

getClearTextTabAfterLines

public int getClearTextTabAfterLines()
Returns:
Returns the clearTextTabAfterLines.

isEnableApplicationArbitrator

public boolean isEnableApplicationArbitrator()
Returns:
Returns the enableApplicationArbitrator.

isEnableSystemArbitrator

public boolean isEnableSystemArbitrator()
Returns:
Returns the enableSystemArbitrator.