|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.computing.distributed.server.ServerRecord
public class ServerRecord
Record representing an InteractiveTaskServer. Used for managing the allocation of multiple clients to multiple servers in a multi server environment.
| Field Summary | |
|---|---|
protected java.util.HashSet |
allocatedClients
DOCUMENT ME! |
protected java.lang.String |
name
DOCUMENT ME! |
protected InteractiveTaskServer |
server
DOCUMENT ME! |
protected java.lang.String |
specificClientName
DOCUMENT ME! |
| Constructor Summary | |
|---|---|
ServerRecord(java.lang.String name,
InteractiveTaskServer server,
java.lang.String specificClientName)
Creates a new instance of ServerRecord |
|
| Method Summary | |
|---|---|
void |
allocateClient(ClientRecord cr)
Adds a client to the set allocated to this server |
void |
deallocateClient(ClientRecord cr)
Removes a client to the set allocated to this server |
java.util.HashSet |
getAllocatedClients()
Get method for the set of clients currently allocated to this server |
java.lang.String |
getName()
Get method for this server's unique name |
InteractiveTaskServer |
getServer()
Get method for the actual server object within this record |
java.lang.String |
getSpecificClientName()
Get method for the name of the client specifically allocated to this server |
void |
setSpecificClientName(java.lang.String specificClientName)
Set method for the name of the client specifically allocated to this server |
java.lang.String |
toString()
DOCUMENT ME! |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String name
protected InteractiveTaskServer server
protected java.lang.String specificClientName
protected java.util.HashSet allocatedClients
| Constructor Detail |
|---|
public ServerRecord(java.lang.String name,
InteractiveTaskServer server,
java.lang.String specificClientName)
name - A unique name for this serverserver - Actual InteractiveTaskServer objectspecificClientName - Name of client specifically allocated to this
server. A "" or null value define a server with no specific
client| Method Detail |
|---|
public java.lang.String getName()
public InteractiveTaskServer getServer()
public java.lang.String getSpecificClientName()
public void setSpecificClientName(java.lang.String specificClientName)
specificClientName - The name of the client specifically allocated
to this serverpublic void allocateClient(ClientRecord cr)
cr - Record of client to be added to the allocation setpublic void deallocateClient(ClientRecord cr)
cr - Record of client to be removed to the allocation setpublic java.util.HashSet getAllocatedClients()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||