1 #ifndef __JRUNCONTROL__JCLIENTLIST__
2 #define __JRUNCONTROL__JCLIENTLIST__
41 return first.getFullName() < second.getFullName();
55 return client.getFullName() < full_name;
82 if (i == this->end() ||
comparator(client, *i)) {
86 return std::make_pair(i,
true);
90 return std::make_pair(i,
false);
105 if (i != this->end() && !
comparator(*i, client))
124 if (i != this->end() && !
comparator(*i, full_name))
136 for (
iterator i = this->begin();
i != this->end(); ++
i) {
137 if (
i->getMode() == JClient::ACTIVE) {
149 void stop(
const int signal = -9)
151 for (
iterator i = this->begin();
i != this->end(); ++
i) {
152 if (
i->getBorn() >
i->getDied()) {
169 for (const_iterator
i = this->begin();
i != this->end(); ++
i) {
170 if (
i->getMode() == mode) {
188 for (const_iterator
i = this->begin();
i != this->end(); ++
i) {
189 if (
i->getMode() == JClient::ACTIVE &&
i->getBorn() >
i->getDied()) {
204 unsigned int count(
const CHSM::state& state)
const
208 for (const_iterator
i = this->begin();
i != this->end(); ++
i) {
209 if (
i->getMode() == JClient::ACTIVE &&
i->getStatename() ==
getStateName(state.name())) {
unsigned int count(const JClient::JMode mode) const
Get number of clients with given mode.
ControlHost client manager.
List of ControlHost client managers.
JClientList()
Default constructor.
unsigned int count() const
Get number of active clients with born count exceeding died count.
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
std::string getStateName(const std::string &name)
Get name of state.
bool operator()(const JClient &first, const JClient &second) const
Less than operator.
unsigned int count(const CHSM::state &state) const
Get number of active clients in given state.
void stop(const int signal=-9)
Stop processes.
iterator find(const JClient &client)
Find client.
then echo Test string reversed by client(hit< return > to continue)." $DIR/JProcess -c "$DIR/JEcho-r" -C fi if (( 1 ))
const JComparator comparator
iterator find(const std::string &buffer)
Find client by its full name.
std::pair< iterator, bool > insert(const JClient &client)
Insert client.
bool operator()(const JClient &client, const std::string &full_name) const
Less than operator.
void start()
Start processes.
std::string getFullName(const std::string &hostname, const std::string &name)
Get full name of run control client.
Auxiliary class for comparing clients.