14#ifndef TGO4HISTOGRAMSERVER_H
15#define TGO4HISTOGRAMSERVER_H
44 const char *servername =
"localhost",
45 const char *password =
"go4",
46 Bool_t useobjectserver = kFALSE);
The mother of all go4 analysis.
Handles a histogram server (mbs histogram protocol) for the histograms registered in the analysis.
TGo4ObjConnectorTimer * fxConnectorTimer
timer responsible for the connection/disconnection of clients; independent of application control tim...
Bool_t fbConnectIsOpen
True if fxConnectTransport waits in server Open() call.
Bool_t fbDisConnectRequest
True if fxConnectTransport shall be Close() by Timer.
static const char * fgcSHUTDOWNNAME
This string is send as histogram name for termination connection.
TGo4Socket * fxConnectTransport
link to the next TaskHandler transport instance that shall be connected by the Object connector Timer...
TString fxServerPass
contains api server password
const char * ConnectorName() const
static const char * fgcCOMGETLIST
command string for object server nameslist request
Bool_t SendObject(TObject *obj)
Send object to the current object client.
void DisconnectObjectClient()
Terminate connection to current object client, keep waiting for the next one.
static const UInt_t fguCONNECTWAITCYCLETIME
Time for each connect wait cycle, in ms.
static const char * fgcOBJTHREADNAME
object server connector thread name
static const UInt_t fguOPENWAITCYCLETIME
Time for each open wait cycle, in ms.
Bool_t fbConnectIsDone
True if fxConnectTransport has returned from Open(), i.e.
TString fxServerName
contains api server name
TString fcConnectHost
hostname for timer connect
Bool_t CheckLogin()
Checks basename and passwd login of connected client.
friend class TGo4HisConnectorRunnable
Bool_t fbConnectRequest
True if fxConnectTransport shall be Open() by Timer.
TGo4Analysis * fxAnalysis
Bool_t fbConnectIsClose
True if fxConnectTransport has returned from Close(), i.e.
TGo4AnalysisClient * GetAnalysisClient() const
UInt_t fuConnectPort
port number for timer connect
virtual Int_t TimerConnect()
This method is used by the object connectortimer Notify to connect or disconnect a transportchannel (...
TGo4ThreadHandler * fxThreadHandler
UInt_t fuObjectPort
port number for the object server connections
Bool_t HandleObjectRequest()
Ask for which object to send and give it to the client.
static const Int_t fgiCONNECTWAITCYCLES
Maximum cycles to wait until transport is connected.
static const char * fgcCONTHREADNAME
histogram server connector thread name
TString fxObjectThreadName
Name of object server thread.
void SetDisConnect(TGo4Socket *trans)
TGo4Analysis * GetAnalysis() const
virtual ~TGo4HistogramServer()
Int_t ConnectObjectClient()
Starts server socket waiting for the next client.
void SetConnect(TGo4Socket *trans, const char *host, UInt_t port)
const char * ConnectHost() const
TString fxConnectorName
Name of connector thread.
TGo4AnalysisClient * fxAnalysisClient
UInt_t GetObjPort()
returns the portnumber for object server connection
Int_t fiServerPort
port number for server socket
const char * ObjectThreadName() const
static const Int_t fgiCLOSEWAITCYCLES
Maximum cycles to wait until transport is closed.
TGo4Socket * fxTransport
socket for object server
Int_t ServeObjectClient()
Used by object connector runnable to serve client request.
Int_t WaitForConnection()
static const Int_t fgiOPENWAITCYCLES
Maximum cycles to wait until transport is open.
static const UInt_t fguCLOSEWAITCYCLETIME
Time for each close wait cycle, in ms.
static const UInt_t fguTIMERPERIOD
Period of connector timer, in ms.
TGo4Socket * fxDisConnectTransport
link to the next TaskHandler transport instance that shall be disconnected by the connector Timer wit...
Bool_t fbUseObjectServer
Switches Go4 objectserver option on/off.
timer aggregated to the histogram server which is responsible to establish connections of the go4 obj...