|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnathan.middleware.FrontEnd
nathan.middleware.FrontEndHandler
public class FrontEndHandler
FrontEndHandler creates new threads to handle the messages used for active replication. The FrontEndHandler handles all communication between the replicated objects and the server when active replication is used.
Constructor Summary | |
---|---|
FrontEndHandler(java.net.Socket socket)
Creates a new instance of the FrontEndHandler. |
Method Summary | |
---|---|
boolean |
checkIfAlive()
Check that all servers are still alive by sending them are you alive messages. |
Message |
getMessage()
Get the message that was sent to the server. |
Message |
processMessage(Message message)
ProcessMessage send the message to each of the acitve replicas. |
void |
run()
|
void |
sendMessage(Message message)
sendMessage returns the results of a remote invocation to the client. |
void |
start()
Starts a new thread of execution. |
Methods inherited from class nathan.middleware.FrontEnd |
---|
main, runServer, setRegistryInfo |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FrontEndHandler(java.net.Socket socket)
socket
- The socket received from the FrontEnd server.Method Detail |
---|
public void start()
public void run()
run
in interface java.lang.Runnable
Runnable.run()
public Message getMessage()
public void sendMessage(Message message)
message
- The results of the remote invocation.public Message processMessage(Message message)
message
- The message sent from the client to be processed.
public boolean checkIfAlive()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |