java.rmi.activation
Class ActivationGroupDesc.CommandEnvironment

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.rmi.activation.ActivationGroupDesc.CommandEnvironment
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable
Enclosing class:
ActivationGroupDesc sample code for java.rmi.activation.ActivationGroupDesc definition code for java.rmi.activation.ActivationGroupDesc

public static class ActivationGroupDesc.CommandEnvironment
extends Object sample code for java.lang.Object definition code for java.lang.Object
implements Serializable sample code for java.io.Serializable definition code for java.io.Serializable

Startup options for ActivationGroup implementations. This class allows overriding default system properties and specifying implementation-defined options for ActivationGroups.

Since:
1.2
See Also:
Serialized Form

Constructor Summary
ActivationGroupDesc.CommandEnvironment sample code for java.rmi.activation.ActivationGroupDesc.CommandEnvironment.ActivationGroupDesc.CommandEnvironment(java.lang.String, java.lang.String[]) definition code for java.rmi.activation.ActivationGroupDesc.CommandEnvironment.ActivationGroupDesc.CommandEnvironment(java.lang.String, java.lang.String[]) (String sample code for java.lang.String definition code for java.lang.String  cmdpath, String sample code for java.lang.String definition code for java.lang.String [] argv)
          Create a CommandEnvironment with all the necessary information.
 
Method Summary
 boolean equals sample code for java.rmi.activation.ActivationGroupDesc.CommandEnvironment.equals(java.lang.Object) definition code for java.rmi.activation.ActivationGroupDesc.CommandEnvironment.equals(java.lang.Object) (Object sample code for java.lang.Object definition code for java.lang.Object  obj)
          Compares two command environments for content equality.
 String sample code for java.lang.String definition code for java.lang.String [] getCommandOptions sample code for java.rmi.activation.ActivationGroupDesc.CommandEnvironment.getCommandOptions() definition code for java.rmi.activation.ActivationGroupDesc.CommandEnvironment.getCommandOptions() ()
          Fetch the configured java command options.
 String sample code for java.lang.String definition code for java.lang.String getCommandPath sample code for java.rmi.activation.ActivationGroupDesc.CommandEnvironment.getCommandPath() definition code for java.rmi.activation.ActivationGroupDesc.CommandEnvironment.getCommandPath() ()
          Fetch the configured path-qualified java command name.
 int hashCode sample code for java.rmi.activation.ActivationGroupDesc.CommandEnvironment.hashCode() definition code for java.rmi.activation.ActivationGroupDesc.CommandEnvironment.hashCode() ()
          Return identical values for similar CommandEnvironments.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

ActivationGroupDesc.CommandEnvironment sample code for java.rmi.activation.ActivationGroupDesc.CommandEnvironment(java.lang.String, java.lang.String[]) definition code for java.rmi.activation.ActivationGroupDesc.CommandEnvironment(java.lang.String, java.lang.String[])

public ActivationGroupDesc.CommandEnvironment(String sample code for java.lang.String definition code for java.lang.String  cmdpath,
                                              String sample code for java.lang.String definition code for java.lang.String [] argv)
Create a CommandEnvironment with all the necessary information.

Parameters:
cmdpath - the name of the java executable, including the full path, or null, meaning "use rmid's default". The named program must be able to accept multiple -Dpropname=value options (as documented for the "java" tool)
argv - extra options which will be used in creating the ActivationGroup. Null has the same effect as an empty list.
Since:
1.2
Method Detail

getCommandPath sample code for java.rmi.activation.ActivationGroupDesc.CommandEnvironment.getCommandPath() definition code for java.rmi.activation.ActivationGroupDesc.CommandEnvironment.getCommandPath()

public String sample code for java.lang.String definition code for java.lang.String  getCommandPath()
Fetch the configured path-qualified java command name.

Returns:
the configured name, or null if configured to accept the default
Since:
1.2

getCommandOptions sample code for java.rmi.activation.ActivationGroupDesc.CommandEnvironment.getCommandOptions() definition code for java.rmi.activation.ActivationGroupDesc.CommandEnvironment.getCommandOptions()

public String sample code for java.lang.String definition code for java.lang.String [] getCommandOptions()
Fetch the configured java command options.

Returns:
An array of the command options which will be passed to the new child command by rmid. Note that rmid may add other options before or after these options, or both. Never returns null.
Since:
1.2

equals sample code for java.rmi.activation.ActivationGroupDesc.CommandEnvironment.equals(java.lang.Object) definition code for java.rmi.activation.ActivationGroupDesc.CommandEnvironment.equals(java.lang.Object)

public boolean equals(Object sample code for java.lang.Object definition code for java.lang.Object  obj)
Compares two command environments for content equality.

Overrides:
equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) in class Object sample code for java.lang.Object definition code for java.lang.Object
Parameters:
obj - the Object to compare with
Returns:
true if these Objects are equal; false otherwise.
Since:
1.2
See Also:
Hashtable sample code for java.util.Hashtable definition code for java.util.Hashtable

hashCode sample code for java.rmi.activation.ActivationGroupDesc.CommandEnvironment.hashCode() definition code for java.rmi.activation.ActivationGroupDesc.CommandEnvironment.hashCode()

public int hashCode()
Return identical values for similar CommandEnvironments.

Overrides:
hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
an integer
See Also:
Hashtable sample code for java.util.Hashtable definition code for java.util.Hashtable