|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.mbari.siam.operations.utils.NodeUtility
public abstract class NodeUtility
NodeUtility forms the base class of an "application framework", intended for SIAM RMI client applications. An application can be built by extending NodeUtility and then implementing NodeUtility's virtual methods. Note also that an application which is not a subclass of NodeUtility can use the useful getNodeURL() method, which is public static.
| Nested Class Summary | |
|---|---|
class |
NodeUtility.InvalidOption
InvalidOption exception indicates an invalid option was encountered. |
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
_log4j
|
protected Node |
_node
|
protected java.lang.String |
_nodeHost
|
protected java.lang.String |
_nodeURL
URL of node server. |
| Constructor Summary | |
|---|---|
NodeUtility()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getHostName(java.lang.String nodeURL)
Return the 'hostname' portion of the node's URL. |
static java.lang.String |
getNodeURL(java.lang.String input)
Return SIAM node URL corresponding to input. |
abstract void |
printUsage()
Print application-specific usage message to stdout. |
void |
processArguments(java.lang.String[] args)
Process command line options. |
void |
processArguments(java.lang.String[] args,
int requiredArgs)
Process command line options and specify the minimum number of arguments required. |
void |
processCustomOption(java.lang.String[] args,
int index)
Process application-specific option. |
abstract void |
processNode(Node node)
Do application-specific processing of node. |
int |
run()
Get node proxy and do application-defined processing. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.log4j.Logger _log4j
protected java.lang.String _nodeURL
protected java.lang.String _nodeHost
protected Node _node
| Constructor Detail |
|---|
public NodeUtility()
| Method Detail |
|---|
public void processArguments(java.lang.String[] args)
public void processArguments(java.lang.String[] args,
int requiredArgs)
public static final java.lang.String getNodeURL(java.lang.String input)
public static java.lang.String getHostName(java.lang.String nodeURL)
public int run()
public void processCustomOption(java.lang.String[] args,
int index)
throws NodeUtility.InvalidOption
NodeUtility.InvalidOption
public abstract void processNode(Node node)
throws java.lang.Exception
java.lang.Exceptionpublic abstract void printUsage()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||