| v2.10-0 (21000JUN2005) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Handles a histogram server (mbs histogram protocol) for the
histograms registered in the analysis.
Field Summary | |
private Bool_t | fbConnectIsClose True if fxConnectTransport has returned from Close(), i.e. connection was closed |
private Bool_t | fbConnectIsDone True if fxConnectTransport has returned from Open(), i.e. connection was established |
private Bool_t | fbConnectIsOpen True if fxConnectTransport waits in server Open() call |
private Bool_t | fbConnectRequest True if fxConnectTransport shall be Open() by Timer |
private Bool_t | fbDisConnectRequest True if fxConnectTransport shall be Close() by Timer |
private TString | fcConnectHost hostname for timer connect |
const static const Text_t[] | fgcCOMGETLIST command string for object server nameslist request |
const static const Text_t[] | fgcCONTHREADNAME histogram server connector thread name |
const static const Text_t[] | fgcOBJTHREADNAME object server connector thread name |
const static const Text_t[] | fgcSHUTDOWNNAME This string is send as histogram name for termination connection |
const static const Int_t | fgiCLOSEWAITCYCLES Maximum cycles to wait until transport is closed |
const static const Int_t | fgiCONNECTWAITCYCLES Maximum cycles to wait until transport is connected |
const static const Int_t | fgiOPENWAITCYCLES Maximum cycles to wait until transport is open |
const static const UInt_t | fguCLOSEWAITCYCLETIME Time for each close wait cycle, in ms |
const static const UInt_t | fguCONNECTWAITCYCLETIME Time for each connect wait cycle, in ms |
const static const UInt_t | fguOPENWAITCYCLETIME Time for each open wait cycle, in ms |
const static const UInt_t | fguTIMERPERIOD Period of connector timer, in ms |
private Int_t | fiServerPort port number for server socket |
private UInt_t | fuConnectPort port number for timer connect |
private UInt_t | fuObjectPort port number for the object server connections |
private TGo4Analysis* | fxAnalysis |
private TGo4AnalysisClient* | fxAnalysisClient |
private TString | fxConnectorName Name of connector thread |
private TGo4ObjConnectorTimer* | fxConnectorTimer timer responsible for the connection/disconnection of clients; independent of application control timer |
private TGo4Socket* | fxConnectTransport link to the next TaskHandler transport instance that shall be connected by the Object connector Timer with the client |
private TGo4Socket* | fxDisConnectTransport link to the next TaskHandler transport instance that shall be disconnected by the connector Timer with the client |
private TString | fxObjectThreadName Name of object server thread |
private TString | fxServerName contains api server name |
private TString | fxServerPass contains api server password |
private TGo4ThreadHandler* | fxThreadHandler |
private TGo4Socket* | fxTransport socket for object server * |
Constructor Summary | |
TGo4HistogramServer(TGo4AnalysisClient* owner, const char * servername, const char * password) | |
TGo4HistogramServer() |
Destructor Summary | |
virtual synchronized | ~TGo4HistogramServer() |
Method Summary | |
private Bool_t | CheckLogin() Checks basename and passwd login of connected client |
private const const char * | ConnectHost() |
private Int_t | ConnectObjectClient() Starts server socket waiting for the next client |
private const const char * | ConnectorName() |
private void | DisconnectObjectClient() Terminate connection to current object client, keep waiting for the next one |
const TGo4Analysis* | GetAnalysis() |
const TGo4AnalysisClient* | GetAnalysisClient() |
UInt_t | GetObjPort() returns the portnumber for object server connection |
private Bool_t | HandleObjectRequest() Ask for which object to send and give it to the client |
private const const char * | ObjectThreadName() |
private Bool_t | SendObject(TObject* obj) Send object to the current object client. |
Int_t | ServeObjectClient() Used by object connector runnable to serve client request |
private void | SetConnect(TGo4Socket* trans, const char * host, UInt_t port) |
private void | SetDisConnect(TGo4Socket* trans) |
virtual Int_t | TimerConnect() This method is used by the object connectortimer Notify to connect or disconnect a transportchannel (TSocket) on demand; the connection process itself is handled by the connector runnable |
private Int_t | WaitForClose() |
private Int_t | WaitForConnection() |
private Int_t | WaitForOpen() |
Field Detail |
private Bool_t fbConnectIsClose
private Bool_t fbConnectIsDone
private Bool_t fbConnectIsOpen
private Bool_t fbConnectRequest
private Bool_t fbDisConnectRequest
private TString fcConnectHost
public const static const Text_t[] fgcCOMGETLIST
public const static const Text_t[] fgcCONTHREADNAME
public const static const Text_t[] fgcOBJTHREADNAME
public const static const Text_t[] fgcSHUTDOWNNAME
public const static const Int_t fgiCLOSEWAITCYCLES
public const static const Int_t fgiCONNECTWAITCYCLES
public const static const Int_t fgiOPENWAITCYCLES
public const static const UInt_t fguCLOSEWAITCYCLETIME
public const static const UInt_t fguCONNECTWAITCYCLETIME
public const static const UInt_t fguOPENWAITCYCLETIME
public const static const UInt_t fguTIMERPERIOD
private Int_t fiServerPort
private UInt_t fuConnectPort
private UInt_t fuObjectPort
private TGo4Analysis* fxAnalysis
private TGo4AnalysisClient* fxAnalysisClient
private TString fxConnectorName
private TGo4ObjConnectorTimer* fxConnectorTimer
private TGo4Socket* fxConnectTransport
private TGo4Socket* fxDisConnectTransport
private TString fxObjectThreadName
private TString fxServerName
private TString fxServerPass
private TGo4ThreadHandler* fxThreadHandler
private TGo4Socket* fxTransport
Constructor Detail |
public TGo4HistogramServer(TGo4AnalysisClient* owner, const char * servername, const char * password)
public TGo4HistogramServer()
Method Detail |
public virtual synchronized ~TGo4HistogramServer()
Method Detail |
private Bool_t CheckLogin()
private const const char * ConnectHost()
private Int_t ConnectObjectClient()
private const const char * ConnectorName()
private void DisconnectObjectClient()
public const TGo4Analysis* GetAnalysis()
public const TGo4AnalysisClient* GetAnalysisClient()
public UInt_t GetObjPort()
private Bool_t HandleObjectRequest()
private const const char * ObjectThreadName()
private Bool_t SendObject(TObject* obj)
public Int_t ServeObjectClient()
private void SetConnect(TGo4Socket* trans, const char * host, UInt_t port)
private void SetDisConnect(TGo4Socket* trans)
public virtual Int_t TimerConnect()
private Int_t WaitForClose()
private Int_t WaitForConnection()
private Int_t WaitForOpen()
Association Links |
to Class TGo4Analysis
to Class TGo4ThreadHandler
to Class TGo4Socket
to Class TGo4Socket
to Class TGo4Socket
to Class TGo4ObjConnectorTimer
| J.Adamczewski, M.Al-Turany, D.Bertini, H.G.Essel, S.Linev | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |