Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

Shadow Class Reference

This class provides the core management for interactive jobs. More...

List of all members.

Public Member Functions

void attach (int port=0)
 Attach a new listener to the Job.

std::string empty (std::string buffer)
 Read the specified buffer and return it's content.

void detach ()
 Stop the launched processes and remove the created listener pipes.

void start ()
 Start the Listener run method.

std::string getPipeErr ()
std::string getPipeIn ()
std::string getPipeOut ()
int getPort ()
 Get the port where the shadow is listening to.

int getPid ()
 Get the process id of the launched listener process.


Static Public Member Functions

std::string getHost ()

Friends

class Job


Detailed Description

This class provides the core management for interactive jobs.

once the edg-grid-console-shadow has started successfully and the job is running the user should interact with the submitted job (or might have attached to a previous job) At the end of the interaction the background bypass process should be killed and the I/O pipes have to be removed. This is done automatically by the 'detach' method. The shadow class must be used togheter with an implementation of the Listener interface, which actually performs the final visual interactivity with the user.

See also:
Listener


Member Function Documentation

void attach int  port = 0  ) 
 

Attach a new listener to the Job.

void detach  ) 
 

Stop the launched processes and remove the created listener pipes.

std::string empty std::string  buffer  ) 
 

Read the specified buffer and return it's content.

std::string getHost  )  [static]
 

Returns:
the local host name

int getPid  ) 
 

Get the process id of the launched listener process.

std::string getPipeErr  ) 
 

Returns:
the error pipe string representation

std::string getPipeIn  ) 
 

Returns:
the Input pipe string representation

std::string getPipeOut  ) 
 

Returns:
the Output pipe string representation

int getPort  ) 
 

Get the port where the shadow is listening to.

void start  ) 
 

Start the Listener run method.

See also:
Listener


Friends And Related Function Documentation

friend class Job [friend]
 


The documentation for this class was generated from the following file:
Generated on Wed Mar 1 00:39:46 2006 for USERINTERFACE C++ API by doxygen 1.3.5