public class JobParameter
extends java.lang.Object
implements com.ibm.ia.util.CISSerializable
The JobParameter value is stored as a string. The overloaded type constructors and getters are convenience methods to handle the string value as a particular primtitive type.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PARAM_LOGICAL_NOW
An optional parameter that can be use within a batch job to indicate logical now.
|
static java.lang.String |
PARAM_TIMEOUT
An optional job timeout parameter in milliseconds.
|
| Constructor and Description |
|---|
JobParameter(java.lang.String key,
boolean value)
Creates a new
JobParameter using the given key and boolean value. |
JobParameter(java.lang.String key,
double value)
Creates a new
JobParameter using the given key and double value. |
JobParameter(java.lang.String key,
int value)
Creates a new
JobParameter using the given key and int value. |
JobParameter(java.lang.String key,
long value)
Creates a new
JobParameter using the given key and long value. |
JobParameter(java.lang.String key,
java.lang.String value)
Creates a new
JobParameter using the given key and string value. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getKey()
Returns the key of this job parameter.
|
java.lang.String |
getValue()
Returns the value of this job paramter as a string.
|
boolean |
getValueAsBoolean()
Returns the value of this job parameter as a boolean.
|
double |
getValueAsDouble()
Returns the value of this job parameter as a double.
|
int |
getValueAsInt()
Returns the value of this job parameter as an int.
|
long |
getValueAsLong()
Returns the value of this job parameter as a long.
|
int |
hashCode() |
java.lang.String |
toString() |
public static final java.lang.String PARAM_TIMEOUT
public static final java.lang.String PARAM_LOGICAL_NOW
@ConstructorProperties(value={"key","value"})
public JobParameter(java.lang.String key,
java.lang.String value)
JobParameter using the given key and string value.key - The key of this job parameter.value - The value of this job parameter as a string.public JobParameter(java.lang.String key,
long value)
JobParameter using the given key and long value.key - The key of this job parameter.value - The value of this job parameter as a long.public JobParameter(java.lang.String key,
double value)
JobParameter using the given key and double value.key - The key of this job parameter.value - The value of this job parameter as a double.public JobParameter(java.lang.String key,
int value)
JobParameter using the given key and int value.key - The key of this job parameter.value - The value of this job parameter as an int.public JobParameter(java.lang.String key,
boolean value)
JobParameter using the given key and boolean value.key - The key of this job parameter.value - The value of this job parameter as a boolean.public java.lang.String getKey()
public java.lang.String getValue()
public int getValueAsInt()
public long getValueAsLong()
public double getValueAsDouble()
public boolean getValueAsBoolean()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object© Copyright IBM 2017