|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.able.platform.AbleISeriesJob
Capture the entire context of eServer's iSeries Job.
Fields inherited from interface com.ibm.able.platform.AbleEServerJobIfc |
INVALID_REPRESENTATION |
Constructor Summary | |
AbleISeriesJob()
Creates an AbleISeriesJob. |
|
AbleISeriesJob(AbleISeriesJob iSeriesJob)
Creates an AbleISeriesJob. |
|
AbleISeriesJob(java.lang.String theJobKey,
java.lang.String theNumber,
java.lang.String theUser,
java.lang.String theName)
Creates an AbleISeriesJob. |
Method Summary | |
void |
clear()
Method used to clear all info of this job. |
static java.lang.String |
Copyright()
Gets the copyright of this class. |
java.lang.String |
debugString()
Returns a translated String representation of this AbleISeriesJob. |
boolean |
equals(java.lang.Object o)
Compares this AbleISeriesJob with another to determine if the reports are equal. |
java.lang.String |
getJobKey()
Method getJobKey. |
java.lang.String |
getName()
Method getName. |
java.lang.String |
getNumber()
Method getNumber. |
java.lang.String |
getStringRepresentation(java.lang.String typeExpected)
When getting job info from the Job Service, there are times when it will be expected in a certain format. |
java.lang.String |
getUser()
Method getUser. |
int |
hashCode()
Return the hashCode for an AbleISeriesJob |
boolean |
isJobObjectValid(java.lang.String typeExpected)
Determines if this object contains enough information for the iSeries to be able to identify this job, and if this job is of the type we are expecting. |
void |
load(java.lang.Object[] jobArray)
How an iSeries Job will load itself from an Object array. |
java.lang.String |
toString()
Returns a brief description of this AbleISeriesJob. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AbleISeriesJob()
Capture the entire context of eServer's iSeries Job.
public AbleISeriesJob(AbleISeriesJob iSeriesJob)
Capture the entire context of eServer's iSeries Job. This constructor is a copy constructor and will create a new AbleISeriesJob based off of the AbleISeriesJob passed in on the constructor.
iSeriesJob
- The AbleISeriesJob to create a new one based on.public AbleISeriesJob(java.lang.String theJobKey, java.lang.String theNumber, java.lang.String theUser, java.lang.String theName)
theJobKey
- The key that would identify this job.
theNumber
- The number of this job.
theUser
- The number of this job.
theName
- The number of this job.Method Detail |
public void load(java.lang.Object[] jobArray)
Each element in jobArray
is expected to be these Strings:
load
in interface AbleEServerJobIfc
com.ibm.able.platform.AbleEServerJobIfc
jobInfoArray
- String array containing the info to represent an eServer job.public boolean isJobObjectValid(java.lang.String typeExpected)
In the iSeries case, the user, number, and name must all not be null the job key is also checked because it must be present to be registered.
isJobObjectValid
in interface AbleEServerJobIfc
typeExpected
- The type of Object we expect to be dealing with. Set
to null
if this should not be checked.
public java.lang.String getStringRepresentation(java.lang.String typeExpected)
If there is not enough information to be able to identify this eServer job, or the job
doesn't not match typeExcpeted
then the INVALID_REPRESENTATION
String will be returned.
To make the JNI calls easier, we pass the job info back in this String and it is expected to be in the iSeries format: "number user name" where the number would be padded to 6, user to 10, name to 10.
getStringRepresentation
in interface AbleEServerJobIfc
typeExpected
- The type of Object we expect to be dealing with. Set
to null
if this should not be checked.
public void clear()
clear
in interface AbleEServerJobIfc
public java.lang.String getNumber()
public java.lang.String getUser()
public java.lang.String getName()
public java.lang.String getJobKey()
getJobKey
in interface AbleEServerJobIfc
public java.lang.String debugString()
public static java.lang.String Copyright()
public boolean equals(java.lang.Object o)
AbleISeriesJob are equal if their internal, private, immutable handles are equal.
equals
in class java.lang.Object
o
- An instance of an AbleISeriesJob that is to
be compared to this AbleISeriesJob.
AbleISeriesJob are equal if their internal, private, immutable handles are equal.
public int hashCode()
The hashCode of an AbleISeriesJob is the sum of the hashCodes of all of the the internal, private, immutable handles of this Object.
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |