stop_service

stop_service() Class Public methods Stop the local dRuby server. This operates on the primary server. If there is no primary server currently running, it is a noop.

start_service

start_service(uri=nil, front=nil, config=nil) Class Public methods Start a dRuby server locally. The new dRuby server will become the primary server, even if another server is currently the primary server. uri is the URI for the server to bind to. If nil, the server will bind to random port on the default local host name and use the default dRuby protocol. front is the server's front object. This may be nil. config is the configuration for the new server. This may be nil. See DR

remove_server

remove_server(server) Class Public methods Removes server from the list of registered servers.

regist_server

regist_server(server) Class Public methods Registers server with DRb. This is called when a new DRb::DRbServer is created. If there is no primary server then server becomes the primary server. Example: require 'drb' s = DRb::DRbServer.new # automatically calls regist_server DRb.fetch_server s.uri #=> #<DRb::DRbServer:0x...>

install_id_conv

install_id_conv(idconv) Class Public methods Set the default id conversion object. This is expected to be an instance such as DRb::DRbIdConv that responds to to_id and to_obj that can convert objects to and from DRb references. See DRbServer#default_id_conv.

install_acl

install_acl(acl) Class Public methods Set the default ACL to acl. See DRb::DRbServer.default_acl.

here?

here?(uri) Class Public methods Is uri the URI for the current local server?

front

front() Class Public methods Get the front object of the current server. This raises a DRbServerNotFound error if there is no current server. See current_server.

fetch_server

fetch_server(uri) Class Public methods Retrieves the server with the given uri. See also ::regist_server and remove_server.

current_server

current_server() Class Public methods Get the 'current' server. In the context of execution taking place within the main thread of a dRuby server (typically, as a result of a remote call on the server or one of its objects), the current server is that server. Otherwise, the current server is the primary server. If the above rule fails to find a server, a DRbServerNotFound error is raised.