public class Client extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
Client.Configuration
Provides a mechanism for loading and managing configuration data.
|
Constructor and Description |
---|
Client(java.lang.String userName,
java.lang.String password)
Create a new Client instance using the given userName and password.
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
java.lang.String[] |
runCommand(java.lang.String command,
java.lang.String target,
java.util.HashMap<java.lang.String,java.lang.String> parameters)
Execute an administration command.
|
void |
tearDown()
performs cleanup action.
|
public Client(java.lang.String userName, java.lang.String password)
userName
- a configured principal on the nodepassword
- the text credential for the principalpublic java.lang.String[] runCommand(java.lang.String command, java.lang.String target, java.util.HashMap<java.lang.String,java.lang.String> parameters) throws CommandFailed, Transaction.InvalidTransactionState
command
- the command nametarget
- the target nameparameters
- a map containing parameter names and valuesCommandFailed
- an unsupported command was specified or the
invocation of the command failed.Transaction.InvalidTransactionState
- called from a transactional context.public void tearDown()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable