org.objectweb.proactive.scheduler
Class Communicator

java.lang.Object
  extended by org.objectweb.proactive.scheduler.Communicator

public class Communicator
extends java.lang.Object

This is the main class used to communicate with the scheduler daemon to submit the commands to the scheduler like the submission, deletion and statistics of any job and the nodes status command.

Author:
cjarjouh

Constructor Summary
Communicator(java.lang.String schedulerURL)
          Tries to establish a connection with the scheduler daemon and to get the scheduler object before we begin with the submission of commands
 
Method Summary
static java.lang.String getLocalHostName()
          Gets the localHostName
 void helpScreen(java.lang.String command)
          Is the help console.
static void main(java.lang.String[] args)
          Lanches the communicator program
 void viewJobs(java.util.Vector jobs, boolean specific)
          This method is used to display the descriptions of all the jobs or of a specific job on the shell prompt.
 void viewNodes(java.util.Vector nodes, boolean specific)
          This method is used to display the descriptions of all the nodes or of a specific node on the shell prompt.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Communicator

public Communicator(java.lang.String schedulerURL)
Tries to establish a connection with the scheduler daemon and to get the scheduler object before we begin with the submission of commands

Parameters:
schedulerURL - the scheduler url upon wich we shall connect to the scheduler
Method Detail

main

public static void main(java.lang.String[] args)
Lanches the communicator program

Parameters:
args -

getLocalHostName

public static java.lang.String getLocalHostName()
Gets the localHostName

Returns:
the local host name

helpScreen

public void helpScreen(java.lang.String command)
Is the help console. Here we can either set specific help for a specific command or we can add the command name of the newly created command

Parameters:
command - the command in forms of "? [commandName]" meaning that we can either ask for a short description of the commands or we can always a specific help for a specific command.

viewNodes

public void viewNodes(java.util.Vector nodes,
                      boolean specific)
This method is used to display the descriptions of all the nodes or of a specific node on the shell prompt.

Parameters:
nodes - a vector of all the nodes or of the specified node
specific - if true means that we are about to display the information of a specific node else it means that we are displaying the information of all the nodes.

viewJobs

public void viewJobs(java.util.Vector jobs,
                     boolean specific)
This method is used to display the descriptions of all the jobs or of a specific job on the shell prompt.

Parameters:
Jobs - a vector of all the jobs or of the specified job
specific - if true means that we are about to display the information of a specific job else it means that we are displaying the information of all the jobs.


Copyright 2001-2007 INRIA All Rights Reserved.