![]() |
|
|
Bdb packages | Design docs | Source docs | Guidelines | Recent releases |
|
Main Page Modules Namespace List Class Hierarchy Alphabetical List Compound List File List Compound Members File Members /BdbCondRemote/BdbCondRemoteCmd.cc File Reference
#include "BaBar/BaBar.hh"
#include <iostream.h>
#include <string.h>
#include "BdbTime/BdbTime.hh"
#include "BdbCondRemote/BdbCondRemoteC.h"
#include "TaoTools/TaoClient.hh"
#include "ErrLogger/ErrLog.hh"
#include <string>
#include <vector>
#include "BbrStdUtils/String.hh"
Go to the source code of this file.
Enumerations
enum StatusType { STATUS_SUCCESS = 0, STATUS_ERROR = 1 } enum CommandType {
COMMAND_UNKNOWN, COMMAND_HELP, COMMAND_OID_SERVERS, COMMAND_INFO_SERVERS,
COMMAND_COMMIT, COMMAND_RESET_CACHE, COMMAND_SET_TIMEOUT, COMMAND_GET_TIMEOUT,
COMMAND_STATISTICS, COMMAND_MONITOR, COMMAND_LOAD_CONFIG, COMMAND_MERGE_CONFIG,
COMMAND_SHUTDOWN_SERVER, COMMAND_GET_VERBOSE, COMMAND_SET_VERBOSE, COMMAND_IS_ALIVE
}Functions
CommandType translate_command (const char *theCommandName) bool translate_uint (const char *theString, unsigned int &theValue) bool translate_onoff (const char *theString, bool &theValue) string translate_slashes (const char *theString) bool translate_srv_object (const char *theFacility, const char *theService, CORBA::Object_var &theObject) bool translate_srv_GenericServer (const char *theFacility, const char *theService, BdbCondRemote::GenericServer_var &theServerObject) bool translate_srv_OIDServer (const char *theFacility, const char *theService, BdbCondRemote::OIDServer_var &theServerObject) StatusType cmd_help () StatusType cmd_oid_servers () StatusType cmd_info_servers () StatusType cmd_commit (const char *theFacility, const char *theService) StatusType cmd_reset_cache (const char *theFacility, const char *theService) StatusType cmd_statistics (const char *theFacility, const char *theService) float getDiffSeconds (BdbCondRemote::OIDServer::StatsType &theStat_1, BdbCondRemote::OIDServer::StatsType &theStat_2) StatusType cmd_monitor (const char *theFacility, const char *theService, unsigned int theNumRequests) StatusType cmd_load_or_merge_config (const char *theFacility, const char *theService, const char *theFileName, bool loadFlag) StatusType cmd_set_timeout (const char *theFacility, const char *theService, unsigned int theTimeout) StatusType cmd_get_timeout (const char *theFacility, const char *theService) StatusType cmd_shutdown_server (const char *theFacility, const char *theService) StatusType cmd_get_verbose (const char *theFacility, const char *theService) StatusType cmd_set_verbose (const char *theFacility, const char *theService, bool theMode) StatusType cmd_is_alive (const char *theFacility, const char *theService) int main (int argc, char *argv[]) Variables
TaoClient * theTaoClient Enumeration Type Documentation
enum CommandType
- Enumeration values:
Definition at line 55 of file BdbCondRemoteCmd.cc.
Referenced by main(), and translate_command().
enum StatusType
Definition at line 51 of file BdbCondRemoteCmd.cc.
Referenced by cmd_is_alive().
Function Documentation
StatusType cmd_commit ( const char * theFacility, const char * theService ) [static]
Definition at line 413 of file BdbCondRemoteCmd.cc.
References STATUS_ERROR, STATUS_SUCCESS, and translate_srv_OIDServer().
Referenced by main().
StatusType cmd_get_timeout ( const char * theFacility, const char * theService ) [static]
Definition at line 792 of file BdbCondRemoteCmd.cc.
References cout, STATUS_ERROR, STATUS_SUCCESS, and translate_srv_OIDServer().
Referenced by main().
StatusType cmd_get_verbose ( const char * theFacility, const char * theService ) [static]
Definition at line 844 of file BdbCondRemoteCmd.cc.
References cout, STATUS_ERROR, STATUS_SUCCESS, and translate_srv_GenericServer().
Referenced by main().
StatusType cmd_help ( ) [static]
Definition at line 221 of file BdbCondRemoteCmd.cc.
References cout, and STATUS_SUCCESS.
StatusType cmd_info_servers ( ) [static]
Definition at line 406 of file BdbCondRemoteCmd.cc.
References STATUS_ERROR.
Referenced by main().
StatusType cmd_is_alive ( const char * theFacility, const char * theService ) [static]
Definition at line 911 of file BdbCondRemoteCmd.cc.
References cout, STATUS_ERROR, STATUS_SUCCESS, StatusType, theTaoClient, and translate_slashes().
Referenced by main().
StatusType cmd_load_or_merge_config ( const char * theFacility, const char * theService, const char * theFileName, bool loadFlag ) [static]
Definition at line 688 of file BdbCondRemoteCmd.cc.
References STATUS_ERROR, STATUS_SUCCESS, and translate_srv_OIDServer().
Referenced by main().
StatusType cmd_monitor ( const char * theFacility, const char * theService, unsigned int theNumRequests ) [static]
Definition at line 566 of file BdbCondRemoteCmd.cc.
References cout, getDiffSeconds(), STATUS_ERROR, STATUS_SUCCESS, and translate_srv_OIDServer().
Referenced by main().
StatusType cmd_oid_servers ( ) [static]
Definition at line 399 of file BdbCondRemoteCmd.cc.
References STATUS_ERROR.
Referenced by main().
StatusType cmd_reset_cache ( const char * theFacility, const char * theService ) [static]
Definition at line 446 of file BdbCondRemoteCmd.cc.
References STATUS_ERROR, STATUS_SUCCESS, and translate_srv_OIDServer().
Referenced by main().
StatusType cmd_set_timeout ( const char * theFacility, const char * theService, unsigned int theTimeout ) [static]
Definition at line 764 of file BdbCondRemoteCmd.cc.
References cout, STATUS_ERROR, STATUS_SUCCESS, and translate_srv_OIDServer().
Referenced by main().
StatusType cmd_set_verbose ( const char * theFacility, const char * theService, bool theMode ) [static]
Definition at line 875 of file BdbCondRemoteCmd.cc.
References cout, STATUS_ERROR, STATUS_SUCCESS, and translate_srv_GenericServer().
Referenced by main().
StatusType cmd_shutdown_server ( const char * theFacility, const char * theService ) [static]
Definition at line 819 of file BdbCondRemoteCmd.cc.
References STATUS_ERROR, STATUS_SUCCESS, and translate_srv_GenericServer().
Referenced by main().
StatusType cmd_statistics ( const char * theFacility, const char * theService ) [static]
Definition at line 477 of file BdbCondRemoteCmd.cc.
References cout, STATUS_ERROR, STATUS_SUCCESS, and translate_srv_OIDServer().
Referenced by main().
float getDiffSeconds ( BdbCondRemote::OIDServer::StatsType & theStat_1, BdbCondRemote::OIDServer::StatsType & theStat_2 ) [static]
Definition at line 555 of file BdbCondRemoteCmd.cc.
int main ( int argc, char * argv[] )
CommandType translate_command ( const char * theCommandName ) [static]
Definition at line 80 of file BdbCondRemoteCmd.cc.
References COMMAND_COMMIT, COMMAND_GET_TIMEOUT, COMMAND_GET_VERBOSE, COMMAND_HELP, COMMAND_INFO_SERVERS, COMMAND_IS_ALIVE, COMMAND_LOAD_CONFIG, COMMAND_MERGE_CONFIG, COMMAND_MONITOR, COMMAND_OID_SERVERS, COMMAND_RESET_CACHE, COMMAND_SET_TIMEOUT, COMMAND_SET_VERBOSE, COMMAND_SHUTDOWN_SERVER, COMMAND_STATISTICS, COMMAND_UNKNOWN, and CommandType.
Referenced by main().
bool translate_onoff ( const char * theString, bool & theValue ) [static]
Definition at line 117 of file BdbCondRemoteCmd.cc.
Referenced by main().
string translate_slashes ( const char * theString ) [static]
Definition at line 134 of file BdbCondRemoteCmd.cc.
References result.
Referenced by cmd_is_alive(), translate_srv_GenericServer(), translate_srv_object(), and translate_srv_OIDServer().
bool translate_srv_GenericServer ( const char * theFacility, const char * theService, BdbCondRemote::GenericServer_var & theServerObject ) [static]
Definition at line 170 of file BdbCondRemoteCmd.cc.
References translate_slashes(), and translate_srv_object().
Referenced by cmd_get_verbose(), cmd_set_verbose(), and cmd_shutdown_server().
bool translate_srv_object ( const char * theFacility, const char * theService, CORBA::Object_var & theObject ) [static]
Definition at line 151 of file BdbCondRemoteCmd.cc.
References theTaoClient, and translate_slashes().
Referenced by translate_srv_GenericServer(), and translate_srv_OIDServer().
bool translate_srv_OIDServer ( const char * theFacility, const char * theService, BdbCondRemote::OIDServer_var & theServerObject ) [static]
Definition at line 194 of file BdbCondRemoteCmd.cc.
References translate_slashes(), and translate_srv_object().
Referenced by cmd_commit(), cmd_get_timeout(), cmd_load_or_merge_config(), cmd_monitor(), cmd_reset_cache(), cmd_set_timeout(), and cmd_statistics().
bool translate_uint ( const char * theString, unsigned int & theValue ) [static]
Definition at line 105 of file BdbCondRemoteCmd.cc.
Referenced by main().
Variable Documentation
TaoClient* theTaoClient [static]
Definition at line 73 of file BdbCondRemoteCmd.cc.
Referenced by cmd_is_alive(), main(), and translate_srv_object().
BaBar Public Site | SLAC | News | Links | Who's Who | Contact Us
Page Owner: Jacek Becla
Last Update: October 04, 2002