|
||||||||||
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 UniverseRegistry
theUniverse
- ID for the universe to access
UniverseException
public Universe getAccessor(java.lang.String name) throws UniverseException
getAccessor
in interface UniverseRegistry
name
- the name
UniverseException
public Clearance getClearance(UniverseID theUniverse) throws UniverseException
getClearance
in interface UniverseRegistry
theUniverse
- ID for the universe to access
UniverseException
public Clearance getClearance(java.lang.String name) throws UniverseException
getClearance
in interface UniverseRegistry
name
- the local name
UniverseException
public void register(int type, ThingsPropertyView config) throws UniverseException
register
in interface UniverseRegistry
type
- numeric as specific in this classconfig
- information
UniverseException
public void loadRegistry(ThingsPropertyView config) throws UniverseException
loadRegistry
in interface UniverseRegistry
config
- a configuration node
UniverseException
ThingsPropertyView
public void safetyTheRegistry() throws UniverseException
safetyTheRegistry
in interface UniverseRegistry
UniverseException
public void verboseOn(StringPoster poster) throws ThingsException
verboseOn
in interface Verbose
poster
- StringPoster where to put the debug info
ThingsException
public void verboseOff()
verboseOff
in interface Verbose
public void screech(java.lang.String message)
screech
in interface Verbose
message
- 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 |