public class BrokerSpawnParameters
extends java.lang.Object
implements java.io.Externalizable
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<java.lang.String> |
command
A collection of command line tokens
|
private java.util.Map<java.lang.String,java.lang.String> |
environment
A Map of environment variables
|
private java.lang.String |
password
Password used to authenticate
|
private boolean |
passwordAuthentication
Password require for authentication
|
| Constructor and Description |
|---|
BrokerSpawnParameters()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
getCommand()
Get command arguments.
|
java.util.Map<java.lang.String,java.lang.String> |
getEnvironment()
Get environment variables.
|
java.lang.String |
getPassword()
Get password for authentication.
|
boolean |
isPasswordAuthentication()
Check if password require for authentication.
|
void |
readExternal(java.io.ObjectInput in)
Replacement for the default object reading method.
|
void |
setCommand(java.util.List<java.lang.String> command)
Set command arguments.
|
void |
setEnvironment(java.util.Map<java.lang.String,java.lang.String> environment)
Set environment variables.
|
void |
setPassword(java.lang.String password)
Set password for authentication.
|
void |
setPasswordAuthentication(boolean passwordAuthentication)
Set if password is required for authentication.
|
void |
writeExternal(java.io.ObjectOutput out)
Replacement for the default object writing method.
|
private boolean passwordAuthentication
private java.lang.String password
private java.util.Map<java.lang.String,java.lang.String> environment
private java.util.List<java.lang.String> command
public boolean isPasswordAuthentication()
true if password is required.public void setPasswordAuthentication(boolean passwordAuthentication)
passwordAuthentication - true if password is required.public java.lang.String getPassword()
public void setPassword(java.lang.String password)
password - Password string.public java.util.Map<java.lang.String,java.lang.String> getEnvironment()
public void setEnvironment(java.util.Map<java.lang.String,java.lang.String> environment)
environment - Environment variables.public java.util.List<java.lang.String> getCommand()
public void setCommand(java.util.List<java.lang.String> command)
command - Command arguments list.public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizableout - The output destination to which fields will be saved.java.io.IOException - In case of I/O errors.public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablein - Input source from which fields will be restored.java.io.IOException - In case of I/O errors.java.lang.ClassNotFoundException - If payload can't be instantiated.