Util.h
Go to the documentation of this file.
1 // **********************************************************************
2 //
3 // Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
4 //
5 // This copy of Ice is licensed to you under the terms described in the
6 // ICE_LICENSE file included in this distribution.
7 //
8 // **********************************************************************
9 
10 #ifndef UTIL_H
11 #define UTIL_H
12 
13 #include <Ice/Ice.h>
14 #include <IceDB/IceDB.h>
15 #include <IceStorm/LLURecord.h>
17 
18 namespace IceStorm
19 {
20 
21  //
22  // Forward declarations.
23  //
24  class Instance;
26 
30 
31  const std::string lluDbKey = "_manager";
32 
33 }
34 
35 namespace IceStormInternal
36 {
37 
38  std::string
40 
42  nameToIdentity(const IceStorm::InstancePtr&, const std::string&);
43 
44  std::string
45  describeEndpoints(const Ice::ObjectPrx&);
46 
47  int
48  compareSubscriberRecordKey(const MDB_val* v1, const MDB_val* v2);
49 
52 
53 }
54 
55 #endif
IceStorm
Definition: DBTypes.ice:22
IceDB::ReadWriteTxn
Definition: IceDB.h:206
IceDB.h
IceStormElection::LogUpdate
A struct used for marking the last log update.
Definition: LLURecord.h:100
GfxTL::Identity
void Identity(MatrixXX< N, N, T > *a)
Definition: MatrixXX.h:523
IceStormInternal::compareSubscriberRecordKey
int compareSubscriberRecordKey(const MDB_val *v1, const MDB_val *v2)
Definition: Util.cpp:74
IceStorm::lluDbKey
const std::string lluDbKey
Definition: Util.h:31
IceStorm::InstancePtr
IceUtil::Handle< Instance > InstancePtr
Definition: Instance.h:126
IceDB::Dbi< IceStorm::SubscriberRecordKey, IceStorm::SubscriberRecord, IceDB::IceContext, Ice::OutputStream >
IceStormInternal::describeEndpoints
std::string describeEndpoints(const Ice::ObjectPrx &)
Definition: Util.cpp:51
IceStorm::LLUMap
IceDB::Dbi< std::string, IceStormElection::LogUpdate, IceDB::IceContext, Ice::OutputStream > LLUMap
Definition: Util.h:29
IceStormInternal::nameToIdentity
Ice::Identity nameToIdentity(const IceStorm::InstancePtr &, const std::string &)
IceStormInternal::getIncrementedLLU
IceStormElection::LogUpdate getIncrementedLLU(const IceDB::ReadWriteTxn &, IceStorm::LLUMap &)
Definition: Util.cpp:94
SubscriberRecord.h
IceStorm::SubscriberMap
IceDB::Dbi< IceStorm::SubscriberRecordKey, IceStorm::SubscriberRecord, IceDB::IceContext, Ice::OutputStream > SubscriberMap
Definition: Util.h:28
IceStormInternal::identityToTopicName
std::string identityToTopicName(const Ice::Identity &)
Definition: Util.cpp:23
IceStormInternal
Definition: Instance.cpp:27
IceUtil::Handle
Definition: forward_declarations.h:29
LLURecord.h