#ifndef _RMIRegistry_h__ #define _RMIRegistry_h__ #include #include "MyGlobalPointerPack.h" #include "Constants.h" #include #include #include #include #include #ifndef LINUX #include #include #include #endif #include "hpcxx_byte.h" #include "HPCxx_String.h" #include "BindObject.h" template class RMIRegistry { private: HPCxx_ContextID registryStartpoint; HPCxx_ContextID localStartpoint; public: RMIRegistry(); int bindRegistry(MyHPCxx_GlobalPtr gp, HPCxx_String rmiURL, HPCxx_String FQN); int rebindRegistry(MyHPCxx_GlobalPtr gp, HPCxx_String rmiURL, HPCxx_String FQN); int attachToRegistry(char *registryHost, unsigned short port); static int registrationID() { return RMI_REGISTRATION_ID; } ~RMIRegistry(); friend void hpcxx_pack(HPCxx_Buffer &buf, RMIRegistry *t,int count); friend void hpcxx_unpack(HPCxx_Buffer &buf, RMIRegistry *t,int count); }; #endif // _RMIRegistry_h__