|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
ch.epfl.lpd.ids.client.ClientListFetcher
public class ClientListFetcher
Thread used to retrieve the list of the connected clients. This
thread is started/stopped whenever the user clicks on the
connect/disconnect button of the ClientGUI
.
Field Summary | |
---|---|
protected IServer |
server
The reference to the IServer . |
protected boolean |
started
Boolean to know if the thread has been started or not. |
Constructor Summary | |
---|---|
ClientListFetcher(IServer server,
Observer observer)
Creates a new instance of ClientListFetcher. |
Method Summary | |
---|---|
void |
run()
Main run method that fetch the list of connected chat clients on the server. |
void |
setStarted(boolean bool)
Setter for the started boolean |
Methods inherited from class java.util.Observable |
---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean started
protected IServer server
IServer
. This reference is used to
retrieve the list of connected clients.
Constructor Detail |
---|
public ClientListFetcher(IServer server, Observer observer)
server
- The reference to the IServer
.observer
- The ClientGUI
that
is update evertime a list of clients is retrieved.Method Detail |
---|
public void setStarted(boolean bool)
bool
- The boolean used to set the thread to be started or
not.public void run()
run
in interface Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |