public class ExecServerConfig extends Executable implements Documentable
INT, process
Constructor and Description |
---|
ExecServerConfig(Node xml)
Create an exec-server configuration.
|
ExecServerConfig(String xml)
Create an exec-server configuration.
|
ExecServerConfig(String className,
String objectKey,
InetAddress preferredHost,
Properties properties)
Create an exec-server configuration.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object rhs) |
String |
getClassName()
Get the class name I'm going to execute.
|
protected String[] |
getCommandLine()
Get the command-line.
|
String |
getObjectKey()
Get the object key I'm going to use.
|
InetAddress |
getPreferredHost()
Get the preferred host.
|
Properties |
getProperties()
Get the properties for my process.
|
int |
hashCode() |
String |
toString() |
String |
toXML()
Yield this exce-server configuration as serialized XML.
|
Node |
toXML(Document doc)
Document (aka serialize) this object into an XML DOM node.
|
execute, terminate, waitFor
public ExecServerConfig(String className, String objectKey, InetAddress preferredHost, Properties properties)
className
- Name of the class to execute.objectKey
- Object key under which class will register.properties
- Properties for the server.public ExecServerConfig(Node xml) throws SAXException, UnknownHostException
xml
- XML DOM description, must be an <execServer> element.SAXException
- If xml is invalid.UnknownHostException
- If the xml refers to an unknown host name.public ExecServerConfig(String xml) throws SAXException, UnknownHostException
xml
- Serialized XML description.SAXException
- If we can't parse xml.UnknownHostException
- If the xml refers to an unknown host name.protected String[] getCommandLine()
Executable
getCommandLine
in class Executable
public String getClassName()
public String getObjectKey()
public Properties getProperties()
public InetAddress getPreferredHost()
public Node toXML(Document doc) throws DOMException
Documentable
toXML
in interface Documentable
doc
- What document will own the node.DOMException
- If an error occurs while creating the DOM structure.public String toXML() throws DOMException
DOMException
- If we can't create the XML document.Copyright © 1999–2017 Apache OODT. All rights reserved.