rero.dialogs.server

Class ServerData

public class ServerData extends Object

Field Summary
protected ServerGroupactive
protected ServerGroupallServers
protected static ServerDatadata
protected ArrayListgroupModel
protected TreeMapgroups
protected ServerGrouprandomServers
Constructor Summary
protected ServerData()
Method Summary
voidaddServer(Server server)
voidbuildGroupList()
ArrayListgetAllServers()
ServerGroupgetGroup(String name)
ArrayListgetGroups()
ServergetServerByName(String host)
static ServerDatagetServerData()
ArrayListgetServers()
voidload()
static voidmain(String[] args)
voidremoveServer(Server server)
voidsave()
voidsetActive(ServerGroup a)
voidsort()
voidupdate()

Field Detail

active

protected ServerGroup active

allServers

protected ServerGroup allServers

data

protected static ServerData data

groupModel

protected ArrayList groupModel

groups

protected TreeMap groups

randomServers

protected ServerGroup randomServers

Constructor Detail

ServerData

protected ServerData()

Method Detail

addServer

public void addServer(Server server)

buildGroupList

public void buildGroupList()

getAllServers

public ArrayList getAllServers()

getGroup

public ServerGroup getGroup(String name)

getGroups

public ArrayList getGroups()

getServerByName

public Server getServerByName(String host)

getServerData

public static ServerData getServerData()

getServers

public ArrayList getServers()

load

public void load()

main

public static void main(String[] args)

removeServer

public void removeServer(Server server)

save

public void save()

setActive

public void setActive(ServerGroup a)

sort

public void sort()

update

public void update()