nathan.middleware
Class FrontEnd

java.lang.Object
  extended by nathan.middleware.FrontEnd
Direct Known Subclasses:
FrontEndHandler

public class FrontEnd
extends java.lang.Object

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.

Author:
Nathan Balon
Advance Operating Systems CIS 578
University of Michigan Dearborn
Remote Method Invocation Middleware Project

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

FrontEnd

public FrontEnd(int port)
Creates a new instance of FrontEnd

Parameters:
port - the port number the server will run on.

FrontEnd

public FrontEnd()
Creates a new instance of FrontEnd

Method Detail

runServer

public void runServer()
Runs the server by creating new threads to handle messages as they come in.


setRegistryInfo

public void setRegistryInfo(java.lang.String address,
                            int port)
Set the information about the registry that the replication manager will use.

Parameters:
address - The address of the registry.
port - The port number of the registry.

main

public static void main(java.lang.String[] args)
The main entry point into the active replication manager.

Parameters:
args - The command line arguments.