Giter Site home page Giter Site logo

pbs4java's Introduction

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
pbsTorque.Job j = new pbsTorque.Job("test1","path/to/shellfile");
j.queue();

Get the Job Information

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.

String[] foundJobs = pbsTorque.Job.SearchJobsByName("test",false);
for (int i=0; i<foundJobs.Length;i++)
{
pbsTorque.Job j = pbsTorque.Job.getJobById(foundJobs[i]);
system.out.println(j.getStatus);
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.