|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Naming
Interface to the Naming class. It follows the singleton design pattern.
Method Summary | |
---|---|
void |
bind(java.lang.String name,
ERemote ref)
Binds the specified name to a remote object. |
void |
bind(java.lang.String name,
java.util.Properties env)
Binds the specified name to a remote object. |
void |
bindRoot()
Special root ("p2p://") bind method |
boolean |
bindSecure(java.lang.String context,
Id id,
java.io.Serializable object,
java.lang.String pass)
|
boolean |
bindSecure(java.lang.String context,
Id id,
java.io.Serializable object,
java.lang.String pass,
boolean getcheck)
|
boolean |
bindSer(Id id,
java.io.Serializable object)
|
boolean |
bindSer(java.lang.String context,
Id id,
java.io.Serializable object)
|
boolean |
bindSer(java.lang.String name,
java.io.Serializable object)
|
boolean |
bindSer(java.lang.String context,
java.lang.String name,
java.io.Serializable object)
|
DermiConnection |
getConnection()
Method used to get the connection to the node (for reutilization purposes) |
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()
|
void |
insert(java.lang.String context,
java.lang.String keywords,
java.lang.String key,
java.io.Serializable value)
|
void |
insertURL(java.lang.String context,
Id id,
java.net.URL url,
java.lang.String field)
|
boolean |
isConnected()
Method used to know if the registry is already connected to a node |
void |
leave()
It closes the connection and kills the node |
java.util.Collection |
list(java.lang.String root)
Returns a Vector of the names bound in the registry. |
void |
loadRegistry(java.lang.String ref)
It connects to the Registry (by creating a node!) |
ERemote |
lookup(java.lang.String name)
Returns a reference, a stub, for the remote object associated with the specified name. |
ERemote |
lookup(java.lang.String name,
java.lang.String communityId,
java.lang.String className)
Returns a reference, a stub, for the remote object associated with the specified name. |
java.io.Serializable |
lookupSecure(java.lang.String context,
Id id,
java.lang.String pass)
|
java.io.Serializable |
lookupSer(java.lang.String componentURL)
Returns a serializable object associated with the specified name. |
java.io.Serializable |
lookupSer(java.lang.String context,
Id id)
Returns a serializable object associated with the specified name. |
java.io.Serializable |
lookupSer(java.lang.String context,
Id id,
java.lang.String field)
|
java.io.Serializable |
lookupSer(java.lang.String context,
java.lang.String componentURL)
|
java.net.URL |
lookupURL(java.lang.String context,
Id id,
java.lang.String field)
|
void |
modify(java.lang.String context,
Id id,
java.util.Collection values,
java.lang.String field,
boolean add)
|
void |
modify(java.lang.String context,
Id id,
java.lang.Object value,
java.lang.String field,
boolean add)
|
bunshin.util.ResultSortedQueue |
query(java.lang.String context,
java.lang.String keywords)
|
void |
rebind(java.lang.String name,
ERemote ref)
Rebinds the specified name in the registry. |
void |
remove(java.lang.String context,
java.lang.String keywords,
java.lang.String key)
|
void |
removeRemoteListener(java.lang.String context,
Id id,
java.lang.String field)
|
void |
removeSer(Id id)
|
void |
removeSer(java.lang.String key)
|
void |
removeSer(java.lang.String context,
Id id,
java.lang.String field)
|
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 field)
|
void |
unbind(java.lang.String name)
Unbinds the specified name from a remote object. |
Method Detail |
---|
void loadRegistry(java.lang.String ref) throws RemoteException
ref
- Name of properties file containing connection parameters.
RemoteException
- If the connection with the event service fails.void setInfoContext(java.lang.String context, java.lang.String path, java.lang.String url, java.net.URL[] URLsList) throws RemoteException
RemoteException
void leave() throws RemoteException
RemoteException
- If the connection with the event service fails.ERemote lookup(java.lang.String name) throws RemoteException
name
- Id of the remote object in the Registry
RemoteException
- If the connection with the event service fails.ERemote lookup(java.lang.String name, java.lang.String communityId, java.lang.String className) throws RemoteException
name
- Id of the remote object in the RegistrycommunityId
- Id of the community where the object is to be activated (if necessary)
RemoteException
- If the connection with the event service fails.java.io.Serializable lookupSer(java.lang.String context, Id id) throws RemoteException
String
- object's url
RemoteException
- If the connection with the event service fails.java.io.Serializable lookupSer(java.lang.String context, Id id, java.lang.String field) throws RemoteException
RemoteException
java.net.URL lookupURL(java.lang.String context, Id id, java.lang.String field) throws RemoteException
RemoteException
java.io.Serializable lookupSer(java.lang.String componentURL) throws RemoteException
String
- object's url
RemoteException
- If the connection with the event service fails.java.io.Serializable lookupSer(java.lang.String context, java.lang.String componentURL) throws RemoteException
RemoteException
void removeSer(Id id) throws RemoteException
RemoteException
void removeSer(java.lang.String key) throws RemoteException
RemoteException
void removeSer(java.lang.String context, Id id, java.lang.String field) throws RemoteException
RemoteException
boolean isConnected()
DermiConnection getConnection()
void bind(java.lang.String name, ERemote ref) throws RemoteException
name
- Id of the remote objectref
- remote object reference to bind
RemoteException
- If the connection with the event service fails.void bind(java.lang.String name, java.util.Properties env) throws RemoteException
name
- Id of the remote objectenv
- Object properties
RemoteException
- If the connection with the event service fails.void unbind(java.lang.String name) throws RemoteException
name
- Id of the remote object
RemoteException
- If the connection with the event service fails.void bindRoot() throws RemoteException
RemoteException
- If the connection with the event service fails.void rebind(java.lang.String name, ERemote ref) throws RemoteException
name
- Id of the remote objectref
- remote object reference to bind
RemoteException
- If the connection with the event service fails.java.util.Collection list(java.lang.String root) throws RemoteException
dermi.RemoteException
- If the connection with the event service fails.
RemoteException
boolean bindSer(Id id, java.io.Serializable object) throws RemoteException
RemoteException
boolean bindSer(java.lang.String context, Id id, java.io.Serializable object) throws RemoteException
RemoteException
boolean bindSer(java.lang.String context, java.lang.String name, java.io.Serializable object) throws RemoteException
RemoteException
boolean bindSer(java.lang.String name, java.io.Serializable object) throws RemoteException
RemoteException
java.util.Hashtable getStorageInfo() throws RemoteException
RemoteException
java.util.Hashtable getReplicaInfo() throws RemoteException
RemoteException
boolean bindSecure(java.lang.String context, Id id, java.io.Serializable object, java.lang.String pass) throws RemoteException
RemoteException
boolean bindSecure(java.lang.String context, Id id, java.io.Serializable object, java.lang.String pass, boolean getcheck) throws RemoteException
RemoteException
java.io.Serializable lookupSecure(java.lang.String context, Id id, java.lang.String pass) throws RemoteException
RemoteException
void insertURL(java.lang.String context, Id id, java.net.URL url, java.lang.String field) throws RemoteException
RemoteException
void modify(java.lang.String context, Id id, java.lang.Object value, java.lang.String field, boolean add) throws RemoteException
RemoteException
void modify(java.lang.String context, Id id, java.util.Collection values, java.lang.String field, boolean add) throws RemoteException
RemoteException
void setRemoteListener(java.lang.String context, Id id, bunshin.RemoteListener listener, java.lang.String field) throws RemoteException
RemoteException
void removeRemoteListener(java.lang.String context, Id id, java.lang.String field) throws RemoteException
RemoteException
java.util.Collection getOutgoingLinks(java.lang.String context, Id id) throws RemoteException
RemoteException
java.util.Collection getIncomingLinks(java.lang.String context, Id id) throws RemoteException
RemoteException
void insert(java.lang.String context, java.lang.String keywords, java.lang.String key, java.io.Serializable value) throws RemoteException
RemoteException
bunshin.util.ResultSortedQueue query(java.lang.String context, java.lang.String keywords) throws RemoteException
RemoteException
void remove(java.lang.String context, java.lang.String keywords, java.lang.String key) throws RemoteException
RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |