Public Types | Public Member Functions | Protected Member Functions | Protected Attributes

JobIOMgr Class Reference

Handles starting&stopping of jobs on client machines. More...

Inheritance diagram for JobIOMgr:
CallBacker

List of all members.

Public Types

enum  Mode { Work, Pause, Stop }

Public Member Functions

 JobIOMgr (int firstport=19345, int niceval=19)
virtual ~JobIOMgr ()
const char * peekMsg ()
void fetchMsg (BufferString &bs)
bool startProg (const char *, IOPar &, const FilePath &, const JobInfo &, const char *)
void setNiceNess (int n)
void reqModeForJob (const JobInfo &, Mode)
void removeJob (const char *, int)
ObjQueue< StatusInfo > & statusQueue ()

Protected Member Functions

bool mkIOParFile (FilePath &, const FilePath &basefnm, const HostData &, const IOPar &)
void mkCommand (CommandString &, const HostData &, const char *progname, const FilePath &basefp, const FilePath &iopfp, const JobInfo &, const char *rshcomm)

Protected Attributes

JobIOHandler & iohdlr_
BufferString msg_
int niceval_

Detailed Description

Handles starting&stopping of jobs on client machines.

sets up a separate thread to maintain contact with client.


Member Enumeration Documentation

Enumerator:
Work 
Pause 
Stop 

Constructor & Destructor Documentation

JobIOMgr::JobIOMgr ( int  firstport = 19345,
int  niceval = 19 
)
virtual JobIOMgr::~JobIOMgr (  )  [virtual]

Member Function Documentation

void JobIOMgr::fetchMsg ( BufferString bs  )  [inline]
void JobIOMgr::mkCommand ( CommandString &  ,
const HostData ,
const char *  progname,
const FilePath basefp,
const FilePath iopfp,
const JobInfo ,
const char *  rshcomm 
) [protected]
bool JobIOMgr::mkIOParFile ( FilePath ,
const FilePath basefnm,
const HostData ,
const IOPar  
) [protected]
const char* JobIOMgr::peekMsg (  )  [inline]
void JobIOMgr::removeJob ( const char *  ,
int   
)
void JobIOMgr::reqModeForJob ( const JobInfo ,
Mode   
)
void JobIOMgr::setNiceNess ( int  n  )  [inline]
bool JobIOMgr::startProg ( const char *  ,
IOPar ,
const FilePath ,
const JobInfo ,
const char *   
)
ObjQueue<StatusInfo>& JobIOMgr::statusQueue (  ) 

Member Data Documentation

JobIOHandler& JobIOMgr::iohdlr_ [protected]
int JobIOMgr::niceval_ [protected]