|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dermi.registry.pastry.Registry
public class Registry
This class implements the decentralized object location registry
Nested Class Summary | |
---|---|
protected class |
Registry.NamingCommand
Common superclass for data reception commands. |
Constructor Summary | |
---|---|
Registry(rice.p2p.commonapi.Node pn,
java.util.Properties bunshinProperties)
Constructor for the decentralized registry: entry point and local start |
|
Registry(java.lang.String bunshinProperties)
|
Method Summary | |
---|---|
void |
bind(java.lang.String name,
java.util.Properties ref)
Binds the specified name to a remote object. |
java.util.Collection |
getIncomingLinks(java.lang.String context,
Id id)
|
java.util.Collection |
getOutgoingLinks(java.lang.String context,
Id id)
|
java.util.Hashtable |
getReplicaInfo()
|
java.util.Hashtable |
getStorageInfo()
|
boolean |
insert(Id id,
java.io.Serializable props,
java.lang.String f)
Insert object's metadata into the registry |
boolean |
insert(java.lang.String context,
Id id,
java.io.Serializable props,
java.lang.String f)
|
void |
insert(java.lang.String context,
java.lang.String tokens,
java.lang.String id,
java.io.Serializable value)
|
boolean |
insertSecure(java.lang.String context,
Id id,
java.io.Serializable props,
java.lang.String f,
java.lang.String pass)
|
boolean |
insertSecure(java.lang.String context,
Id id,
java.io.Serializable props,
java.lang.String f,
java.lang.String pass,
boolean getcheck)
|
void |
insertURL(java.lang.String context,
Id id,
java.net.URL url,
java.lang.String f)
|
void |
leave()
It left the Bunshin Application |
java.util.Collection |
list(java.lang.String root)
Returns the list of objects bound below the specified root |
ERemote |
lookup(DermiConnection connection,
java.lang.String name,
java.lang.String communityId,
java.lang.String className)
|
java.io.Serializable |
lookup(Id id)
Returns a serializable object from the decentralized registry |
ERemote |
lookup(java.lang.String name)
Returns a reference, for the remote object associated with the specified name (or null if not bound) |
java.io.Serializable |
lookup(java.lang.String context,
Id id)
|
java.io.Serializable |
lookup(java.lang.String context,
Id id,
java.lang.String f)
|
java.io.Serializable |
lookupSecure(java.lang.String context,
Id id,
java.lang.String f,
java.lang.String pass)
|
java.net.URL |
lookupURL(java.lang.String context,
Id id,
java.lang.String f)
|
void |
modify(java.lang.String context,
Id id,
java.util.Collection values,
java.lang.String f,
boolean add)
|
void |
modify(java.lang.String context,
Id id,
java.lang.Object value,
java.lang.String f,
boolean add)
|
bunshin.util.ResultSortedQueue |
query(java.lang.String context,
java.lang.String query_key)
|
void |
rebind(java.lang.String name,
java.util.Properties ref)
Rebinds the specified name in the registry. |
void |
remove(java.lang.String context,
Id id,
java.lang.String field)
|
void |
remove(java.lang.String context,
java.lang.String tokens,
java.lang.String id)
|
void |
removeRemoteListener(java.lang.String context,
Id id,
java.lang.String f)
|
void |
removeSer(Id id)
|
void |
removeSer(java.lang.String key)
|
void |
setInfoContext(java.lang.String context,
java.lang.String path,
java.lang.String url,
java.net.URL[] URLsList)
|
void |
setRemoteListener(java.lang.String context,
Id id,
bunshin.RemoteListener listener,
java.lang.String f)
|
void |
unbind(java.lang.String name)
Unbinds the specified name from the registry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Registry(java.lang.String bunshinProperties) throws RemoteException
RemoteException
public Registry(rice.p2p.commonapi.Node pn, java.util.Properties bunshinProperties)
pn
- Node Bunshin needs the Pastry node to build itself on top ofMethod Detail |
---|
public void setInfoContext(java.lang.String context, java.lang.String path, java.lang.String url, java.net.URL[] URLsList) throws RemoteException
RemoteException
public void leave() throws RemoteException
RemoteException
- If the connection with the event service fails.public void remove(java.lang.String context, Id id, java.lang.String field)
public void removeSer(Id id)
public void removeSer(java.lang.String key)
public ERemote lookup(java.lang.String name) throws RemoteException
name
- Name of the remote object in the Registry
RemoteException
- If the connection failspublic ERemote lookup(DermiConnection connection, java.lang.String name, java.lang.String communityId, java.lang.String className) throws RemoteException
RemoteException
public java.io.Serializable lookup(Id id) throws RemoteException
id
- Id Object's Id
RemoteException
- If unable to connect to the registrypublic java.io.Serializable lookup(java.lang.String context, Id id) throws RemoteException
RemoteException
public java.io.Serializable lookup(java.lang.String context, Id id, java.lang.String f) throws RemoteException
RemoteException
public java.io.Serializable lookupSecure(java.lang.String context, Id id, java.lang.String f, java.lang.String pass) throws RemoteException
RemoteException
public java.net.URL lookupURL(java.lang.String context, Id id, java.lang.String f) throws RemoteException
RemoteException
public void bind(java.lang.String name, java.util.Properties ref) throws RemoteException
name
- Name of the remote object to be used (should be unique)ref
- Remote object reference to bind
RemoteException
- If the connection with the event service fails.public boolean insert(Id id, java.io.Serializable props, java.lang.String f)
id
- Id Object's Idprops
- Properties Metadata to be insertedboolean
- exclusive - Tells whether inserted value overwrites a previously existing onepublic boolean insert(java.lang.String context, Id id, java.io.Serializable props, java.lang.String f)
public boolean insertSecure(java.lang.String context, Id id, java.io.Serializable props, java.lang.String f, java.lang.String pass)
public boolean insertSecure(java.lang.String context, Id id, java.io.Serializable props, java.lang.String f, java.lang.String pass, boolean getcheck)
public void unbind(java.lang.String name) throws RemoteException
name
- Id of the remote object
dermi.NotBoundException
- - if the Registry does not contains this Id.
dermi.RemoteException
- - if the connection with the event service fails.
RemoteException
public void rebind(java.lang.String name, java.util.Properties ref) throws RemoteException
name
- Id of the remote objectref
- remote object reference to bind
dermi.RemoteException
- - if the connection with the event service fails.
RemoteException
public java.util.Hashtable getStorageInfo()
public java.util.Hashtable getReplicaInfo()
public java.util.Collection list(java.lang.String root) throws RemoteException
root
- Hierarchical root (in the form "p2p://...")
RemoteException
public void insert(java.lang.String context, java.lang.String tokens, java.lang.String id, java.io.Serializable value) throws RemoteException
RemoteException
public bunshin.util.ResultSortedQueue query(java.lang.String context, java.lang.String query_key) throws RemoteException
RemoteException
public void remove(java.lang.String context, java.lang.String tokens, java.lang.String id) throws RemoteException
RemoteException
public void insertURL(java.lang.String context, Id id, java.net.URL url, java.lang.String f)
public void modify(java.lang.String context, Id id, java.lang.Object value, java.lang.String f, boolean add)
public void modify(java.lang.String context, Id id, java.util.Collection values, java.lang.String f, boolean add)
public void setRemoteListener(java.lang.String context, Id id, bunshin.RemoteListener listener, java.lang.String f)
public void removeRemoteListener(java.lang.String context, Id id, java.lang.String f)
public java.util.Collection getIncomingLinks(java.lang.String context, Id id) throws RemoteException
RemoteException
public java.util.Collection getOutgoingLinks(java.lang.String context, Id id) throws RemoteException
RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |