Bdb packages | Design docs | Source docs | Guidelines | Recent releases

Search | Site Map .

Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

/CdbTools/CdbManager.cc File Reference

#include "BaBar/BaBar.hh"
#include <string.h>
#include <stdio.h>
#include <ctype.h>
#include <iostream.h>
#include <iomanip.h>
#include <string>
#include <vector>
#include "BdbTime/BdbTime.hh"
#include "BdbClustering/BdbCondIndexClusteringHint.hh"
#include "BdbCond/BdbIntervalItr.hh"
#include "BdbCond/BdbIntervalR.hh"
#include "CdbBase/Cdb.hh"
#include "CdbBase/CdbEnvironment.hh"
#include "CdbBase/CdbPathName.hh"
#include "CdbBase/CdbCompositeName.hh"
#include "CdbBase/CdbCondition.hh"
#include "CdbBase/CdbRevision.hh"
#include "CdbBdb/CdbBdbTransaction.hh"
#include "CdbBdb/CdbBdbObjectFactory.hh"
#include "CdbBdbShared/CdbBdbShared.hh"
#include "CdbBdbShared/CdbBdbSRegistryP.hh"
#include "CdbBdbShared/CdbBdbSMasterRegistryP.hh"
#include "CdbBdbShared/CdbBdbSSlaveRegistryP.hh"
#include "CdbBdbShared/CdbBdbSReplicaRegistryP.hh"
#include "CdbBdbShared/CdbBdbSTestRegistryP.hh"
#include "CdbBdbShared/CdbBdbSOriginP.hh"
#include "CdbBdbShared/CdbBdbSConditionP.hh"
#include "CdbBdbShared/CdbBdbSConditionCollectionP.hh"
#include "CdbBdbShared/CdbBdbSViewP.hh"
#include "CdbBdbShared/CdbBdbSViewCollectionP.hh"
#include "CdbBdbShared/CdbBdbSConditionAtFolderP.hh"
#include "CdbBdbShared/CdbBdbSClusterP.hh"
#include "CdbBdbShared/CdbBdbSSimpleClusterP.hh"
#include "CdbBdbShared/CdbBdbSClusterCollectionP.hh"
#include "CdbBdbShared/CdbBdbSPartitionP.hh"
#include "CdbBdbShared/CdbBdbSPartitionsLayoutP.hh"
#include "CdbBdbShared/CdbBdbSConfigCollectionP.hh"
#include "CdbBdbShared/CdbBdbSMetaDataP.hh"
#include "CdbBdbShared/CdbBdbSUtils.hh"

Go to the source code of this file.

Compounds

class  CdbBdbSSpecialObjectFactory

Functions

void cmd_usage ()
void cmd_help ()
int cmd_list_origins (bool longOutputFlag)
int cmd_create_slave_origin (const char *theOriginName, const char *theOriginDBIDRangeName, const char *theOriginDescription)
int cmd_initialize_master (const char *theDescription)
int cmd_initialize_slave ()
int cmd_initialize_replica (const char *theDescription)
int cmd_initialize_test (const char *theDescription)
int cmd_create_condition (const char *theConditionPath, const char *theDescription, bool isPartitionableFlag, bool isStandAloneFlag, const char *theClusterNameOrIdentifier)
int cmd_autoconfigure_condition (const char *theConditionPath, const BdbTime &theInsertonTime, const BdbTime &theBeginValidityTime, const BdbTime &theEndValidityTime, bool isPatchOnlyFlag)
int cmd_reset_condition_config (const char *theConditionPath)
int cmd_patch_condition_config (const char *theConditionPath, bool useRevisionFlag, d_UShort thePartitionId, const BdbTime &theRevisionId, const BdbTime &theBeginValidityTime, const BdbTime &theEndValidityTime)
int cmd_create_revision (const char *theConditionPath, const char *theRevisionName, const char *theDescription, d_UShort thePartitionId)
int cmd_list_physical_conditions (const char *theOriginNameOrIdentifier, bool longOutputFlag)
int cmd_include_condition (const char *theConditionPath, const char *theDescription, const char *thePhysicalAddress)
int cmd_convert_condition (const char *theDetector, const char *theContainer, const char *theConditionPath)
int cmd_create_view (const char *theNewViewName, const char *theNewViewDescription, const BdbTime &theBeginValidityTime, const BdbTime &theEndValidityTime)
int cmd_clone_view (const char *theNewViewName, const char *theDescription)
int cmd_autoconfigure_view (const BdbTime &theInsertonTime, const BdbTime &theBeginValidityTime, const BdbTime &theEndValidityTime, bool isPatchOnlyFlag)
int cmd_freeze_view ()
int cmd_update_main_view ()
int cmd_list_clusters (const char *theOriginNameOrIdentifier)
int cmd_create_cluster (const char *theName, const char *theDescription, bool isPartitionableFlag)
int cmd_list_cluster_increments (const char *theGlobalClusterAddress)
int cmd_create_cluster_increment (const char *theGlobalClusterAddress)
int cmd_list_partition_increments (d_UShort thePartitionId)
int cmd_create_partition_increment (d_UShort thePartitionId)
void setDefaultEnvironment (const char *theTechnology, const char *theImplementation, const char *theDatabase, const char *theView)
void translate_and_set_defaults (char *argv[], int &numArgs, int &nextArg)
bool translate_autoconfig_parameters (BdbTime &theInsertonTime, BdbTime &theBeginValidityTime, BdbTime &theEndValidityTime, bool &isPatchOnlyFlag, char *argv[], int &numArgs, int &nextArg)
bool translate_optional_switch (const char *theSwitchName, bool &theValue, char *argv[], int &numArgs, int &nextArg)
bool translate_optional_BdbTime (const char *theKeywordName, BdbTime &theValue, char *argv[], int &numArgs, int &nextArg)
bool translate_BdbTime (BdbTime &theTime, const char *theBuf)
bool translate_ushort (unsigned short &theValue, const char *theBuf)
bool translate_int (int &theValue, const char *theBuf)
std::string time2string (const BdbTime &theTime)
bool find_registry (BdbHandle(CdbBdbSRegistryP)&theRegistryH, const char *theOriginNameOrIdentifier)
bool find_view (BdbHandle(CdbBdbSViewP)&theViewH, const char *theViewName)
bool is_local_view (const BdbHandle(CdbBdbSViewP)&theViewH)
bool is_local_condition (const CdbBdbSId &theConditionId)
bool is_local_partition (d_UShort thePartitionId)
std::string default_view_name ()
bool find_condition (BdbHandle(CdbBdbSConditionP)&theConditionH, const CdbBdbSId &theId)
bool find_condition (CdbBdbSId &theId, const char *thePhysicalAddress)
bool set_partitions_iterator (CdbItr< CdbBdbSPartitionInterval > &theItr, const BdbTime &theInsertionTime, const BdbTime &theBeginValidityTime, const BdbTime &theEndValidityTime)
bool find_revision_id (BdbTime &theRevisionId, const char *theConditionPath, const BdbTime &theInsertionTime, d_UShort thePartitionId=0)
bool revision_is_valid (const char *theConditionPath, const BdbTime &theRevisionId, d_UShort thePartitionId=0)
CdbStatus find_partition (BdbHandle(CdbBdbSPartitionP)&thePartitionH, d_UShort thePartitionId)
CdbStatus find_final_partition (BdbHandle(CdbBdbSPartitionP)&thePartitionH, d_UShort thePartitionId)
CdbStatus find_meta_data (std::vector< BdbRef(CdbBdbSMetaDataP)> &theVectorOfRefs, const CdbBdbSId &theId, d_UShort thePartitionId=0, bool allIncrementsFlag=true, bool recentIncrementFlag=true, d_UShort theIncrementNumber=0)
CdbStatus find_meta_data_helper (BdbRef(CdbBdbSMetaDataP)&theRef, const d_UShort theConditionId, bool isPartitionableFlag, d_UShort thePartitionId, d_UShort theClusterId, d_UShort theIncrementNumber, const std::string &theDbIdRange)
bool autoconfigure_folder (BdbRef(CdbBdbSViewP)&theViewRef, const std::string &theParentFolder, const BdbTime &theInsertonTime, const BdbTime &theBeginValidityTime, const BdbTime &theEndValidityTime, bool isPatchOnlyFlag)
bool autoconfigure_view (BdbRef(CdbBdbSViewP)&theViewRef, const BdbTime &theInsertonTime, const BdbTime &theBeginValidityTime, const BdbTime &theEndValidityTime, bool isPatchOnlyFlag)
int print_cluster_collection (const BdbRef(CdbBdbSClusterCollectionP)&theCollRef)
bool create_cluster (BdbRef(CdbBdbSClusterP)&theClusterRef, const char *theName, const char *theDescription, bool isPartitionableFlag, const BdbTime &theCreationTime)
bool find_cluster (BdbRef(CdbBdbSClusterP)&theClusterRef, const char *theOriginNameOrIdentifier, const char *theClusterNameOrIdentifier, bool isPartitionableFlag)
int main (int argc, char *argv[])


Function Documentation

bool autoconfigure_folder BdbRef(CdbBdbSViewP)&    theViewRef,
const std::string &    theParentFolder,
const BdbTime   theInsertonTime,
const BdbTime   theBeginValidityTime,
const BdbTime   theEndValidityTime,
bool    isPatchOnlyFlag
[static]
 

Definition at line 5824 of file CdbManager.cc.

References BdbIsNull, BdbRef, cmd_autoconfigure_condition(), cout, CdbBdbSViewP::findFolder(), CdbItr< T >::next(), result, CdbPathName::separator(), CdbStatus::Success, and CdbItr< T >::value().

Referenced by autoconfigure_view().

bool autoconfigure_view BdbRef(CdbBdbSViewP)&    theViewRef,
const BdbTime   theInsertonTime,
const BdbTime   theBeginValidityTime,
const BdbTime   theEndValidityTime,
bool    isPatchOnlyFlag
[static]
 

Definition at line 5928 of file CdbManager.cc.

References autoconfigure_folder(), BdbIsNull, cout, CdbBdbSViewP::folderIterator(), CdbItr< T >::next(), result, CdbStatus::Success, and CdbItr< T >::value().

Referenced by cmd_autoconfigure_view().

int cmd_autoconfigure_condition const char *    theConditionPath,
const BdbTime   theInsertonTime,
const BdbTime   theBeginValidityTime,
const BdbTime   theEndValidityTime,
bool    isPatchOnlyFlag
[static]
 

Definition at line 2868 of file CdbManager.cc.

References BdbDelete, BdbHandle, BdbIsNull, BdbRef, CdbBdbSPartitionInterval::begin, cout, default_view_name(), CdbBdbSPartitionInterval::end, CdbBdbSCell::endInsertion, find_condition(), find_final_partition(), find_revision_id(), find_view(), CdbBdbSPartitionInterval::id, is_local_view(), CdbBdbSPartitionInterval::isEmpty, CdbItr< CdbBdbSPartitionInterval >::next(), CdbStatus::NotFound, result, set_partitions_iterator(), CdbStatus::Success, and CdbItr< CdbBdbSPartitionInterval >::value().

Referenced by autoconfigure_folder(), and main().

int cmd_autoconfigure_view const BdbTime   theInsertonTime,
const BdbTime   theBeginValidityTime,
const BdbTime   theEndValidityTime,
bool    isPatchOnlyFlag
[static]
 

Definition at line 4017 of file CdbManager.cc.

References autoconfigure_view(), BdbHandle, BdbRef, cout, default_view_name(), find_view(), result, and time2string().

Referenced by main().

int cmd_clone_view const char *    theNewViewName,
const char *    theDescription
[static]
 

Definition at line 3926 of file CdbManager.cc.

References BdbHandle, BdbIsNull, BdbRef, cout, default_view_name(), find_registry(), find_view(), CdbCompositeName::first(), CdbCompositeName::isValid(), CdbCompositeName::last(), result, and CdbStatus::Success.

Referenced by main().

int cmd_convert_condition const char *    theDetector,
const char *    theContainer,
const char *    theConditionPath
[static]
 

Definition at line 3714 of file CdbManager.cc.

References BdbHandle, BdbIsNull, BdbRef, cout, CdbCondition::instance(), BdbIntervalItr::next(), result, BdbIntervalItr::setTopmost(), and CdbStatus::Success.

Referenced by main().

int cmd_create_cluster const char *    theName,
const char *    theDescription,
bool    isPartitionableFlag
[static]
 

Definition at line 4237 of file CdbManager.cc.

References BdbRef, create_cluster(), BdbTime::now(), and result.

Referenced by main().

int cmd_create_cluster_increment const char *    theGlobalClusterAddress [static]
 

Definition at line 4333 of file CdbManager.cc.

References BdbRef, cout, find_cluster(), CdbCompositeName::first(), CdbCompositeName::isValid(), CdbCompositeName::last(), BdbTime::now(), result, and CdbStatus::Success.

Referenced by main().

int cmd_create_condition const char *    theConditionPath,
const char *    theDescription,
bool    isPartitionableFlag,
bool    isStandAloneFlag,
const char *    theClusterNameOrIdentifier
[static]
 

Definition at line 2344 of file CdbManager.cc.

References BdbContObj, BdbcSuccess, BdbDelete, BdbHandle, BdbIsNull, BdbRef, BdbStatus, CdbPathName::beforeLast(), CdbBdbSCell::beginValidity, cout, create_cluster(), default_view_name(), CdbBdbSCell::endValidity, find_cluster(), find_registry(), find_view(), CdbBdbSUtils::getLocalDbIdRange(), is_local_view(), CdbPathName::isAbsolute(), CdbPathName::isComposite(), CdbPathName::isRoot(), CdbPathName::isValid(), CdbPathName::last(), BdbTime::minusInfinity, BdbAbsBaseClustH::newContainerCreated(), CdbItr< d_UShort >::next(), BdbTime::now(), BdbTime::plusInfinity, result, CdbStatus::Success, BdbCustomClustH::updatedHint(), and CdbItr< d_UShort >::value().

Referenced by main().

int cmd_create_partition_increment d_UShort    thePartitionId [static]
 

Definition at line 4472 of file CdbManager.cc.

References BdbHandle, cout, find_final_partition(), find_registry(), BdbTime::now(), result, and CdbStatus::Success.

Referenced by main().

int cmd_create_revision const char *    theConditionPath,
const char *    theRevisionName,
const char *    theDescription,
d_UShort    thePartitionId
[static]
 

Definition at line 3413 of file CdbManager.cc.

References BdbHandle, BdbRef, cout, default_view_name(), find_condition(), find_meta_data(), find_view(), is_local_condition(), is_local_partition(), BdbTime::now(), result, and CdbStatus::Success.

Referenced by main().

int cmd_create_slave_origin const char *    theOriginName,
const char *    theOriginDBIDRangeName,
const char *    theOriginDescription
[static]
 

Definition at line 2174 of file CdbManager.cc.

References BdbDelete, BdbHandle, BdbIsNull, BdbRef, cout, find_registry(), CdbBdbSCollectionP::IteratorOfIdentifiers, BdbTime::now(), result, CdbBdbSOriginP::SLAVE, CdbStatus::Success, and CdbBdbSUtils::verifyDbIdRange().

Referenced by main().

int cmd_create_view const char *    theNewViewName,
const char *    theNewViewDescription,
const BdbTime   theBeginValidityTime,
const BdbTime   theEndValidityTime
[static]
 

Definition at line 3802 of file CdbManager.cc.

References BdbDelete, BdbHandle, BdbIsNull, BdbRef, cout, find_registry(), CdbCompositeName::first(), CdbCompositeName::isValid(), CdbCompositeName::last(), BdbTime::now(), result, and CdbStatus::Success.

Referenced by main().

int cmd_freeze_view   [static]
 

Definition at line 4090 of file CdbManager.cc.

References BdbHandle, cout, default_view_name(), find_view(), and result.

Referenced by main().

void cmd_help   [static]
 

Definition at line 1353 of file CdbManager.cc.

References cout, and CdbPathName::separator().

int cmd_include_condition const char *    theConditionPath,
const char *    theDescription,
const char *    thePhysicalAddress
[static]
 

Definition at line 3617 of file CdbManager.cc.

References BdbHandle, CdbPathName::beforeLast(), cout, default_view_name(), find_condition(), find_view(), CdbCompositeName::isValid(), CdbPathName::last(), BdbTime::now(), result, and CdbStatus::Success.

Referenced by main().

int cmd_initialize_master const char *    theDescription [static]
 

Definition at line 2306 of file CdbManager.cc.

References BdbHandle, CdbBdbSMasterRegistryP::create(), BdbTime::now(), and CdbStatus::Success.

Referenced by main().

int cmd_initialize_replica const char *    theDescription [static]
 

Definition at line 2326 of file CdbManager.cc.

References BdbHandle, CdbBdbSReplicaRegistryP::create(), and CdbStatus::Success.

Referenced by main().

int cmd_initialize_slave   [static]
 

Definition at line 2318 of file CdbManager.cc.

References BdbHandle, CdbBdbSSlaveRegistryP::create(), and CdbStatus::Success.

Referenced by main().

int cmd_initialize_test const char *    theDescription [static]
 

Definition at line 2335 of file CdbManager.cc.

References BdbHandle, CdbBdbSTestRegistryP::create(), and CdbStatus::Success.

Referenced by main().

int cmd_list_cluster_increments const char *    theGlobalClusterAddress [static]
 

Definition at line 4253 of file CdbManager.cc.

References BdbRef, CdbBdbSIncrement::begin, cout, CdbBdbSIncrement::end, find_cluster(), CdbCompositeName::first(), CdbCompositeName::isValid(), CdbCompositeName::last(), result, CdbStatus::Success, and time2string().

Referenced by main().

int cmd_list_clusters const char *    theOriginNameOrIdentifier [static]
 

Definition at line 4175 of file CdbManager.cc.

References BdbHandle, BdbIsNull, BdbRef, cout, find_registry(), print_cluster_collection(), and result.

Referenced by main().

int cmd_list_origins bool    longOutputFlag [static]
 

Definition at line 2107 of file CdbManager.cc.

References BdbHandle, BdbIsNull, BdbRef, cout, find_registry(), CdbBdbSCollectionP::IteratorOfIdentifiers, result, and CdbStatus::Success.

Referenced by main().

int cmd_list_partition_increments d_UShort    thePartitionId [static]
 

Definition at line 4402 of file CdbManager.cc.

References BdbHandle, CdbBdbSIncrement::begin, cout, CdbBdbSIncrement::end, find_final_partition(), result, CdbStatus::Success, and time2string().

Referenced by main().

int cmd_list_physical_conditions const char *    theOriginNameOrIdentifier,
bool    longOutputFlag
[static]
 

Definition at line 3535 of file CdbManager.cc.

References BdbHandle, BdbIsNull, BdbRef, cout, find_registry(), CdbItr< d_UShort >::next(), result, CdbStatus::Success, time2string(), and CdbItr< d_UShort >::value().

Referenced by main().

int cmd_patch_condition_config const char *    theConditionPath,
bool    useRevisionFlag,
d_UShort    thePartitionId,
const BdbTime   theRevisionId,
const BdbTime   theBeginValidityTime,
const BdbTime   theEndValidityTime
[static]
 

Definition at line 3204 of file CdbManager.cc.

References BdbDelete, BdbHandle, BdbIsNull, BdbRef, CdbBdbSCell::beginValidity, cout, default_view_name(), CdbBdbSCell::endValidity, find_condition(), find_partition(), find_view(), is_local_view(), result, revision_is_valid(), and CdbStatus::Success.

Referenced by main().

int cmd_reset_condition_config const char *    theConditionPath [static]
 

Definition at line 3143 of file CdbManager.cc.

References BdbHandle, cout, default_view_name(), find_view(), is_local_view(), result, and CdbStatus::Success.

Referenced by main().

int cmd_update_main_view   [static]
 

Definition at line 4129 of file CdbManager.cc.

References BdbHandle, cout, find_registry(), CdbStatus::NotFound, result, and CdbStatus::Success.

Referenced by main().

void cmd_usage   [static]
 

Definition at line 1344 of file CdbManager.cc.

References cout.

bool create_cluster BdbRef(CdbBdbSClusterP)&    theClusterRef,
const char *    theName,
const char *    theDescription,
bool    isPartitionableFlag,
const BdbTime   theCreationTime
[static]
 

Definition at line 6019 of file CdbManager.cc.

References BdbContObj, BdbDelete, BdbHandle, BdbIsNull, BdbRef, cout, find_registry(), CdbBdbSUtils::getLocalDbIdRange(), CdbBdbSCollectionElementP::id(), BdbAbsBaseClustH::newContainerCreated(), result, CdbStatus::Success, and BdbCustomClustH::updatedHint().

Referenced by cmd_create_cluster(), and cmd_create_condition().

std::string default_view_name   [static]
 

Definition at line 5080 of file CdbManager.cc.

References cout, CdbEnvironment::defaultDatabase(), CdbEnvironment::defaultImplementation(), CdbEnvironment::defaultTechnology(), CdbEnvironment::defaultView(), CdbBdbShared::implementation(), and CdbBdbShared::technology().

Referenced by cmd_autoconfigure_condition(), cmd_autoconfigure_view(), cmd_clone_view(), cmd_create_condition(), cmd_create_revision(), cmd_freeze_view(), cmd_include_condition(), cmd_patch_condition_config(), and cmd_reset_condition_config().

bool find_cluster BdbRef(CdbBdbSClusterP)&    theClusterRef,
const char *    theOriginNameOrIdentifier,
const char *    theClusterNameOrIdentifier,
bool    isPartitionableFlag
[static]
 

Definition at line 6162 of file CdbManager.cc.

References BdbHandle, BdbIsNull, BdbRef, cout, CdbStatus::Error, find_registry(), result, CdbStatus::Success, and translate_ushort().

Referenced by cmd_create_cluster_increment(), cmd_create_condition(), and cmd_list_cluster_increments().

bool find_condition CdbBdbSId   theId,
const char *    thePhysicalAddress
[static]
 

Definition at line 5155 of file CdbManager.cc.

References BdbHandle, BdbIsNull, BdbRef, cout, CdbStatus::Error, find_registry(), CdbCompositeName::first(), CdbCompositeName::isValid(), CdbCompositeName::last(), result, CdbStatus::Success, and translate_ushort().

Referenced by cmd_autoconfigure_condition(), cmd_create_revision(), cmd_include_condition(), and cmd_patch_condition_config().

bool find_condition BdbHandle(CdbBdbSConditionP)&    theConditionH,
const CdbBdbSId   theId
[static]
 

Definition at line 5106 of file CdbManager.cc.

References BdbHandle, BdbIsNull, BdbRef, cout, CdbBdbSRegistryP::findByOrigin(), CdbBdbSId::local, CdbBdbSId::origin, result, and CdbStatus::Success.

CdbStatus find_final_partition BdbHandle(CdbBdbSPartitionP)&    thePartitionH,
d_UShort    thePartitionId
[static]
 

Definition at line 5371 of file CdbManager.cc.

References BdbHandle, BdbIsNull, BdbRef, cout, CdbStatus::Error, find_registry(), CdbStatus::NotFound, result, and CdbStatus::Success.

Referenced by cmd_autoconfigure_condition(), cmd_create_partition_increment(), and cmd_list_partition_increments().

CdbStatus find_meta_data std::vector< BdbRef(CdbBdbSMetaDataP)> &    theVectorOfRefs,
const CdbBdbSId   theId,
d_UShort    thePartitionId = 0,
bool    allIncrementsFlag = true,
bool    recentIncrementFlag = true,
d_UShort    theIncrementNumber = 0
[static]
 

Definition at line 5501 of file CdbManager.cc.

References BdbHandle, BdbIsNull, BdbRef, cout, CdbStatus::Error, find_meta_data_helper(), CdbBdbSRegistryP::findByOrigin(), CdbBdbSRegistryP::findLocal(), CdbBdbSRegistryP::findMaster(), CdbBdbSId::local, CdbBdbSId::origin, result, and CdbStatus::Success.

Referenced by cmd_create_revision().

CdbStatus find_meta_data_helper BdbRef(CdbBdbSMetaDataP)&    theRef,
const d_UShort    theConditionId,
bool    isPartitionableFlag,
d_UShort    thePartitionId,
d_UShort    theClusterId,
d_UShort    theIncrementNumber,
const std::string &    theDbIdRange
[static]
 

Definition at line 5729 of file CdbManager.cc.

References BdbContObj, BdbcSuccess, BdbHandle, cout, CdbStatus::Error, CdbBdbSUtils::findContainer(), result, CdbStatus::Success, and theRef.

Referenced by find_meta_data().

CdbStatus find_partition BdbHandle(CdbBdbSPartitionP)&    thePartitionH,
d_UShort    thePartitionId
[static]
 

Definition at line 5437 of file CdbManager.cc.

References BdbHandle, BdbIsNull, BdbRef, cout, CdbStatus::Error, find_registry(), CdbStatus::NotFound, result, and CdbStatus::Success.

Referenced by cmd_patch_condition_config().

bool find_registry BdbHandle(CdbBdbSRegistryP)&    theRegistryH,
const char *    theOriginNameOrIdentifier
[static]
 

Definition at line 4864 of file CdbManager.cc.

References CdbStatus::Error, CdbBdbSRegistryP::findByOrigin(), CdbBdbSRegistryP::findLocal(), CdbBdbSRegistryP::findMaster(), CdbStatus::Success, and translate_ushort().

Referenced by cmd_clone_view(), cmd_create_condition(), cmd_create_partition_increment(), cmd_create_slave_origin(), cmd_create_view(), cmd_list_clusters(), cmd_list_origins(), cmd_list_physical_conditions(), cmd_update_main_view(), create_cluster(), find_cluster(), find_condition(), find_final_partition(), find_partition(), find_view(), is_local_condition(), is_local_partition(), is_local_view(), and set_partitions_iterator().

bool find_revision_id BdbTime   theRevisionId,
const char *    theConditionPath,
const BdbTime   theInsertionTime,
d_UShort    thePartitionId = 0
[static]
 

Definition at line 5272 of file CdbManager.cc.

References cout, CdbCondition::instance(), BdbTime::minusInfinity, CdbItr< T >::next(), result, CdbStatus::Success, and CdbItr< T >::value().

Referenced by cmd_autoconfigure_condition().

bool find_view BdbHandle(CdbBdbSViewP)&    theViewH,
const char *    theViewName
[static]
 

Definition at line 4892 of file CdbManager.cc.

References BdbHandle, BdbIsNull, BdbRef, cout, CdbStatus::Error, find_registry(), CdbCompositeName::first(), CdbCompositeName::isValid(), CdbCompositeName::last(), result, and CdbStatus::Success.

Referenced by cmd_autoconfigure_condition(), cmd_autoconfigure_view(), cmd_clone_view(), cmd_create_condition(), cmd_create_revision(), cmd_freeze_view(), cmd_include_condition(), cmd_patch_condition_config(), and cmd_reset_condition_config().

bool is_local_condition const CdbBdbSId   theConditionId [static]
 

Definition at line 4996 of file CdbManager.cc.

References BdbHandle, find_registry(), CdbBdbSId::origin, and result.

Referenced by cmd_create_revision().

bool is_local_partition d_UShort    thePartitionId [static]
 

Definition at line 5026 of file CdbManager.cc.

References BdbHandle, BdbIsNull, BdbRef, cout, find_registry(), result, and CdbStatus::Success.

Referenced by cmd_create_revision().

bool is_local_view const BdbHandle(CdbBdbSViewP)&    theViewH [static]
 

Definition at line 4958 of file CdbManager.cc.

References BdbHandle, BdbIsNull, BdbRef, find_registry(), CdbBdbSCollectionElementP::id(), result, and CdbStatus::Success.

Referenced by cmd_autoconfigure_condition(), cmd_create_condition(), cmd_patch_condition_config(), and cmd_reset_condition_config().

int main int    argc,
char *    argv[]
 

Definition at line 338 of file CdbManager.cc.

References BdbcUpdate, cmd_autoconfigure_condition(), cmd_autoconfigure_view(), cmd_clone_view(), cmd_convert_condition(), cmd_create_cluster(), cmd_create_cluster_increment(), cmd_create_condition(), cmd_create_partition_increment(), cmd_create_revision(), CMD_CREATE_REVISION, cmd_create_slave_origin(), cmd_create_view(), cmd_freeze_view(), cmd_help(), cmd_include_condition(), cmd_initialize_master(), cmd_initialize_replica(), cmd_initialize_slave(), cmd_initialize_test(), cmd_list_cluster_increments(), cmd_list_clusters(), cmd_list_origins(), cmd_list_partition_increments(), cmd_list_physical_conditions(), cmd_patch_condition_config(), cmd_reset_condition_config(), cmd_update_main_view(), cmd_usage(), cout, CdbBdbShared::forceLoad(), BdbTime::minusInfinity, BdbTime::plusInfinity, CdbEnvironment::setDebugMode(), translate_and_set_defaults(), translate_autoconfig_parameters(), translate_BdbTime(), translate_int(), translate_optional_switch(), and translate_ushort().

int print_cluster_collection const BdbRef(CdbBdbSClusterCollectionP)&    theCollRef [static]
 

Definition at line 5979 of file CdbManager.cc.

References BdbRef, cout, CdbBdbSCollectionP::find(), CdbBdbSCollectionP::iterator_identifiers(), CdbItr< T >::next(), CdbItr< d_UShort >::next(), result, CdbStatus::Success, time2string(), CdbItr< T >::value(), and CdbItr< d_UShort >::value().

Referenced by cmd_list_clusters(), and test_ListClusters().

bool revision_is_valid const char *    theConditionPath,
const BdbTime   theRevisionId,
d_UShort    thePartitionId = 0
[static]
 

Definition at line 5331 of file CdbManager.cc.

References cout, CdbCondition::instance(), result, and CdbStatus::Success.

Referenced by cmd_patch_condition_config().

bool set_partitions_iterator CdbItr< CdbBdbSPartitionInterval > &    theItr,
const BdbTime   theInsertionTime,
const BdbTime   theBeginValidityTime,
const BdbTime   theEndValidityTime
[static]
 

Definition at line 5230 of file CdbManager.cc.

References BdbHandle, BdbIsNull, BdbRef, cout, find_registry(), and result.

Referenced by cmd_autoconfigure_condition().

void setDefaultEnvironment const char *    theTechnology,
const char *    theImplementation,
const char *    theDatabase,
const char *    theView
[static]
 

Definition at line 4544 of file CdbManager.cc.

References CdbEnvironment::defaultDatabase(), CdbEnvironment::defaultImplementation(), CdbEnvironment::defaultTechnology(), CdbEnvironment::defaultView(), and CdbEnvironment::setDefault().

Referenced by main(), and translate_and_set_defaults().

std::string time2string const BdbTime   theTime [static]
 

Definition at line 4849 of file CdbManager.cc.

References BdbTime::getGmtNsec(), BdbTime::getGmtSec(), BdbTime::minusInfinity, and BdbTime::plusInfinity.

Referenced by cmd_autoconfigure_view(), cmd_list_cluster_increments(), cmd_list_partition_increments(), cmd_list_physical_conditions(), cmd_partitions(), cmd_revisions(), CdbBdbSCell::dump(), print_cluster_collection(), print_config_element(), print_object_info(), PartitionableObjectIterator::tryNextConfigElement(), RegularObjectIterator::tryNextObject(), PartitionableObjectIterator::tryNextObject(), and PartitionableObjectIterator::tryNextPartition().

void translate_and_set_defaults char *    argv[],
int &    numArgs,
int &    nextArg
[static]
 

Definition at line 4578 of file CdbManager.cc.

References setDefaultEnvironment().

Referenced by main().

bool translate_autoconfig_parameters BdbTime   theInsertonTime,
BdbTime   theBeginValidityTime,
BdbTime   theEndValidityTime,
bool &    isPatchOnlyFlag,
char *    argv[],
int &    numArgs,
int &    nextArg
[static]
 

Definition at line 4612 of file CdbManager.cc.

References cout, BdbTime::now(), BdbTime::plusInfinity, translate_BdbTime(), and translate_optional_switch().

Referenced by main().

bool translate_BdbTime BdbTime   theTime,
const char *    theBuf
[static]
 

Definition at line 4783 of file CdbManager.cc.

References BdbTime::Local, BdbTime::parseTime(), and result.

Referenced by main(), translate_autoconfig_parameters(), and translate_optional_BdbTime().

bool translate_int int &    theValue,
const char *    theBuf
[static]
 

Definition at line 4833 of file CdbManager.cc.

Referenced by main().

bool translate_optional_BdbTime const char *    theKeywordName,
BdbTime   theValue,
char *    argv[],
int &    numArgs,
int &    nextArg
[static]
 

Definition at line 4735 of file CdbManager.cc.

References cout, and translate_BdbTime().

bool translate_optional_switch const char *    theSwitchName,
bool &    theValue,
char *    argv[],
int &    numArgs,
int &    nextArg
[static]
 

Definition at line 4704 of file CdbManager.cc.

Referenced by main(), and translate_autoconfig_parameters().

bool translate_ushort unsigned short &    theValue,
const char *    theBuf
[static]
 

Definition at line 4812 of file CdbManager.cc.

Referenced by find_cluster(), find_condition(), find_registry(), and main().

 


BaBar Public Site | SLAC | News | Links | Who's Who | Contact Us

Page Owner: Jacek Becla
Last Update: October 04, 2002