public class ServerClient extends ClientBase
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
DEFAULT_AGENT_NAME |
protected AgentConfigTask |
itsAgentConfigTask |
private static java.util.logging.Logger |
LOGGER |
itsConfig| Constructor and Description |
|---|
ServerClient(ServerConfig serverConfig)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected AgentConfigTask |
getAgentConfigTask()
Retrieve the agent config object
|
protected ServerConfig |
getConfig()
Retrieve the config object
|
protected void |
listAgents()
List all of the nodes with agents.
|
protected void |
listAgents(ActiveAgentTO[] agents)
List the specified nodes
|
protected void |
listNodes()
List all of the nodes in the system.
|
protected void |
listNodes(LGNode[] nodes)
List the specified nodes
|
static void |
main(java.lang.String[] args)
Start of program
|
protected void |
promptAndProvisionAgent()
Provision the specified agent.
|
void |
promptForInputAndPerformAction()
Display a menu and perform and action.
|
private static final java.util.logging.Logger LOGGER
private static java.lang.String DEFAULT_AGENT_NAME
protected AgentConfigTask itsAgentConfigTask
public ServerClient(ServerConfig serverConfig)
protected ServerConfig getConfig()
protected AgentConfigTask getAgentConfigTask()
protected void promptAndProvisionAgent()
throws java.lang.Exception
java.lang.Exceptionprotected void listNodes()
throws java.lang.Exception
java.lang.Exceptionprotected void listAgents()
throws java.lang.Exception
java.lang.Exceptionprotected void listAgents(ActiveAgentTO[] agents) throws java.lang.Exception
java.lang.Exceptionprotected void listNodes(LGNode[] nodes) throws java.lang.Exception
java.lang.Exceptionpublic void promptForInputAndPerformAction()
throws java.lang.Exception
java.lang.Exceptionpublic static void main(java.lang.String[] args)