#include <DistBossServer.h>
Definition at line 9 of file DistBossServer.h.
◆ DistBossServer()
DistBossServer::DistBossServer |
( |
const std::string & | jobOpt | ) |
|
Definition at line 37 of file DistBossServer.cxx.
38 : m_optMgr(jobOpt)
39{
40 if ( m_optMgr.
evtMax() == 0 ) {
41 std::cout << "[DistBossServer] EvtMax = 0, exit now!" << std::endl;
42 exit(0);
43 }
44
45 std::cout << "[DistBossServer] Starting server: " << m_serverName << std::endl;
46
48 case ( 0 ) :
50 break;
51 case ( 1 ) :
52 std::cout << "[DistBossServer] Simulation is not supported by DistBoss yet!" << std::endl;
53 exit(1);
54 case ( 2 ) :
55
56
57 std::cout << "[DistBossServer] Root input files are not supported by DistBoss yet!" << std::endl;
58 exit(1);
59 default :
60 assert( false );
61 }
62
63 const std::vector<int>& outputs = m_optMgr.
outputTypes();
64 for ( std::vector<int>::const_iterator it = outputs.begin(); it != outputs.end(); ++it ) {
65 switch ( *it ) {
66 case ( 3 ) :
68 break;
69 case ( 4 ) :
71 break;
72 case ( 5 ) :
73
74 break;
75 case ( 6 ) :
76
77 break;
78 default :
79 assert(false);
80 }
81 }
82
84
87}
const std::string & dstFile()
const std::vector< std::string > & inputFiles()
void clientOptsTemplate(const std::string &svrName)
const std::vector< int > & outputTypes()
const std::string & recFile()
Referenced by DistBossServer().
◆ ~DistBossServer()
DistBossServer::~DistBossServer |
( |
| ) |
|
Definition at line 89 of file DistBossServer.cxx.
90{
91 delete m_readerRpc;
92
93 for ( unsigned int i = 0; i < m_writerRpcs.size(); ++i ) {
94 delete m_writerRpcs[i];
95 }
96
97 std::cout << "[DistBossServer] Server stopped." << std::endl;
98
99 delete m_exitHandler;
100}
◆ run()
int DistBossServer::run |
( |
| ) |
|
Definition at line 102 of file DistBossServer.cxx.
103{
104 DimServer::addExitHandler( m_exitHandler );
105 DimServer::addErrorHandler( m_errorHandler );
106
107 DimServer::start(m_serverName.c_str());
108
109
111
112 for ( unsigned int i = 0; i < m_writerRpcs.size(); ++i ) {
113 nClients = m_writerRpcs[i]->wait_to_end();
114 }
115
116 return nClients;
117}
virtual int wait_to_end()=0
Referenced by main().
◆ serverName()
const std::string & DistBossServer::serverName |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: