|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectthings.thinger.kernel.ResourceCoordinator
public class ResourceCoordinator
A resource coordinator. This is mostly a helper for the Kernel. This is where use of IDs went bad in this project. It would have taken a lot of work to fully abstract id operations, so we pretty much just use string representations.
Version History
EPG - Initial - 12 FEB 06
Constructor Summary | |
---|---|
ResourceCoordinator(WhoAmI id)
Constructor. |
Method Summary | |
---|---|
ResourceManager |
getResource(java.lang.String name)
Get a resource by name. |
ResourceManager |
getResource(WhoAmI id)
Get a resource by ID. |
boolean |
isRegistered(java.lang.String name)
Check to see if the resource is registered. |
boolean |
isRegistered(WhoAmI id)
Check to see if the resource is registered. |
ResourceManager |
registerResource(ResourceInterface aResource,
java.lang.String name)
Register a resource. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceCoordinator(WhoAmI id) throws SystemException
id
- The ID of the ResourceCoordinator.
SystemException
WhoAmI
Method Detail |
---|
public ResourceManager registerResource(ResourceInterface aResource, java.lang.String name) throws SystemException
aResource
- The resource to register.name
- The name of the resource. This can be unique to this registration.
SystemException
WhoAmI
public ResourceManager getResource(WhoAmI id) throws SystemException
id
- The WhoAmI ID of the resource.
SystemException
ResourceManager
public ResourceManager getResource(java.lang.String name) throws SystemException
name
- The name of the resource. This should be the name used to register it and not a WhoAmI string.
SystemException
ResourceManager
public boolean isRegistered(WhoAmI id) throws SystemException
id
- The WhoAmI ID of the resource. This is the ID provided by the coordinator in the ResourceManager.
SystemException
public boolean isRegistered(java.lang.String name) throws SystemException
name
- The name of the resource. This should be the name used to register it and not a WhoAmI string.
SystemException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |