|
| static HashMap< String, Vector< String > > | GetJobParameters (int jobId, Connection connection) |
| | Read in a Job's the JobParameters from the database. More...
|
| |
| arlo.NesterJob.NesterJob |
( |
| ) |
|
| boolean arlo.NesterJob.AddJobParameter |
( |
String |
name, |
|
|
String |
value |
|
) |
| |
Add a JobParameter to a Job object in memory.
- Note
- Does not automatically save to the database.
-
Enforces the current database limit of 255 characters for name or value.
- Parameters
-
| name | Name of the Parameter to add. |
| value | Value of the Parameter to add. |
- Returns
- true if success, false otherwise.
| boolean arlo.NesterJob.DeleteJobParametersFromDatabase |
( |
Connection |
connection | ) |
|
|
private |
Delete all JobParamters for a Job from the database.
In anticipation of writing out the updated paramters.
- Parameters
-
| connection | Opened database Connection. |
- Returns
- True on success, False if any errors
| String arlo.NesterJob.GetJobParameter |
( |
String |
name | ) |
|
Lookup a JobParameter from the Job.
This expects a single value entry for the paramteter in the database.
- Note
- This routine will fail, returning a null, if multiple entries exist for the parameter.
- Parameters
-
| name | Name of the Parameter to retrieve. |
- Returns
- null if not found, String value otherwise
| static HashMap<String, Vector<String> > arlo.NesterJob.GetJobParameters |
( |
int |
jobId, |
|
|
Connection |
connection |
|
) |
| |
|
staticprivate |
Read in a Job's the JobParameters from the database.
- Parameters
-
| jobId | Database Id of the Job for which to grab parameters. |
| connection | Opened database Connection. |
- Returns
- null if error, otherwise HashMap<String key, Vector<String> values>.
| Vector<String> arlo.NesterJob.GetJobParameterVector |
( |
String |
name | ) |
|
Lookup a JobParameter from the Job.
Returns a list of all values for the Parameter.
- Note
- This routine will return an empty Vector if no values exist, or are not found.
- Parameters
-
| name | Name of the Parameter to retrieve. |
- Returns
- Vector of Strings, empty if not found
| static Integer arlo.NesterJob.GetJobStatusIdFromName |
( |
String |
statusName, |
|
|
Connection |
connection |
|
) |
| |
|
static |
Given a Job Status Name, lookup the database Id.
- Parameters
-
| statusName | The status name to lookup. |
| connection | An opened database Connection |
- Returns
- null if error / not found, the database ID otherwise
| static Integer arlo.NesterJob.GetJobTypeIdFromName |
( |
String |
typeName, |
|
|
Connection |
connection |
|
) |
| |
|
static |
Given a Job Type Name, lookup the database Id.
- Parameters
-
| typeName | The type name to lookup. |
| connection | An opened database Connection |
- Returns
- null if error / not found, the database ID otherwise
| boolean arlo.NesterJob.getNesterJob |
( |
int |
id, |
|
|
Connection |
connection |
|
) |
| |
Get a Job from the database.
Initializes 'this' with the Job.
- Parameters
-
| id | Database Id of the Job for which to grab. |
| connection | Opened database Connection. |
- Returns
- true if success, false if errors.
| String arlo.NesterJob.getRandomString |
( |
int |
length | ) |
|
|
private |
| void arlo.NesterJob.PrintJobParameters |
( |
| ) |
|
| boolean arlo.NesterJob.SaveJob |
( |
Connection |
connection | ) |
|
Save a NesterJob object to the database.
- Note
- If this.id == -1, this will create a new job, and set this objects id accordingly. Otherwise, this will overwrite an existing job's id.
-
Currently this does nothing with JobParameters
- Parameters
-
| connection | An opened database Connection |
- Returns
- true if success, false if any errors
| boolean arlo.NesterJob.SaveJobLogMessage |
( |
String |
message | ) |
|
Save a log entry for a Job.
- Note
- If this.id == -1, return false
- Parameters
-
| message | The Message to save for the log entry. |
- Returns
- true if success, false if any errors
| static boolean arlo.NesterJob.SaveJobLogMessage |
( |
int |
jobId, |
|
|
String |
message |
|
) |
| |
|
static |
Save a log entry for a Job.
- Note
- If jobId == -1, return false
- Parameters
-
| jobId | Database ID of the Job to which we are adding the log entry. |
| message | The Message to save for the log entry. |
- Returns
- true if success, false if any errors
| boolean arlo.NesterJob.SaveJobLogMessage |
( |
String |
message, |
|
|
Connection |
connection |
|
) |
| |
| static boolean arlo.NesterJob.SaveJobLogMessage |
( |
int |
jobId, |
|
|
String |
message, |
|
|
Connection |
connection |
|
) |
| |
|
static |
| boolean arlo.NesterJob.SaveJobParameters |
( |
Connection |
connection | ) |
|
|
private |
Save all of the Job's Parameters to the database.
Only adds parameters that don't already exist, in the case that we're updating an existing job.
- Parameters
-
| connection | Opened database Connection. |
- Returns
- True on success, False if any errors
| boolean arlo.NesterJob.UploadJobResultFile |
( |
String |
fileName, |
|
|
byte[] |
resultFileBytes, |
|
|
String |
notes, |
|
|
Connection |
connection |
|
) |
| |
Upload a Job Result File back to the webserver.
- Note
- If this.id == -1, return false
-
Error handling is rather weak here, so calling functions should not expect this to reliably complete.
- Parameters
-
| fileName | Name of the file to upload. |
| resultFileBytes | A array of bytes that we are uploading as the file. |
| notes | Notes to store with the file. |
| connection | An opened database Connection |
- Returns
- true if success, false if any errors
| Timestamp arlo.NesterJob.creationDate |
| double arlo.NesterJob.elapsedRealTime |
| double arlo.NesterJob.fractionCompleted |
| boolean arlo.NesterJob.isComplete |
| boolean arlo.NesterJob.isRunning |
| HashMap<String, Vector<String> > arlo.NesterJob.jobParameters |
| String arlo.NesterJob.name |
| int arlo.NesterJob.numCompleted |
| int arlo.NesterJob.numToComplete |
| Integer arlo.NesterJob.parentJob_id |
| Integer arlo.NesterJob.priority |
| int arlo.NesterJob.project_id |
| Integer arlo.NesterJob.requestedStatus_id |
| Integer arlo.NesterJob.status_id |
| double arlo.NesterJob.timeToCompletion |
| int arlo.NesterJob.type_id |
| int arlo.NesterJob.user_id |
| boolean arlo.NesterJob.wasDeleted |
| boolean arlo.NesterJob.wasStopped |
The documentation for this class was generated from the following file: