|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectome.services.blitz.util.ServantHolder
public class ServantHolder
Manager for all active servants in a single ServiceFactoryI
.
To reduce the need of using Util.stringToIdentity(String)
and
Util.identityToString(Ice.Identity)
the servant tries to make the
two usages equivalent.
Constructor Summary | |
---|---|
ServantHolder()
|
Method Summary | |
---|---|
void |
acquireLock(String key)
Acquires the given lock or if necessary creates a new one. |
Ice.Object |
get(Ice.Identity id)
|
Ice.Object |
get(String key)
|
List<String> |
getServantList()
|
void |
put(String key,
Ice.Object servant)
|
void |
releaseLock(String key)
Releases the given lock if found, otherwise throws an InternalException |
Ice.Object |
remove(Ice.Identity id)
|
Ice.Object |
remove(String key)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServantHolder()
Method Detail |
---|
public void acquireLock(String key)
key
- public void releaseLock(String key)
InternalException
public Ice.Object get(String key)
public Ice.Object get(Ice.Identity id)
public void put(String key, Ice.Object servant)
public Ice.Object remove(String key)
public Ice.Object remove(Ice.Identity id)
public List<String> getServantList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: Beta-4.1.1-r5927-b91
Copyright © 2009 The University of Dundee. All Rights Reserved.