org.almendra.janet.cas.node
Class NodeStarter

java.lang.Object
  extended by org.almendra.janet.cas.node.NodeStarter

public class NodeStarter
extends java.lang.Object

Author:
Oliver

Field Summary
protected  java.util.List applicationDescriptors
           
protected  Node node
           
static int NODE_STARTUP_TIMEOUT_PERIOD
           
protected  NodeDescriptor nodeDescriptor
           
protected  boolean success
           
 
Constructor Summary
protected NodeStarter()
           
 
Method Summary
protected  void createAndStartNode()
           
protected  Node createNode()
           
static void main(java.lang.String[] args)
           
protected  void parse(java.lang.String nodeDescriptorFilePathName)
           
protected  void parseNodeDescriptor(java.lang.String nodeDescriptorFilePathName)
           
protected  void registerApplications()
           
protected  void registerSystemApplication()
           
protected  void registerUserApplications()
           
protected  void sendNodeStartupEvent(int timeoutInMillisOrZero, boolean showGUI)
           
static NodeAccessor start(java.lang.String nodeDescriptorFilePathName)
           
static NodeAccessor start(java.lang.String nodeDescriptorFilePathName, int timeoutInMillisOrZero)
           
protected  Node startIt(java.lang.String descriptorRootDir, int timeoutInMillisOrZero)
           
protected  void startNode(int timeoutInMillisOrZero)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NODE_STARTUP_TIMEOUT_PERIOD

public static final int NODE_STARTUP_TIMEOUT_PERIOD
See Also:
Constant Field Values

applicationDescriptors

protected java.util.List applicationDescriptors

node

protected Node node

nodeDescriptor

protected NodeDescriptor nodeDescriptor

success

protected boolean success
Constructor Detail

NodeStarter

protected NodeStarter()
Method Detail

main

public static void main(java.lang.String[] args)

start

public static NodeAccessor start(java.lang.String nodeDescriptorFilePathName)
                          throws DescriptorParseException,
                                 NodeStartupException
Throws:
DescriptorParseException
NodeStartupException

start

public static NodeAccessor start(java.lang.String nodeDescriptorFilePathName,
                                 int timeoutInMillisOrZero)
                          throws DescriptorParseException,
                                 NodeStartupException,
                                 java.lang.IllegalArgumentException
Throws:
DescriptorParseException
NodeStartupException
java.lang.IllegalArgumentException

createAndStartNode

protected void createAndStartNode()
                           throws DescriptorParseException,
                                  NodeStartupException
Throws:
DescriptorParseException
NodeStartupException

createNode

protected Node createNode()
                   throws DescriptorParseException,
                          NodeStartupException
Returns:
Throws:
DescriptorParseException
NodeStartupException

parse

protected void parse(java.lang.String nodeDescriptorFilePathName)
              throws DescriptorParseException
Throws:
DescriptorParseException

parseNodeDescriptor

protected void parseNodeDescriptor(java.lang.String nodeDescriptorFilePathName)
                            throws org.jdom.JDOMException,
                                   java.io.IOException,
                                   XMLParseException
Throws:
org.jdom.JDOMException
java.io.IOException
XMLParseException

registerApplications

protected void registerApplications()
                             throws NodeStartupException
Throws:
NodeStartupException

registerSystemApplication

protected void registerSystemApplication()
                                  throws NodeStartupException
Throws:
NodeStartupException

registerUserApplications

protected void registerUserApplications()
                                 throws NodeStartupException
Throws:
NodeStartupException

sendNodeStartupEvent

protected void sendNodeStartupEvent(int timeoutInMillisOrZero,
                                    boolean showGUI)
                             throws NodeStartupException
Throws:
NodeStartupException

startIt

protected Node startIt(java.lang.String descriptorRootDir,
                       int timeoutInMillisOrZero)
                throws DescriptorParseException,
                       NodeStartupException
Parameters:
args -
Throws:
DescriptorParseException
NodeStartupException

startNode

protected void startNode(int timeoutInMillisOrZero)
                  throws NodeStartupException,
                         DescriptorParseException
Throws:
NodeStartupException
DescriptorParseException