Class representing a drb server instance.
A DRbServer must be running in the local process before any incoming dRuby calls can be accepted, or any local objects can be passed as dRuby references to remote processes, even if those local objects are never actually called remotely. You do not need to start a DRbServer in the local process if you are only making outgoing dRuby calls passing marshalled parameters.
Unless multiple servers are being used, the local DRbServer is normally started by calling DRb.start_service.
| Modules | |
|---|---|
| InvokeMethod18Mixin | |
| Classes | |
|---|---|
| InvokeMethod | |
| Constants | |
|---|---|
| INSECURE_ |
List of insecure methods. |
| Public Attributes | |
|---|---|
| config | The configuration of this DRbServer |
| front | The front object of the DRbServer. |
| safe_ |
|
| thread | The main thread of this DRbServer. |
| uri | The URI of this DRbServer. |
| Public Methods | |
|---|---|
| alive? | Is this server alive? |
| check_ |
Check that a method is callable via dRuby. |
| default_ |
Set the default value for the :acl option. |
| default_ |
Set the default value for the :argc_limit option. |
| default_ |
Set the default value for the :id_conv option. |
| default_ |
Set the default value for the :load_limit option. |
| default_ |
|
| make_ |
|
| new | Create a new DRbServer instance. |
| stop_ |
Stop this server. |
| to_ |
Convert a local object to a dRuby reference. |
| to_ |
Convert a dRuby reference to the local object it refers to. |
| verbose | Get whether the server is in verbose mode. |
| verbose | Get the default value of the :verbose option. |
| verbose= | Set the default value of the :verbose option. |
| verbose= | Set whether to operate in verbose mode. |
| Private Methods | |
|---|---|
| any_ |
Coerce an object to a string, providing our own representation if to_s is not defined for the object. |
| insecure_ |
Has a method been included in the list of insecure methods? |
| kill_ |
|
| main_ |
The main loop performed by a DRbServer’s internal thread. |
| run | |
<code/>and<pre/>for code samples.