|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ontotext.ordi.wsmo4rdf.remote.server.Registry<EntityType>
public class Registry<EntityType>
Field Summary | |
---|---|
protected static int |
maxEntities
how many entities a register can handle |
Constructor Summary | |
---|---|
Registry(int maxEntities)
|
Method Summary | |
---|---|
void |
clear()
Unregisters all WsmoConnections. |
EntityType |
getById(int entityId)
Return an entity ID as per register index |
static boolean |
isValid(int id)
Verifies if an identifier is in the legal range according to this register limits. |
int |
register(EntityType registryEntity)
Finds a unique ID for an entity and puts it in registry index |
EntityType |
unregister(int id)
Removes entity from this register |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static int maxEntities
Constructor Detail |
---|
public Registry(int maxEntities)
Method Detail |
---|
public static boolean isValid(int id)
id
- identifier to be verified
true
if valid, false
otherwisepublic int register(EntityType registryEntity) throws RegistryFullException
registryEntity
- EntityType instance to be registered
RegistryFullException
- if there is no available space for connectionspublic EntityType unregister(int id)
id
- Integer ID of the RegistryEntity to be removed
null
otherwisepublic void clear()
public EntityType getById(int entityId)
entityId
- Integer ID of looked up entity
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |