g-Eclipse
Release 1.0.0

eu.geclipse.batch
Class AbstractBatchService

java.lang.Object
  extended by eu.geclipse.batch.AbstractBatchService
All Implemented Interfaces:
IBatchService
Direct Known Subclasses:
PBSBatchService

public abstract class AbstractBatchService
extends java.lang.Object
implements IBatchService

Common methods for interacting with a batch service.


Constructor Summary
AbstractBatchService(IBatchServiceDescription description, java.lang.String name)
          Construct a new AbstractBatchService from the specified IBatchServiceDescription.
 
Method Summary
 boolean connectToServer(ISSHConnectionInfo sshConnectionInfo)
          Establishes a ssh-connection to the server running the PBS service.
 void disconnectFromServer()
          Tears down an already established ssh-connection to the server.
 IBatchServiceDescription getDescription()
          Get the batch service description that was used to create this service.
 java.lang.String getName()
          Get the batch service name, i.e. the configuration file that were used to instantiate this service.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface eu.geclipse.batch.IBatchService
createQueue, createQueue, createQueue, delJob, delQueue, disableQueue, disableQueues, disableWN, enableQueue, enableQueues, enableWN, getJobs, getQueues, getWorkerNodes, holdJob, holdJobs, moveJob, moveJobs, releaseJob, releaseJobs, reRunJob, reRunJobs, setMaxWallTime, startQueue, startQueues, stopQueue, stopQueues
 

Constructor Detail

AbstractBatchService

public AbstractBatchService(IBatchServiceDescription description,
                            java.lang.String name)
Construct a new AbstractBatchService from the specified IBatchServiceDescription.

Parameters:
description - The IBatchServiceDescription from which this service should be created.
name - batch service name, i.e. the configuration file that were used to instantiate this service
Method Detail

getDescription

public IBatchServiceDescription getDescription()
Description copied from interface: IBatchService
Get the batch service description that was used to create this service.

Specified by:
getDescription in interface IBatchService
Returns:
The description from which this service was created.

getName

public java.lang.String getName()
Get the batch service name, i.e. the configuration file that were used to instantiate this service.

Specified by:
getName in interface IBatchService
Returns:
The batch service name.

connectToServer

public boolean connectToServer(ISSHConnectionInfo sshConnectionInfo)
                        throws ProblemException
Establishes a ssh-connection to the server running the PBS service.

Specified by:
connectToServer in interface IBatchService
Parameters:
sshConnectionInfo - Holding the information needed to establish a ssh connection with the PBS server.
Returns:
Returns true if the connection is established, false otherwise.
Throws:
ProblemException - If the ssh connection cannot be established

disconnectFromServer

public void disconnectFromServer()
Tears down an already established ssh-connection to the server.

Specified by:
disconnectFromServer in interface IBatchService

g-Eclipse
Release 1.0.0