Ruby 1.8.7 リファレンスマニュアル > ライブラリ一覧 > drbライブラリ > DRbモジュール

module DRb

クラスの継承リスト: DRb

要約

モジュール関数

config

[TODO]

Get the configuration of the current server.

If there is no current server, this returns the default configuration. See #current_server and DRbServer::make_config.

current_server

[TODO]

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.

fetch_server(uri)

[TODO]

front

[TODO]

Get the front object of the current server.

This raises a DRbServerNotFound error if there is no current server. See DRb.#current_server.

here?(uri)

[TODO]

Is uri the URI for the current local server?

install_acl(acl)

[TODO]

Set the default acl.

See DRb::DRbServer.default_acl.

install_id_conv(idconv)

[TODO]

Set the default id conv object. See DRb::DRbServer.default_id_conv.

regist_server(server)

[TODO]

remove_server(server)

[TODO]

start_service(uri=nil, front=nil, config=nil)

[TODO]

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 DRbServer::new.

stop_service

[TODO]

Stop the local dRuby server.

This operates on the primary server. If there is no primary server currently running, it is a noop.

thread

[TODO]

Get the thread of the primary server.

This returns nil if there is no primary server. See #primary_server.

to_id(obj)

[TODO]

Get a reference id for an object using the current server.

This raises a DRbServerNotFound error if there is no current server. See #current_server.

to_obj(ref)

[TODO]

Convert a reference into an object using the current server.

This raises a DRbServerNotFound error if there is no current server. See #current_server.

uri

[TODO]

Get the URI defining the local dRuby space.

This is the URI of the current server. See #current_server.

module DRb