org.ow2.jasmine.deployme.api
Interface ICommandLine


public interface ICommandLine

Represent the command line arguments

Author:
Jeremy Cazaux

Field Summary
static String COMMAND_OPTION_CLUSTER_NAME
          key word to define cluster name on the command line.
static String COMMAND_OPTION_DOMAIN_NAME
          key word to define domain name on the command line.
static String COMMAND_OPTION_MACHINE_NAME
          key word to define machine name on the command line.
static String COMMAND_OPTION_SERVER_NAME
          key word to define server name on the command line.
static String COMMAND_OPTION_TOPOLOGY_FILE
          key word to define topology file name on the command line.
static String COMMAND_OPTION_VERBOSE
          key word to define verbose mode on the command line.
static String ERROR_CLUSTER_SERVER
           
static String ERROR_DOMAIN_SERVER_CLUSTER
           
static String ERROR_MACHINE_DOMAIN_SERVER_CLUSTER
           
static String ERROR_NO_OPTIONS
           
static String ERROR_SERVER_CLUSTER_DOMAIN
           
static String ERROR_TOPOLOGY_NOT_SET
           
 
Method Summary
 void addValue(String argName, String argValue)
          Record a value of the command line.
 void checkCommandLine()
          Check if the command line contains all what we need
 String getClusterName()
           
 String getDomainName()
          return the domainName
 String getMachineName()
          return the machineName
 String getServerName()
          return the serverName
 String getTopologyFile()
          return the topologyFile
 boolean getVerbose()
          return if verbose
 

Field Detail

ERROR_TOPOLOGY_NOT_SET

static final String ERROR_TOPOLOGY_NOT_SET
See Also:
Constant Field Values

ERROR_NO_OPTIONS

static final String ERROR_NO_OPTIONS
See Also:
Constant Field Values

ERROR_SERVER_CLUSTER_DOMAIN

static final String ERROR_SERVER_CLUSTER_DOMAIN
See Also:
Constant Field Values

ERROR_DOMAIN_SERVER_CLUSTER

static final String ERROR_DOMAIN_SERVER_CLUSTER
See Also:
Constant Field Values

ERROR_CLUSTER_SERVER

static final String ERROR_CLUSTER_SERVER
See Also:
Constant Field Values

ERROR_MACHINE_DOMAIN_SERVER_CLUSTER

static final String ERROR_MACHINE_DOMAIN_SERVER_CLUSTER
See Also:
Constant Field Values

COMMAND_OPTION_VERBOSE

static final String COMMAND_OPTION_VERBOSE
key word to define verbose mode on the command line. Use associated with addValue()

See Also:
Constant Field Values

COMMAND_OPTION_SERVER_NAME

static final String COMMAND_OPTION_SERVER_NAME
key word to define server name on the command line. Use associated with addValue()

See Also:
Constant Field Values

COMMAND_OPTION_DOMAIN_NAME

static final String COMMAND_OPTION_DOMAIN_NAME
key word to define domain name on the command line. Use associated with addValue()

See Also:
Constant Field Values

COMMAND_OPTION_MACHINE_NAME

static final String COMMAND_OPTION_MACHINE_NAME
key word to define machine name on the command line. Use associated with addValue()

See Also:
Constant Field Values

COMMAND_OPTION_CLUSTER_NAME

static final String COMMAND_OPTION_CLUSTER_NAME
key word to define cluster name on the command line. Use associated with addValue()

See Also:
Constant Field Values

COMMAND_OPTION_TOPOLOGY_FILE

static final String COMMAND_OPTION_TOPOLOGY_FILE
key word to define topology file name on the command line. Use associated with addValue()

See Also:
Constant Field Values
Method Detail

addValue

void addValue(String argName,
              String argValue)
Record a value of the command line.

Parameters:
argName - Name of the value to record
argValue - Value to record

getVerbose

boolean getVerbose()
return if verbose

Returns:
if verbose

getTopologyFile

String getTopologyFile()
return the topologyFile

Returns:
the topologyFile

getServerName

String getServerName()
return the serverName

Returns:
the serverName

getDomainName

String getDomainName()
return the domainName

Returns:
the domainName

getMachineName

String getMachineName()
return the machineName

Returns:
the machineName

getClusterName

String getClusterName()
Returns:
the clusterName

checkCommandLine

void checkCommandLine()
Check if the command line contains all what we need



Copyright © 2012 OW2 Consortium. All Rights Reserved.