| 
    Jpp test-rotations-new
    
   the software that should make you happy 
   | 
 
Client data structure. More...
#include <JClient.hh>
Public Types | |
| enum | JMode {  UNKNOWN = -1 , SLEEP = 0 , ACTIVE , IGNORE = -2 , ILLEGAL = -3 }  | 
| Client modi.  More... | |
Public Member Functions | |
| JClient () | |
| Default constructor.   | |
| JClient (const std::string &__name, const std::string &__hostname, const std::string &__start_command="") | |
| Constructor.   | |
| void | start () | 
| Start process.   | |
| void | stop (const int signal=-9) | 
| Stop process.   | |
| const std::string & | getName () const | 
| Get name of run control client.   | |
| const std::string & | getHostname () const | 
| Get host name of run control client.   | |
| const std::string & | getFullName () const | 
| Get full name of run control client.   | |
| const std::string & | getStartCommand () const | 
| Get start command of run control client.   | |
| bool | isSleep () const | 
| Check sleep mode.   | |
| bool | isActive () const | 
| Check active mode.   | |
| bool | isIgnore () const | 
| Check ignore mode.   | |
| bool | isIllegal () const | 
| Check illegal mode.   | |
| bool | update (const JNET::JTag &tag, const std::string &buffer) | 
| Update client.   | |
| const std::string & | getStatename () const | 
| Get name of current state.   | |
| const std::string & | getEventname () const | 
| Get name of last event.   | |
| const std::string & | getEventInfo () const | 
| Get event information.   | |
| bool | getAlive () const | 
| Get alive status.   | |
| void | setAlive (const bool alive) | 
| Set alive status.   | |
| JMode | getMode () const | 
| Get mode.   | |
| void | setMode (const JMode mode) | 
| Set mode.   | |
| int | getBorn () const | 
| Get born count.   | |
| int | getDied () const | 
| Get died count.   | |
Static Public Attributes | |
| static std::string | SERVER | 
| host name of message server   | |
| static std::string | LOGGER | 
| host name of message logger   | |
Protected Member Functions | |
| void | configure () | 
| Configure client parameters.   | |
Protected Attributes | |
| std::string | name | 
| std::string | hostname | 
| JLANG::JString | start_command | 
| std::string | full_name | 
| JMode | mode | 
| int | born | 
| int | died | 
| bool | is_alive | 
| std::string | state_name | 
| std::string | event_name | 
| std::string | event_info | 
Friends | |
| std::istream & | operator>> (std::istream &in, JClient &client) | 
| Read client from input.   | |
| std::ostream & | operator<< (std::ostream &out, const JClient &client) | 
| Write client to output.   | |
Client data structure.
Definition at line 28 of file JClient.hh.
Client modi.
| Enumerator | |
|---|---|
| UNKNOWN | |
| SLEEP | |
| ACTIVE | |
| IGNORE | |
| ILLEGAL | |
Definition at line 39 of file JClient.hh.
      
  | 
  inline | 
Default constructor.
Definition at line 45 of file JClient.hh.
      
  | 
  inline | 
Constructor.
| __name | name of client | 
| __hostname | host name | 
| __start_command | start command | 
Definition at line 66 of file JClient.hh.
      
  | 
  inline | 
Start process.
The start command is issued on the (remote) host.
Definition at line 88 of file JClient.hh.
      
  | 
  inline | 
Stop process.
A kill command is issued on the (remote) host. To determine the PID for the kill command, the start command is compared to the output of a ps command on the (remote) host.
| signal | signal | 
Definition at line 111 of file JClient.hh.
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
Get full name of run control client.
Definition at line 196 of file JClient.hh.
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
Update client.
The client parameters are updated according to the ControlHost tag and message.
| tag | tag | 
| buffer | message | 
Definition at line 265 of file JClient.hh.
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inlineprotected | 
Configure client parameters.
In this, the following tokens in the start command are substituted: $HOST$ by <host name>; $NAME$ by <process name>; $SERVER$ by JClient::SERVER; $LOGGER$ by JClient::LOGGER; $ARGS$ by part following last '/' in <process name>;
Definition at line 465 of file JClient.hh.
      
  | 
  friend | 
Read client from input.
| in | istream | 
| client | client | 
Definition at line 418 of file JClient.hh.
      
  | 
  friend | 
Write client to output.
| out | ostream | 
| client | client | 
Definition at line 443 of file JClient.hh.
      
  | 
  static | 
host name of message server
Definition at line 32 of file JClient.hh.
      
  | 
  static | 
host name of message logger
Definition at line 33 of file JClient.hh.
      
  | 
  protected | 
Definition at line 487 of file JClient.hh.
      
  | 
  protected | 
Definition at line 488 of file JClient.hh.
      
  | 
  protected | 
Definition at line 489 of file JClient.hh.
      
  | 
  protected | 
Definition at line 490 of file JClient.hh.
      
  | 
  protected | 
Definition at line 491 of file JClient.hh.
      
  | 
  protected | 
Definition at line 492 of file JClient.hh.
      
  | 
  protected | 
Definition at line 493 of file JClient.hh.
      
  | 
  protected | 
Definition at line 494 of file JClient.hh.
      
  | 
  protected | 
Definition at line 495 of file JClient.hh.
      
  | 
  protected | 
Definition at line 496 of file JClient.hh.
      
  | 
  protected | 
Definition at line 497 of file JClient.hh.