org.almendra.janet.cas.node
Class NodeStarter
java.lang.Object
org.almendra.janet.cas.node.NodeStarter
public class NodeStarter
- extends java.lang.Object
- Author:
- Oliver
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
NodeStarter
protected NodeStarter()
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