|
| ORBReplicator (int argc, char *argv[], string transportNameIn, string ipAddress) |
|
| ORBReplicator (int argc, char *argv[], string transportNameIn, string ipAddress, int basePortDifferent) |
|
| ORBReplicator (int argc, char *argv[], string transportNameIn, string ipAddress, const vector< pair< string, string > > extraProperties) |
|
| ORBReplicator (int argc, char *argv[], string transportNameIn, string ipAddress, const vector< pair< string, string > > extraProperties, int basePortDifferent) |
|
virtual Ice::ObjectPtr | create (const std::string &)=0 |
|
void | addClass (Ice::ObjectPtr objectToORB, const string &name) |
|
void | shutdown (void) |
|
template<typename PRXTYPE > |
PRXTYPE | getObjectProxy (const string &nameIn) |
|
template<typename CLASSTYPE > |
CLASSTYPE * | getObjectPointer (const string &nameIn) |
|
| ORBOriginator (int argc, char *argv[], string transportNameIn) |
|
| ORBOriginator (int argc, char *argv[], string transportNameIn, int basePortDifferent) |
|
| ORBOriginator (int argc, char *argv[], string transportNameIn, const vector< pair< string, string > > extraProperties) |
|
| ORBOriginator (int argc, char *argv[], string transportNameIn, const vector< pair< string, string > > extraProperties, int basePortDifferent) |
|
virtual | ~ORBOriginator (void) |
| Destructor. More...
|
|
void | shutdown (const Ice::Current &cur) |
|
void | addClass (Ice::ObjectPtr objectToORB, const string &name) |
|
void | waitForShutdown (void) |
|
| ORBBase (void) |
| Constructor using ORB_DEFAULT_BASEPORT as the starting base network port. More...
|
|
| ORBBase (int basePortDifferent) |
|
int | getPortOffset (void) |
|
void | removePortOffset (int whichOffset) |
|
int | getTCPUDPPort (int portOffset) |
|
int | getSSLPort (int portOffset) |
|
int | getBasePort (void) |
|
string | generateEndPoint (const string &transportName, std::string &ipAddress, int &portOffset) |
|
string | generateEndPoint (string &transportName, string ipAddress, int portOffset) |
|
|
| ORBOriginator (int argc, char *argv[], string transportNameIn, string ipAddress) |
|
| ORBOriginator (int argc, char *argv[], string transportNameIn, string ipAddress, const vector< pair< string, string > > extraProperties) |
|
| ORBOriginator (int argc, char *argv[], string transportNameIn, string ipAddress, int basePortDifferent) |
|
| ORBOriginator (int argc, char *argv[], string transportNameIn, string ipAddress, const vector< pair< string, string > > extraProperties, int basePortDifferent) |
|
void | initialise (int argc, char *argv[], string transportNameIn, string ipAddress, const vector< pair< string, string > > extraProperties) |
|
void | initialiseAdapter (void) |
|
void | getObjectPointer (const string &name, Ice::ObjectPtr &objectPointer, const Ice::Current &cur) |
|
int | portOffset |
| The port offset of this application layer. More...
|
|
string | hostAddress |
| The hostname or IP address of the node to connect to, empty for the originator and set for the replicator. More...
|
|
string | transportName |
| Zeroc ICE application layer name. More...
|
|
Ice::CommunicatorPtr | communicator |
| Resident communicator. More...
|
|
Ice::ObjectAdapterPtr | adapterPtr |
| Resident adapter. More...
|
|
Sets up a replicator which connects to an originator.
The local proxy objects will operate the originator's object's methods, get the proxy using the ORBReplicator::getObjectProxy method.
The local pointer objects will access the originator's object's variables, get the pointer using the ORBReplicator::getObjectPointer method.
Each ORBReplicator class must implement the purely virtual method ORBReplicator::create to instruct the class factory which classes to generate and how.
Definition at line 397 of file ORB.H.
template<typename CLASSTYPE >
CLASSTYPE* ORB::ORBReplicator::getObjectPointer |
( |
const string & |
nameIn | ) |
|
|
inline |
Get a calss from the ORB layer (this will give you access to the variables as they are on the originator
however the methods run on the replicator) It is like creating the class locally but setting its state to be identical to that of the same clas on the originator at the point in time the method is executed. The proxy must be set using the ORBOriginator::addClass method first. This method returns a pointer to CLASSTYPE which is not memory managed. Ensure you call CLASSTYPE *c; c->__setNoDelete(false); to re-enable memory management
- Parameters
-
nameIn | The name of the class we are looking for on the ORB network |
- Returns
- desired pointer or NULL on failure
- Template Parameters
-
CLASSTYPE | The class which we want to get from the ORB network - must match the nameIn used in the ORBOriginator::addClass AND the iceIdIn |
Definition at line 518 of file ORB.H.