java.lang.Object com.realtime.crossfire.jxclient.metaserver.Metaserver
public class Metaserver
Field Summary | |
---|---|
private static long |
EXPIRE_INTERVAL
The time (in seconds) to forget about old metaserver entries. |
private GuiStateListener |
guiStateListener
The GuiStateListener for detecting established or dropped
connections. |
private static java.lang.String |
METASERVER_URL
The metaserver URL. |
private MetaserverModel |
metaserverModel
The MetaserverModel instance to update. |
private MetaserverProcessor |
metaserverProcessor
The MetaserverProcessor used for metaserver queries. |
private ServerCache |
serverCache
The cached metaserver entries. |
Constructor Summary | |
---|---|
Metaserver(java.io.File metaserverCacheFile,
MetaserverModel metaserverModel,
GuiStateManager guiStateManager)
Create a new instance. |
Method Summary | |
---|---|
void |
updateMetaList()
Update the contents of metaserverModel . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long EXPIRE_INTERVAL
@NotNull private final GuiStateListener guiStateListener
GuiStateListener
for detecting established or dropped
connections.
@NotNull private static final java.lang.String METASERVER_URL
@NotNull private final MetaserverModel metaserverModel
MetaserverModel
instance to update.
@NotNull private final MetaserverProcessor metaserverProcessor
MetaserverProcessor
used for metaserver queries.
@NotNull private final ServerCache serverCache
Constructor Detail |
---|
public Metaserver(@NotNull java.io.File metaserverCacheFile, @NotNull MetaserverModel metaserverModel, @NotNull GuiStateManager guiStateManager)
metaserverCacheFile
- The metaserver cache file.metaserverModel
- the metaserver model instance to updateguiStateManager
- the gui state manager to watchMethod Detail |
---|
public void updateMetaList()
metaserverModel
.