|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--universal.Universal
Field Summary | |
java.net.InetAddress |
add
|
(package private) java.net.InetAddress |
add1
|
universal.consensus.Consensus |
cons
Object for the consensus purposes |
universal.leader.Leader |
lead
Object which treats the leader election |
int |
pid
The pid of this server |
int |
port
|
universal.communication.Receiver |
receiver
Object which waits for message comming to the socket |
universal.consensus.register.Register |
reg
Object for the consensus purposes |
universal.messagein.ReplicasAnnounce |
replicasAnnounce
Sends Corba message to the other replicated servers to tell them in which port the TCP socket listen |
java.lang.String |
replicasNameFile
The name of the file which contains the name of the others replicated server and their pid |
universal.communication.Sender |
sender
Object which send message through the socket |
java.net.ServerSocket |
serverSocket
|
private java.util.Date |
startTime
|
(package private) java.lang.Thread |
t
|
int |
totalDel
|
boolean |
waiting
|
Constructor Summary | |
Universal(int pid,
java.lang.String replicasNameFile)
Each replicated servers has one object universal. |
Method Summary | |
private static java.net.InetAddress |
getLocalInetAddress()
|
abstract void |
initializeTasks()
|
void |
initializeUniversal()
Look for a port free to listen. |
void |
startTasks()
Starts the thread ReadListenner, WriteListenner, AckListenner |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private java.util.Date startTime
public int totalDel
public universal.leader.Leader lead
public universal.communication.Receiver receiver
public universal.communication.Sender sender
public universal.messagein.ReplicasAnnounce replicasAnnounce
public final java.net.InetAddress add
java.net.InetAddress add1
public int port
public boolean waiting
public java.net.ServerSocket serverSocket
public universal.consensus.Consensus cons
public universal.consensus.register.Register reg
public int pid
public java.lang.String replicasNameFile
java.lang.Thread t
Constructor Detail |
public Universal(int pid, java.lang.String replicasNameFile)
pid
- the pid of the replicated server.replicasNameFile
- the name of the file which contains the list of the others replicated serversMethod Detail |
private static java.net.InetAddress getLocalInetAddress()
public void initializeUniversal()
public abstract void initializeTasks()
public void startTasks()
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 |