Class ServerFarm
Object
|
+--ServerFarm
- class
ServerFarm
Defined in server_farm.js
Method Summary |
Object
|
get(<string> server)
Returns the server named server .
|
void
|
register(<string> name, <Object> server)
Registers server as the server named name .
|
ServerFarm
function ServerFarm()
get
Object get(<string> server)
Returns the server named server
.
Parameters:
server
- the name of the server to return
Returns:
the server with the name server
, or null
if there is no such server
register
void register(<string> name, <Object> server)
Registers server
as the server named name
.
Parameters:
name
- the name of the server. This name must be unique, or an exception will be thrown.
server
- the server to register
