org.ow2.jasmine.deployme.utils
Class CommandLine

java.lang.Object
  extended by org.ow2.jasmine.deployme.utils.CommandLine

public class CommandLine
extends java.lang.Object

Represent the command line arguments

Author:
Remy Bresson

Field Summary
protected  java.lang.String clusterName
          Cluster name
static java.lang.String commandLineClusterName
          key word to define cluster name on the command line.
static java.lang.String commandLineDomainName
          key word to define domain name on the command line.
static java.lang.String commandLineMachineName
          key word to define machine name on the command line.
static java.lang.String commandLineServerName
          key word to define server name on the command line.
static java.lang.String commandLinetopologyFileName
          key word to define topology file name on the command line.
static java.lang.String commandLineVerbose
          key word to define verbose mode on the command line.
protected  java.lang.String domainName
          Domain name
static java.lang.String ERROR_CLUSTER_SERVER
           
static java.lang.String ERROR_DOMAIN_SERVER_CLUSTER
           
static java.lang.String ERROR_MACHINE_DOMAIN_SERVER_CLUSTER
           
static java.lang.String ERROR_NO_OPTIONS
           
static java.lang.String ERROR_SERVER_CLUSTER_DOMAIN
           
static java.lang.String ERROR_TOPOLOGY_NOT_SET
           
protected  java.lang.String machineName
          Host name
protected  java.lang.String serverName
          Server name
protected  java.lang.String topologyFile
          Toplogy file path
protected  boolean verbose
          Verbose?
 
Constructor Summary
CommandLine()
          Default constructor
 
Method Summary
 void addValue(java.lang.String argName, java.lang.String argValue)
          Record a value of the command line.
 void checkCommandLine()
          Check if the command line contains all what we need
 java.lang.String getClusterName()
           
 java.lang.String getDomainName()
          return the domainName
 java.lang.String getMachineName()
          return the machineName
 java.lang.String getServerName()
          return the serverName
 java.lang.String getTopologyFile()
          return the topologyFile
 boolean getVerbose()
          return if verbose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ERROR_TOPOLOGY_NOT_SET

public static java.lang.String ERROR_TOPOLOGY_NOT_SET

ERROR_NO_OPTIONS

public static java.lang.String ERROR_NO_OPTIONS

ERROR_SERVER_CLUSTER_DOMAIN

public static java.lang.String ERROR_SERVER_CLUSTER_DOMAIN

ERROR_DOMAIN_SERVER_CLUSTER

public static java.lang.String ERROR_DOMAIN_SERVER_CLUSTER

ERROR_CLUSTER_SERVER

public static java.lang.String ERROR_CLUSTER_SERVER

ERROR_MACHINE_DOMAIN_SERVER_CLUSTER

public static java.lang.String ERROR_MACHINE_DOMAIN_SERVER_CLUSTER

commandLineVerbose

public static java.lang.String commandLineVerbose
key word to define verbose mode on the command line. Use associated with addValue()


commandLineServerName

public static java.lang.String commandLineServerName
key word to define server name on the command line. Use associated with addValue()


commandLineDomainName

public static java.lang.String commandLineDomainName
key word to define domain name on the command line. Use associated with addValue()


commandLineMachineName

public static java.lang.String commandLineMachineName
key word to define machine name on the command line. Use associated with addValue()


commandLineClusterName

public static java.lang.String commandLineClusterName
key word to define cluster name on the command line. Use associated with addValue()


commandLinetopologyFileName

public static java.lang.String commandLinetopologyFileName
key word to define topology file name on the command line. Use associated with addValue()


verbose

protected boolean verbose
Verbose?


topologyFile

protected java.lang.String topologyFile
Toplogy file path


serverName

protected java.lang.String serverName
Server name


domainName

protected java.lang.String domainName
Domain name


machineName

protected java.lang.String machineName
Host name


clusterName

protected java.lang.String clusterName
Cluster name

Constructor Detail

CommandLine

public CommandLine()
Default constructor

Method Detail

getVerbose

public boolean getVerbose()
return if verbose

Returns:
if verbose

getTopologyFile

public java.lang.String getTopologyFile()
return the topologyFile

Returns:
the topologyFile

getServerName

public java.lang.String getServerName()
return the serverName

Returns:
the serverName

getDomainName

public java.lang.String getDomainName()
return the domainName

Returns:
the domainName

getMachineName

public java.lang.String getMachineName()
return the machineName

Returns:
the machineName

getClusterName

public java.lang.String getClusterName()
Returns:
the clusterName

addValue

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

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

checkCommandLine

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



Copyright © 2009 OW2 Consortium. All Rights Reserved.