|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.starhope.appius.sys.admin.TheZones
public class TheZones
WRITEME: The documentation for this type (TheZones) is incomplete. (brpocock@star-hope.org, Feb 25, 2010)
Field Summary | |
---|---|
static String |
clusterLeader
The hostname of the cluster leader |
private static TheZones |
dude
WRITEME: document this field (brpocock@star-hope.org, Feb 25, 2010) dude (TheZones) |
static Zone |
loginZone
Users logging in are directed first the this landing zone, and then choose a Zone server to which they wish to connect (if multiple Zones have been established). |
private HashSet<Zone> |
theZones
all zones active around here, known to exist to the cluster |
Constructor Summary | |
---|---|
TheZones()
|
Method Summary | ||
---|---|---|
static boolean |
activateInDB(String zoneName)
mark a zone as being active in the database, and running on this host |
|
boolean |
add(Zone arg0)
This is an overriding method. |
|
boolean |
addAll(Collection<? extends Zone> arg0)
This is an overriding method. |
|
Collection<Zone> |
all()
|
|
static boolean |
claimInDB(String zoneName)
mark a zone as being claimed in the database, and running on this host |
|
void |
clear()
This is an overriding method. |
|
boolean |
contains(Object arg0)
This is an overriding method. |
|
boolean |
containsAll(Collection<?> arg0)
This is an overriding method. |
|
static String |
findClaimedZoneName()
Find a zone name that has been claimed |
|
static AbstractZone |
findLightZone()
Returns a zone rated as being “light” traffic. |
|
static String |
findUnclaimedZoneName()
find a zone name that isn't claimed by any zone server |
|
AbstractZone |
get(String zoneName)
get a zone by its name |
|
TheZones |
getInstance()
WRITEME: document this method (brpocock@star-hope.org, Feb 25, 2010) |
|
Collection<Zone> |
getZonesOn(String serverHostname)
Get all zones found on a given server |
|
boolean |
isEmpty()
This is an overriding method. |
|
Iterator<Zone> |
iterator()
This is an overriding method. |
|
static TheZones |
local()
Get the TheZones object referring to the local cluster |
|
static boolean |
releaseZoneInDB(String zoneName)
WRITEME: Document this method brpocock@star-hope.org |
|
boolean |
remove(AbstractZone whichZone)
Remove a zone from the server |
|
boolean |
remove(Object arg0)
This is an overriding method. |
|
boolean |
removeAll(Collection<?> arg0)
This is an overriding method. |
|
boolean |
retainAll(Collection<?> arg0)
This is an overriding method. |
|
int |
size()
This is an overriding method. |
|
Object[] |
toArray()
This is an overriding method. |
|
|
toArray(T[] arg0)
This is an overriding method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Collection |
---|
equals, hashCode |
Field Detail |
---|
private static final TheZones dude
private final HashSet<Zone> theZones
public static Zone loginZone
public static String clusterLeader
Constructor Detail |
---|
public TheZones()
Method Detail |
---|
public static TheZones local()
public static boolean activateInDB(String zoneName)
mark a zone as being active in the database, and running on this host
XXX: contains SQL
zoneName
- the new zone's name
public static boolean claimInDB(String zoneName)
XXX: contains SQL
zoneName
- the new zone's name
public static String findClaimedZoneName()
XXX: contains SQL
public static AbstractZone findLightZone()
public static String findUnclaimedZoneName()
XXX: contains SQL
public static boolean releaseZoneInDB(String zoneName)
zoneName
- WRITEME
public boolean add(Zone arg0)
add
in interface Collection<Zone>
Collection.add(java.lang.Object)
public boolean addAll(Collection<? extends Zone> arg0)
addAll
in interface Collection<Zone>
Collection.addAll(java.util.Collection)
public Collection<Zone> all()
public void clear()
clear
in interface Collection<Zone>
Collection.clear()
public boolean contains(Object arg0)
contains
in interface Collection<Zone>
Collection.contains(java.lang.Object)
public boolean containsAll(Collection<?> arg0)
containsAll
in interface Collection<Zone>
Collection.containsAll(java.util.Collection)
public AbstractZone get(String zoneName) throws NotFoundException
zoneName
- the name of the zone
NotFoundException
- if the zone is not in this clusterpublic TheZones getInstance()
public Collection<Zone> getZonesOn(String serverHostname)
serverHostname
- the server's host name
public boolean isEmpty()
isEmpty
in interface Collection<Zone>
Collection.isEmpty()
public Iterator<Zone> iterator()
iterator
in interface Iterable<Zone>
iterator
in interface Collection<Zone>
Collection.iterator()
public boolean remove(AbstractZone whichZone)
whichZone
- The zone to be removed
public boolean remove(Object arg0)
remove
in interface Collection<Zone>
Collection.remove(java.lang.Object)
public boolean removeAll(Collection<?> arg0)
removeAll
in interface Collection<Zone>
Collection.removeAll(java.util.Collection)
public boolean retainAll(Collection<?> arg0)
retainAll
in interface Collection<Zone>
Collection.retainAll(java.util.Collection)
public int size()
size
in interface Collection<Zone>
Collection.size()
public Object[] toArray()
toArray
in interface Collection<Zone>
Collection.toArray()
public <T> T[] toArray(T[] arg0)
toArray
in interface Collection<Zone>
java.util.Collection#toArray(T[])
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |