|
The replica observer. More...
defined in <ArmarXCore/applications/ArmarXStorm/IceStorm/Election.ice>
interface ReplicaObserver { ... }
Public Types | |
typedef ReplicaObserverPtr | PointerType |
typedef ReplicaObserverPrx | ProxyType |
Operations | |
bool | _iceD_addSubscriber (::IceInternal::Incoming &, const ::Ice::Current &) |
bool | _iceD_createTopic (::IceInternal::Incoming &, const ::Ice::Current &) |
bool | _iceD_destroyTopic (::IceInternal::Incoming &, const ::Ice::Current &) |
bool | _iceD_init (::IceInternal::Incoming &, const ::Ice::Current &) |
bool | _iceD_removeSubscriber (::IceInternal::Incoming &, const ::Ice::Current &) |
virtual bool | _iceDispatch (::IceInternal::Incoming &, const ::Ice::Current &) |
virtual void | addSubscriber (const ::IceStormElection::LogUpdate &, const ::std::string &, const ::IceStorm::SubscriberRecord &, const ::Ice::Current &=::Ice::emptyCurrent)=0 |
void | addSubscriber (LogUpdate llu, string topic, IceStorm::SubscriberRecord record) throws ObserverInconsistencyException |
Add a subscriber to a topic. More... | |
virtual void | createTopic (const ::IceStormElection::LogUpdate &, const ::std::string &, const ::Ice::Current &=::Ice::emptyCurrent)=0 |
void | createTopic (LogUpdate llu, string name) throws ObserverInconsistencyException |
Create the topic with the given name. More... | |
virtual void | destroyTopic (const ::IceStormElection::LogUpdate &, const ::std::string &, const ::Ice::Current &=::Ice::emptyCurrent)=0 |
void | destroyTopic (LogUpdate llu, string name) throws ObserverInconsistencyException |
Destroy the topic with the given name. More... | |
virtual const ::std::string & | ice_id (const ::Ice::Current &=::Ice::emptyCurrent) const |
virtual ::std::vector< ::std::string > | ice_ids (const ::Ice::Current &=::Ice::emptyCurrent) const |
virtual bool | ice_isA (const ::std::string &, const ::Ice::Current &=::Ice::emptyCurrent) const |
virtual void | init (const ::IceStormElection::LogUpdate &, const ::IceStormElection::TopicContentSeq &, const ::Ice::Current &=::Ice::emptyCurrent)=0 |
void | init (LogUpdate llu, TopicContentSeq content) throws ObserverInconsistencyException |
Initialize the observer. More... | |
virtual void | removeSubscriber (const ::IceStormElection::LogUpdate &, const ::std::string &, const ::Ice::IdentitySeq &, const ::Ice::Current &=::Ice::emptyCurrent)=0 |
void | removeSubscriber (LogUpdate llu, string topic, Ice::IdentitySeq subscribers) throws ObserverInconsistencyException |
Remove a subscriber from a topic. More... | |
virtual | ~ReplicaObserver () |
Static Public Member Functions | |
static const ::std::string & | ice_staticId () |
Protected Member Functions | |
virtual void | _iceReadImpl (::Ice::InputStream *) |
virtual void | _iceWriteImpl (::Ice::OutputStream *) const |
The replica observer.
Definition at line 42 of file Election.ice.
typedef ReplicaObserverPtr PointerType |
Definition at line 1566 of file Election.h.
typedef ReplicaObserverPrx ProxyType |
Definition at line 1565 of file Election.h.
|
virtual |
Definition at line 1560 of file Election.cpp.
bool _iceD_addSubscriber | ( | ::IceInternal::Incoming & | inS, |
const ::Ice::Current & | current | ||
) |
Definition at line 1655 of file Election.cpp.
bool _iceD_createTopic | ( | ::IceInternal::Incoming & | inS, |
const ::Ice::Current & | current | ||
) |
Definition at line 1625 of file Election.cpp.
bool _iceD_destroyTopic | ( | ::IceInternal::Incoming & | inS, |
const ::Ice::Current & | current | ||
) |
Definition at line 1640 of file Election.cpp.
bool _iceD_init | ( | ::IceInternal::Incoming & | inS, |
const ::Ice::Current & | current | ||
) |
Definition at line 1610 of file Election.cpp.
bool _iceD_removeSubscriber | ( | ::IceInternal::Incoming & | inS, |
const ::Ice::Current & | current | ||
) |
Definition at line 1672 of file Election.cpp.
|
virtual |
Definition at line 1706 of file Election.cpp.
|
protectedvirtual |
|
protectedvirtual |
|
pure virtual |
void addSubscriber | ( | LogUpdate | llu, |
string | topic, | ||
IceStorm::SubscriberRecord | record | ||
) | throws ObserverInconsistencyException |
Add a subscriber to a topic.
llu | The log update token. |
topic | The topic name to which to add the subscriber. |
record | The subscriber information. |
ObserverInconsistencyException | Raised if an inconsisency was detected. |
|
pure virtual |
void createTopic | ( | LogUpdate | llu, |
string | name | ||
) | throws ObserverInconsistencyException |
Create the topic with the given name.
llu | The log update token. |
name | The topic name. |
ObserverInconsistencyException | Raised if an inconsisency was detected. |
|
pure virtual |
void destroyTopic | ( | LogUpdate | llu, |
string | name | ||
) | throws ObserverInconsistencyException |
Destroy the topic with the given name.
llu | The log update token. |
name | The topic name. |
ObserverInconsistencyException | Raised if an inconsisency was detected. |
|
virtual |
Definition at line 1593 of file Election.cpp.
std::vector<::std::string > ice_ids | ( | const ::Ice::Current & | = ::Ice::emptyCurrent | ) | const |
Definition at line 1587 of file Election.cpp.
|
virtual |
|
static |
|
pure virtual |
void init | ( | LogUpdate | llu, |
TopicContentSeq | content | ||
) | throws ObserverInconsistencyException |
Initialize the observer.
llu | The last log update seen by the master. |
content | The topic content. |
ObserverInconsistencyException | Raised if an inconsisency was detected. |
|
pure virtual |
void removeSubscriber | ( | LogUpdate | llu, |
string | topic, | ||
Ice::IdentitySeq | subscribers | ||
) | throws ObserverInconsistencyException |
Remove a subscriber from a topic.
llu | The log update token. |
name | The topic name. |
subscribers | The identities of the subscribers to remove. |
ObserverInconsistencyException | Raised if an inconsisency was detected. |