|
A replica node. More...
defined in <ArmarXCore/applications/ArmarXStorm/IceStorm/Election.ice>
interface Node { ... }
Public Types | |
typedef NodePtr | PointerType |
typedef NodePrx | ProxyType |
Operations | |
bool | _iceD_accept (::IceInternal::Incoming &, const ::Ice::Current &) |
bool | _iceD_areYouCoordinator (::IceInternal::Incoming &, const ::Ice::Current &) const |
bool | _iceD_areYouThere (::IceInternal::Incoming &, const ::Ice::Current &) const |
bool | _iceD_invitation (::IceInternal::Incoming &, const ::Ice::Current &) |
bool | _iceD_nodes (::IceInternal::Incoming &, const ::Ice::Current &) const |
bool | _iceD_query (::IceInternal::Incoming &, const ::Ice::Current &) const |
bool | _iceD_ready (::IceInternal::Incoming &, const ::Ice::Current &) |
bool | _iceD_sync (::IceInternal::Incoming &, const ::Ice::Current &) const |
virtual bool | _iceDispatch (::IceInternal::Incoming &, const ::Ice::Current &) |
virtual void | accept (::Ice::Int, const ::std::string &, const ::Ice::IntSeq &, const ::Ice::ObjectPrx &, const ::IceStormElection::LogUpdate &, ::Ice::Int, const ::Ice::Current &=::Ice::emptyCurrent)=0 |
void | accept (int j, string gn, Ice::IntSeq forwardedInvites, Object *observer, LogUpdate llu, int max) |
Called to accept an invitation into the given group. More... | |
idempotent bool | areYouCoordinator () |
Determine if this node is a coordinator. More... | |
virtual bool | areYouCoordinator (const ::Ice::Current &=::Ice::emptyCurrent) const =0 |
virtual bool | areYouThere (const ::std::string &, ::Ice::Int, const ::Ice::Current &=::Ice::emptyCurrent) const =0 |
idempotent bool | areYouThere (string gn, int j) |
Determine if the node is a member of the given group with the given coordinator. 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 | invitation (::Ice::Int, const ::std::string &, const ::Ice::Current &=::Ice::emptyCurrent)=0 |
void | invitation (int j, string gn) |
Invite the node into a group with the given coordinator and group name. More... | |
idempotent NodeInfoSeq | nodes () |
Get the replication group information. More... | |
virtual ::IceStormElection::NodeInfoSeq | nodes (const ::Ice::Current &=::Ice::emptyCurrent) const =0 |
idempotent QueryInfo | query () |
Get the query information for the given node. More... | |
virtual ::IceStormElection::QueryInfo | query (const ::Ice::Current &=::Ice::emptyCurrent) const =0 |
virtual void | ready (::Ice::Int, const ::std::string &, const ::Ice::ObjectPrx &, ::Ice::Int, ::Ice::Long, const ::Ice::Current &=::Ice::emptyCurrent)=0 |
void | ready (int j, string gn, Object *coordinator, int max, long generation) |
Call from the group coordinator to a node to inform the node that the replica group is active. More... | |
idempotent Object * | sync () |
Get the sync object for the replica hosted by this node. More... | |
virtual ::Ice::ObjectPrx | sync (const ::Ice::Current &=::Ice::emptyCurrent) const =0 |
virtual | ~Node () |
Static Public Member Functions | |
static const ::std::string & | ice_staticId () |
Protected Member Functions | |
virtual void | _iceReadImpl (::Ice::InputStream *) |
virtual void | _iceWriteImpl (::Ice::OutputStream *) const |
A replica node.
Definition at line 202 of file Election.ice.
typedef NodePtr PointerType |
Definition at line 1650 of file Election.h.
Definition at line 1649 of file Election.h.
|
virtual |
Definition at line 1928 of file Election.cpp.
bool _iceD_accept | ( | ::IceInternal::Incoming & | inS, |
const ::Ice::Current & | current | ||
) |
Definition at line 2014 of file Election.cpp.
bool _iceD_areYouCoordinator | ( | ::IceInternal::Incoming & | inS, |
const ::Ice::Current & | current | ||
) | const |
Definition at line 2037 of file Election.cpp.
bool _iceD_areYouThere | ( | ::IceInternal::Incoming & | inS, |
const ::Ice::Current & | current | ||
) | const |
Definition at line 2049 of file Election.cpp.
bool _iceD_invitation | ( | ::IceInternal::Incoming & | inS, |
const ::Ice::Current & | current | ||
) |
Definition at line 1978 of file Election.cpp.
bool _iceD_nodes | ( | ::IceInternal::Incoming & | inS, |
const ::Ice::Current & | current | ||
) | const |
Definition at line 2078 of file Election.cpp.
bool _iceD_query | ( | ::IceInternal::Incoming & | inS, |
const ::Ice::Current & | current | ||
) | const |
Definition at line 2090 of file Election.cpp.
bool _iceD_ready | ( | ::IceInternal::Incoming & | inS, |
const ::Ice::Current & | current | ||
) |
Definition at line 1993 of file Election.cpp.
bool _iceD_sync | ( | ::IceInternal::Incoming & | inS, |
const ::Ice::Current & | current | ||
) | const |
Definition at line 2066 of file Election.cpp.
|
virtual |
Definition at line 2122 of file Election.cpp.
|
protectedvirtual |
|
protectedvirtual |
|
pure virtual |
void accept | ( | int | j, |
string | gn, | ||
Ice::IntSeq | forwardedInvites, | ||
Object * | observer, | ||
LogUpdate | llu, | ||
int | max | ||
) |
Called to accept an invitation into the given group.
j | The id of the node accepting the invitation. |
observer | The observer. |
gn | The group name. |
forwardedInvites | The ids of the nodes to which invitations were forwarded. |
llu | The last log update for the given node. |
max | The highest priority node seen by this replica group. |
idempotent bool areYouCoordinator | ( | ) |
Determine if this node is a coordinator.
|
pure virtual |
|
pure virtual |
idempotent bool areYouThere | ( | string | gn, |
int | j | ||
) |
Determine if the node is a member of the given group with the given coordinator.
gn | The group name. |
j | The group coordinator. |
|
virtual |
Definition at line 1961 of file Election.cpp.
std::vector<::std::string > ice_ids | ( | const ::Ice::Current & | = ::Ice::emptyCurrent | ) | const |
Definition at line 1955 of file Election.cpp.
|
virtual |
|
static |
Definition at line 1967 of file Election.cpp.
|
pure virtual |
void invitation | ( | int | j, |
string | gn | ||
) |
Invite the node into a group with the given coordinator and group name.
gn | The group name. |
j | The group coordinator. |
idempotent NodeInfoSeq nodes | ( | ) |
Get the replication group information.
|
pure virtual |
idempotent QueryInfo query | ( | ) |
Get the query information for the given node.
|
pure virtual |
|
pure virtual |
void ready | ( | int | j, |
string | gn, | ||
Object * | coordinator, | ||
int | max, | ||
long | generation | ||
) |
Call from the group coordinator to a node to inform the node that the replica group is active.
j | The group coordinator. |
gn | The group name. |
coordinator | The proxy to the coordinator. |
max | The highest priority node seen by this replica group. |
generation | The current generation count. |
idempotent Object* sync | ( | ) |
Get the sync object for the replica hosted by this node.
|
pure virtual |