|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectthings.universe.server.UniverseRegistry_Simple
public class UniverseRegistry_Simple
A simple universe registry. It'll manage a properties based registry. The configuration will snapshot'd when the registry starts. It will never save.
REGISTRY DATA for ALL:
CONFIG_LIST list=u1,u2 List of names. Names may not have whitespace.
CONFIG_ROOT root=u1
REGISTRY DATA for UNIVERSE_LOCAL:
u1.id=
u1.type=local
u1.path=
Version History
EPG - Initial - 18 MAY 04
| Field Summary |
|---|
| Fields inherited from interface things.universe.UniverseRegistry |
|---|
UNIVERSE_INVALID, UNIVERSE_LOCAL, UNIVERSE_LOCAL_name |
| Constructor Summary | |
|---|---|
UniverseRegistry_Simple()
|
|
| Method Summary | |
|---|---|
Universe |
getAccessor(java.lang.String name)
Get an accessor to a universe by local name. |
Universe |
getAccessor(UniverseID theUniverse)
Manufacture an accessor to a universe. |
Clearance |
getClearance(java.lang.String name)
Get an clearance for a universe by localName |
Clearance |
getClearance(UniverseID theUniverse)
Get an clearance for a universe by id. |
boolean |
isVerbose()
Is it set to verbose? |
void |
loadRegistry(ThingsPropertyView config)
Load a registry from a configuration node. |
void |
register(int type,
ThingsPropertyView config)
Register a universe. |
void |
safetyTheRegistry()
Safety the Registry. |
void |
screech(java.lang.String message)
Post a verbose message if verbose mode is on. |
void |
verboseOff()
Turn it off |
void |
verboseOn(StringPoster poster)
Turn on. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UniverseRegistry_Simple()
| Method Detail |
|---|
public Universe getAccessor(UniverseID theUniverse)
throws UniverseException
getAccessor in interface UniverseRegistrytheUniverse - ID for the universe to access
UniverseException
public Universe getAccessor(java.lang.String name)
throws UniverseException
getAccessor in interface UniverseRegistryname - the name
UniverseException
public Clearance getClearance(UniverseID theUniverse)
throws UniverseException
getClearance in interface UniverseRegistrytheUniverse - ID for the universe to access
UniverseException
public Clearance getClearance(java.lang.String name)
throws UniverseException
getClearance in interface UniverseRegistryname - the local name
UniverseException
public void register(int type,
ThingsPropertyView config)
throws UniverseException
register in interface UniverseRegistrytype - numeric as specific in this classconfig - information
UniverseException
public void loadRegistry(ThingsPropertyView config)
throws UniverseException
loadRegistry in interface UniverseRegistryconfig - a configuration node
UniverseExceptionThingsPropertyView
public void safetyTheRegistry()
throws UniverseException
safetyTheRegistry in interface UniverseRegistryUniverseException
public void verboseOn(StringPoster poster)
throws ThingsException
verboseOn in interface Verboseposter - StringPoster where to put the debug info
ThingsExceptionpublic void verboseOff()
verboseOff in interface Verbosepublic void screech(java.lang.String message)
screech in interface Verbosemessage - The message.public boolean isVerbose()
isVerbose in interface Verbose
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||