|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectequip.data.DataManager
Dataspace manager, the preferred factory for dataspace clients and
servers. Use this to get dataspace clients and servers; see
getDataspace(equip.net.ServerURL,int,boolean,boolean,equip.data.GUID).
| Nested Class Summary | |
class |
DataManager.DataspaceInfo
Internal class of DataManager |
| Field Summary | |
static int |
DATASPACE_CLIENT
type for a dataspace client |
static int |
DATASPACE_PEER
type for a dataspace peer (not yet implemented) |
static int |
DATASPACE_SERVER
type for a dataspace server |
| Constructor Summary | |
DataManager()
Lifecycle - don't use these - rely on the static singleton |
|
| Method Summary | |
DataProxy |
getDataspace(ServerURL url,
int type,
boolean activateFlag)
Find a dataspace replica in the local cache, else create and add to the cache. |
DataProxy |
getDataspace(ServerURL surl,
int type,
boolean activateFlag,
boolean asyncFlag)
Find a dataspace replica in the local cache, else create and add to the cache. |
DataProxy |
getDataspace(ServerURL surl,
int type,
boolean activateFlag,
boolean asyncFlag,
GUID responsible)
Find a dataspace replica in the local cache, else create and add to the cache. |
DataProxy |
getDataspace(java.lang.String url,
int type,
boolean activateFlag)
Find a dataspace replica in the local cache, else create and add to the cache. |
DataProxy |
getDataspace(java.lang.String url,
int type,
boolean activateFlag,
boolean asyncFlag)
Find a dataspace replica in the local cache, else create and add to the cache. |
DataProxy |
getDataspace(java.lang.String url,
int type,
boolean activateFlag,
boolean asyncFlag,
GUID responsible)
Find a dataspace replica in the local cache, else create and add to the cache. |
DataManager.DataspaceInfo[] |
getDataspaceInfos()
get current data proxies known |
static DataManager |
getInstance()
get singleton data manager (now just uses SingletonManager). |
void |
releaseDataspace(DataProxy dataspace)
Complementary to getDataspace, reduces use count
by one, and removes from internal table if use count falls to 0.
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int DATASPACE_CLIENT
public static final int DATASPACE_SERVER
public static final int DATASPACE_PEER
| Constructor Detail |
public DataManager()
| Method Detail |
public static DataManager getInstance()
SingletonManager).
public DataProxy getDataspace(java.lang.String url,
int type,
boolean activateFlag)
url to a ServerURL,
defaults asyncFlag to false, and
allocates a new random responsible ID (see getDataspace(equip.net.ServerURL,int,boolean,boolean,equip.data.GUID)).
public DataProxy getDataspace(java.lang.String url,
int type,
boolean activateFlag,
boolean asyncFlag)
url to a ServerURL,
and allocates a new random responsible ID (see
getDataspace(String,int,boolean,boolean,GUID)).
public DataProxy getDataspace(java.lang.String url,
int type,
boolean activateFlag,
boolean asyncFlag,
GUID responsible)
url to a ServerURL,
(see getDataspace(String,int,boolean,boolean,GUID)).
public DataProxy getDataspace(ServerURL url,
int type,
boolean activateFlag)
asyncFlag to false, and
allocates a new random responsible ID (see getDataspace(equip.net.ServerURL,int,boolean,boolean,equip.data.GUID)).
public DataProxy getDataspace(ServerURL surl,
int type,
boolean activateFlag,
boolean asyncFlag)
responsible ID (see getDataspace(equip.net.ServerURL,int,boolean,boolean,equip.data.GUID)).
public DataProxy getDataspace(ServerURL surl,
int type,
boolean activateFlag,
boolean asyncFlag,
GUID responsible)
type - DATASPACE_CLIENT, DATASPACE_SERVER or
DATASPACE_PEER (peer is not yet implemented).
(if the dataspace is not already present in the cace).activateFlag - call {link DataProxy#activate} before
returning (caller calls deactivate)
(if the dataspace is not already present in the cace).asyncFlag - if activateFlag is true, then
call DataProxy.activateAsync() rather than
{link DataProxy#activate}
(if the dataspace is not already present in the cace).responsible - Use this GUID as the replica ID
(if the dataspace is not already present in the cace).
DataProxyImpl or
Server dataspace replica.public void releaseDataspace(DataProxy dataspace)
getDataspace, reduces use count
by one, and removes from internal table if use count falls to 0.
Matching calls required for garbage collection to have any chance
of a dataspace.
public DataManager.DataspaceInfo[] getDataspaceInfos()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||