com.realtime.crossfire.jxclient.metaserver
Class Metaserver

java.lang.Object
  extended by com.realtime.crossfire.jxclient.metaserver.Metaserver

public class Metaserver
extends java.lang.Object


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

EXPIRE_INTERVAL

private static final long EXPIRE_INTERVAL
The time (in seconds) to forget about old metaserver entries.

See Also:
Constant Field Values

guiStateListener

@NotNull
private final GuiStateListener guiStateListener
The GuiStateListener for detecting established or dropped connections.


METASERVER_URL

@NotNull
private static final java.lang.String METASERVER_URL
The metaserver URL.

See Also:
Constant Field Values

metaserverModel

@NotNull
private final MetaserverModel metaserverModel
The MetaserverModel instance to update.


metaserverProcessor

@NotNull
private final MetaserverProcessor metaserverProcessor
The MetaserverProcessor used for metaserver queries.


serverCache

@NotNull
private final ServerCache serverCache
The cached metaserver entries.

Constructor Detail

Metaserver

public Metaserver(@NotNull
                  java.io.File metaserverCacheFile,
                  @NotNull
                  MetaserverModel metaserverModel,
                  @NotNull
                  GuiStateManager guiStateManager)
Create a new instance.

Parameters:
metaserverCacheFile - The metaserver cache file.
metaserverModel - the metaserver model instance to update
guiStateManager - the gui state manager to watch
Method Detail

updateMetaList

public void updateMetaList()
Update the contents of metaserverModel.