v2.10-0 (21000JUN2005)

Go4TaskHandler
Class TGo4TaskOwner

Direct Known Subclasses:
TGo4Master, TGo4Slave

class TGo4TaskOwner
derived from TGo4CommandReceiver

Baseclass for all instances that can own a TGo4Task. Bridge between client/server functionality and master/slave.

Author:
Joern Adamczewski
Since: 17-03-2005

Field Summary
 private Bool_tfbServerMode
          Flag if master uses servertask or client task connection.
 private TGo4Task*fxTask
           

Constructor Summary
TGo4TaskOwner()
           
TGo4TaskOwner(Bool_t isserver)
           

Destructor Summary
 virtual synchronized ~TGo4TaskOwner()
           

Method Summary
 const const char *GetName()
           
 TGo4Task*GetTask()
           
 Bool_tIsConnected()
           
 Bool_tIsServer()
           
 virtual voidQuit()
          Quit this instance and the owned task;
method to be called from
command object, may be overridden in user
implementation
 protected voidSetTask(TGo4Task* task, Bool_t delold)
           
 virtual Int_tStartWorkThreads()
          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.
 virtual Int_tStopWorkThreads()
          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.

Field Detail

fbServerMode

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

fxTask

private TGo4Task* fxTask
supplierCardinality 1
link aggregation
clientCardinality 1
Constructor Detail

TGo4TaskOwner

public TGo4TaskOwner()

TGo4TaskOwner

public TGo4TaskOwner(Bool_t isserver)
Method Detail

~TGo4TaskOwner

public virtual synchronized ~TGo4TaskOwner()
Method Detail

GetName

public const const char * GetName()

GetTask

public TGo4Task* GetTask()

IsConnected

public Bool_t IsConnected()

IsServer

public Bool_t IsServer()

Quit

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

SetTask

protected void SetTask(TGo4Task* task, Bool_t delold)

StartWorkThreads

public 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. To be overridden.

StopWorkThreads

public 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. To be overridden.

Association Links

to Class TGo4Task

Client Cardinality 1
Supplier Cardinality 1
Type aggregation

J.Adamczewski, M.Al-Turany, D.Bertini, H.G.Essel, S.Linev

30-06-2005