|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmapping.AvailabilityServer
public class AvailabilityServer
Constructor Summary | |
---|---|
AvailabilityServer(Mapper mapper)
Default constructor. |
Method Summary | |
---|---|
int |
getAvailablityPort()
|
Logger |
getLogger()
|
Mapper |
getMapper()
|
boolean |
isAlive()
|
void |
run()
In the run method, this thread listens on a port for aj values sent by the Servers and change the servers table accordingly. |
void |
setAlive(boolean alive)
|
void |
setAvailablityPort(int availablityPort)
|
void |
setLogger(Logger logger)
|
void |
setMapper(Mapper mapper)
|
void |
startServer()
This method starts the the thread. |
void |
stopServer()
This method stops the the server and the thread. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AvailabilityServer(Mapper mapper)
mapper
- to set the mapper fieldMethod Detail |
---|
public boolean isAlive()
public void setAlive(boolean alive)
public int getAvailablityPort()
public void setAvailablityPort(int availablityPort)
public Mapper getMapper()
public void setMapper(Mapper mapper)
public Logger getLogger()
public void setLogger(Logger logger)
public void startServer()
public void stopServer()
public void run()
run
in interface java.lang.Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |