https://github.com/mkalioby/pbs4java
Automatically exported from code.google.com/p/pbs4java
https://github.com/mkalioby/pbs4java
Last synced: over 1 year ago
JSON representation
Automatically exported from code.google.com/p/pbs4java
- Host: GitHub
- URL: https://github.com/mkalioby/pbs4java
- Owner: mkalioby
- Created: 2015-04-20T15:57:54.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-04-20T16:24:31.000Z (over 11 years ago)
- Last Synced: 2025-03-20T17:09:03.138Z (over 1 year ago)
- Language: Java
- Size: 773 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
PBS Torque Resources Manager is one of the best open-source load balancing clusters.
This project will create an API to interface Java with PBS Torque through an Object Oriented Model not through the command-line.
This is anticipated to simplify the task of integeratation of your Java Solutions.
API Doc can be found at: http://www.nubios.nileu.edu.eg/pbs4java/
#How to get started with the API
##Introduction
This page shows you how to use the API
### How to queue a job:
+ Add the jar to your classpath.
+ create your solution as a shell file.
+ Create instance of the job class
```java
pbsTorque.Job j = new pbsTorque.Job("test1","path/to/shellfile");
j.queue();
```
### Get the Job Information
```java
pbsTorque.Job j = pbsTorque.Job.getJobById("JOB_ID");
system.out.println(j.getStatus);
```
### Search for a job by name
API allows you to search for job id for a job specifying a certain crateria.
```java
String[] foundJobs = pbsTorque.Job.SearchJobsByName("test",false);
for (int i=0; i