|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnathan.middleware.FrontEnd
public class FrontEnd
FrontEnd is the front end used for fault tolerance by implementing active
replication of the objects in the system. The front is responisible for for
sending messages on behalf of the client to all of the replicated objects.
To run the front end: FrontEnd [Name] [Registry IP] [RegistryPort] [FrontEnd Port].
Name is the name of the used to bind the front end in the registry.
Registry IP is the ip address of the registry the front end wish to bind
the replicated object to.
Registry Port is the port number that the registry is listening on.
FrontEnd Port is the port number that the port will listen on.
Constructor Summary | |
---|---|
FrontEnd()
Creates a new instance of FrontEnd |
|
FrontEnd(int port)
Creates a new instance of FrontEnd |
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
The main entry point into the active replication manager. |
void |
runServer()
Runs the server by creating new threads to handle messages as they come in. |
void |
setRegistryInfo(java.lang.String address,
int port)
Set the information about the registry that the replication manager will use. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FrontEnd(int port)
port
- the port number the server will run on.public FrontEnd()
Method Detail |
---|
public void runServer()
public void setRegistryInfo(java.lang.String address, int port)
address
- The address of the registry.port
- The port number of the registry.public static void main(java.lang.String[] args)
args
- The command line arguments.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |