Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

TGo4TaskOwner Class Reference

Baseclass for all instances that can own a TGo4Task. More...

#include <TGo4TaskOwner.h>

Inheritance diagram for TGo4TaskOwner:

TGo4CommandReceiver TGo4Master TGo4Slave TGo4Display TGo4AnalysisClient List of all members.

Public Methods

 TGo4TaskOwner ()
 TGo4TaskOwner (Bool_t isserver)
Bool_t IsServer ()
virtual ~TGo4TaskOwner ()
TGo4TaskGetTask ()
virtual Int_t StartWorkThreads ()
 Start the working threads of the task owner implementation; this method is used after the current connection has changed, to continue reading/writing the queues. More...

virtual Int_t StopWorkThreads ()
 stop the working threads of the task owne implementation; this method is used before the current connection is changed to prevent reading/writing and waiting for the wrong queues. More...

virtual void Quit ()
 Quit this instance and the owned task; method to be called from command object, may be overridden in user implementation. More...

const char * GetName () const
Bool_t IsConnected ()

Protected Methods

void SetTask (TGo4Task *task, Bool_t delold=kTRUE)

Private Attributes

TGo4TaskfxTask
  More...

Bool_t fbServerMode
 Flag if master uses servertask or client task connection. More...


Friends

class TGo4Task
class TGo4ServerTask

Detailed Description

Baseclass for all instances that can own a TGo4Task.

Bridge between client/server functionality and master/slave.

Since:
17-03-2005
Author:
Joern Adamczewski

Definition at line 29 of file TGo4TaskOwner.h.


Constructor & Destructor Documentation

TGo4TaskOwner::TGo4TaskOwner  
 

Definition at line 28 of file TGo4TaskOwner.cxx.

TGo4TaskOwner::TGo4TaskOwner Bool_t    isserver
 

Definition at line 35 of file TGo4TaskOwner.cxx.

TGo4TaskOwner::~TGo4TaskOwner   [virtual]
 

Definition at line 41 of file TGo4TaskOwner.cxx.

References fxTask, and TGo4Task::SetOwner().


Member Function Documentation

Bool_t TGo4TaskOwner::IsServer   [inline]
 

Definition at line 39 of file TGo4TaskOwner.h.

References fbServerMode.

Referenced by TGo4MainWindow::AddAnalysisBar(), TGo4MainWindow::AddAnalysisMenu(), TGo4Master::ConnectSlave(), TGo4Master::DisconnectSlave(), TGo4ScriptSlots::execGUICommands(), TGo4ScriptSlots::GenerateStartupScript(), TGo4TaskHandlerAbortException::Handle(), TGo4ScriptSlots::IsAnalysisReady(), IsConnected(), TGo4MainWindow::launchClientSlot(), TGo4MainWindow::RemoveClientSlot(), TGo4MainWindow::ShutdownSlaveSlot(), TGo4Master::TGo4Master(), and TGo4Slave::TGo4Slave().

TGo4Task* TGo4TaskOwner::GetTask   [inline]
 

Definition at line 46 of file TGo4TaskOwner.h.

References fxTask.

Referenced by TGo4HistogramServer::ConnectObjectClient(), TGo4Master::ConnectSlave(), TGo4AnalysisClient::Constructor(), TGo4Master::DisconnectSlave(), TGo4ScriptSlots::execGUICommands(), TGo4Slave::GetThreadHandler(), IsConnected(), TGo4AnalysisClient::KillMain(), TGo4GUIRegistry::MakeCommand(), TGo4Slave::NextCommand(), TGo4DisplayLoggerTimer::Notify(), TGo4DisplayDrawerTimer::Notify(), TGo4AnalysisClient::RestartMain(), TGo4Slave::SendObject(), TGo4Slave::SendStatus(), TGo4Slave::SendStatusBuffer(), TGo4Slave::SendStatusMessage(), TGo4GUIRegistry::StopMonitoring(), TGo4Master::SubmitCommand(), TGo4Master::SubmitEmergencyCommand(), TGo4Slave::Terminate(), TGo4AnalysisClient::Terminate(), TGo4AnalysisClient::TerminateFast(), TGo4Display::TGo4Display(), TGo4Slave::UpdateStatus(), TGo4Slave::UpdateStatusBuffer(), TGo4HistogramServer::WaitForConnection(), TGo4HistogramServer::WaitForOpen(), TGo4AnalysisClient::~TGo4AnalysisClient(), and TGo4Display::~TGo4Display().

Int_t TGo4TaskOwner::StartWorkThreads   [virtual]
 

Start the working threads of the task owner implementation; this method is used after the current connection has changed, to continue reading/writing the queues.

To be overridden.

Reimplemented in TGo4AnalysisClient.

Definition at line 52 of file TGo4TaskOwner.cxx.

References TGo4Log::Debug(), fxTask, and TGo4Task::SetWorkIsStopped().

Referenced by TGo4Task::StartWorkThreads(), and TGo4AnalysisClient::StartWorkThreads().

Int_t TGo4TaskOwner::StopWorkThreads   [virtual]
 

stop the working threads of the task owne implementation; this method is used before the current connection is changed to prevent reading/writing and waiting for the wrong queues.

To be overridden.

Reimplemented in TGo4AnalysisClient.

Definition at line 58 of file TGo4TaskOwner.cxx.

References TGo4Log::Debug(), fxTask, and TGo4Task::SetWorkIsStopped().

Referenced by TGo4Task::StopWorkThreads(), and TGo4AnalysisClient::StopWorkThreads().

void TGo4TaskOwner::Quit   [virtual]
 

Quit this instance and the owned task; method to be called from command object, may be overridden in user implementation.

Definition at line 47 of file TGo4TaskOwner.cxx.

References fxTask, and TGo4Task::Quit().

Referenced by TGo4ComMasterQuit::ExeCom(), and TGo4Task::Quit().

const char* TGo4TaskOwner::GetName   const [inline]
 

Definition at line 71 of file TGo4TaskOwner.h.

References fxTask.

Referenced by TGo4AnalysisClient::Constructor(), TGo4Slave::CreateStatus(), TGo4AnalysisClient::CreateStatus(), TGo4AnalysisClient::Initialization(), IsConnected(), TGo4AnalysisClient::KillMain(), main(), TGo4MainWindow::RemoveClientSlot(), TGo4AnalysisClient::RestartMain(), TGo4AnalysisMainRunnable::Run(), TGo4Slave::Start(), TGo4AnalysisClient::Start(), TGo4Slave::Stop(), TGo4AnalysisClient::Stop(), TGo4AnalysisClient::TGo4AnalysisClient(), and TGo4HistogramServer::TGo4HistogramServer().

Bool_t TGo4TaskOwner::IsConnected  
 

Definition at line 66 of file TGo4TaskOwner.cxx.

References TGo4ServerTask::GetCurrentTaskHandler(), GetName(), GetTask(), TGo4ClientTask::IsConnected(), and IsServer().

Referenced by TGo4ScriptSlots::GenerateStartupScript(), TGo4ScriptSlots::IsAnalysisReady(), TGo4MainWindow::launchClientSlot(), and TGo4StartClientSlots::StartClient().

void TGo4TaskOwner::SetTask TGo4Task   task,
Bool_t    delold = kTRUE
[inline, protected]
 

Definition at line 81 of file TGo4TaskOwner.h.

References fxTask, and TGo4Task::SetOwner().

Referenced by TGo4ServerTask::Shutdown(), TGo4Master::TGo4Master(), TGo4Slave::TGo4Slave(), and TGo4Task::~TGo4Task().


Friends And Related Function Documentation

friend class TGo4Task [friend]
 

Definition at line 32 of file TGo4TaskOwner.h.

friend class TGo4ServerTask [friend]
 

Definition at line 33 of file TGo4TaskOwner.h.

Referenced by TGo4Master::TGo4Master(), and TGo4Slave::TGo4Slave().


Member Data Documentation

TGo4Task* TGo4TaskOwner::fxTask [private]
 

Definition at line 94 of file TGo4TaskOwner.h.

Referenced by GetName(), GetTask(), Quit(), SetTask(), StartWorkThreads(), StopWorkThreads(), and ~TGo4TaskOwner().

Bool_t TGo4TaskOwner::fbServerMode [private]
 

Flag if master uses servertask or client task connection.

Definition at line 99 of file TGo4TaskOwner.h.

Referenced by IsServer().


The documentation for this class was generated from the following files:
Generated on Tue Nov 8 10:56:57 2005 for Go4-v2.10-5 by doxygen1.2.15