Class: RMIRegistry
- Inherits:
-
Object
- Object
- RMIRegistry
- Defined in:
- lib/rmi.rb
Instance Method Summary collapse
-
#initialize(port = Registry::REGISTRY_PORT) ⇒ RMIRegistry
constructor
A new instance of RMIRegistry.
- #start(port) ⇒ Object
- #stop ⇒ Object
Constructor Details
#initialize(port = Registry::REGISTRY_PORT) ⇒ RMIRegistry
Returns a new instance of RMIRegistry.
8 9 10 |
# File 'lib/rmi.rb', line 8 def initialize(port = Registry::REGISTRY_PORT) start(port) end |
Instance Method Details
#start(port) ⇒ Object
12 13 14 15 |
# File 'lib/rmi.rb', line 12 def start(port) @registry = LocateRegistry.createRegistry port end |
#stop ⇒ Object
17 18 19 |
# File 'lib/rmi.rb', line 17 def stop UnicastRemoteObject.unexportObject @registry, true end |