com.andreani.xtol.node
Class ServerNode
java.lang.Object
|
+--com.andreani.xtol.node.ServerNode
- All Implemented Interfaces:
- Serializable
- public class ServerNode
- extends Object
- implements Serializable
This class represents a server and is used to register an available server
into the lookup service.
This compiled class must be accesible from the lookup service in order to
use the browser utility from Sun's Jini reference implementation. Simply
put the class into reggie-dl.jar for Jini 1.1
- Version:
- 1.0
- Author:
- Stefano Andreani
- See Also:
- Serialized Form
Constructor Summary |
ServerNode(String ip,
int port,
double load)
Constructor for the ServerNode object |
Method Summary |
Entry[] |
getEntries()
Gets the Entries attribute of the ServerNode object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serverIP
public String serverIP
- IP address of the server
serverPort
public Integer serverPort
- Port number associated to the service
serverLoad
public Double serverLoad
- Actual load of this server. It could be useful to realize intelligent
load balancing policies.
ServerNode
public ServerNode(String ip,
int port,
double load)
- Constructor for the ServerNode object
- Parameters:
ip
- IP addressport
- Port numberload
- Actual load of the server
getEntries
public Entry[] getEntries()
- Gets the Entries attribute of the ServerNode object. This method returns
standard fields used by Jini services to lookup a service.
- Returns:
- The Entries value
Copyright © 2001 Stefano Andreani - No Rights Reserved ;-)