|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.registry.core.manager.GenericOutgoingManagerImpl
public class GenericOutgoingManagerImpl
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.ow2.petals.registry.api.lifecycle.LifeCycle |
|---|
org.ow2.petals.registry.api.lifecycle.LifeCycle.STATE |
| Field Summary | |
|---|---|
protected org.ow2.petals.registry.api.lifecycle.AbstractLifeCycle |
lifeCycle
|
protected java.lang.String |
name
|
protected java.util.Map<java.lang.String,org.ow2.petals.registry.api.RemoteRegistry> |
registries
|
| Constructor Summary | |
|---|---|
GenericOutgoingManagerImpl()
Creates a new instance of OutgoingManager |
|
| Method Summary | |
|---|---|
void |
addRemoteRegistry(org.ow2.petals.registry.api.RemoteRegistry remoteRegistry)
Add a remote registry to the manager. |
boolean |
delete(java.lang.String path,
org.ow2.petals.registry.api.Information information)
Delete the element from the registry. |
protected boolean |
doDelete(java.lang.String key,
org.ow2.petals.registry.api.Information information)
Delete the element from the registry. |
protected org.ow2.petals.registry.api.Resource |
doGet(java.lang.String key,
org.ow2.petals.registry.api.Information information)
Get the element from its path only if the path refers to an element. |
protected java.util.List<org.ow2.petals.registry.api.Resource> |
doGetAll(java.lang.String key,
org.ow2.petals.registry.api.Information information)
Get all the resources in the given path only if the given path is a directory. |
protected boolean |
doPut(java.lang.String key,
org.ow2.petals.registry.api.Resource resource,
org.ow2.petals.registry.api.Information information)
Put a resource in the registry. |
protected java.util.List<org.ow2.petals.registry.api.Resource> |
doQuery(org.ow2.petals.registry.api.Query query,
org.ow2.petals.registry.api.Information information)
|
org.ow2.petals.registry.api.Resource |
get(java.lang.String path,
org.ow2.petals.registry.api.Information information)
Get the element from its path only if the path refers to an element. |
java.util.List<org.ow2.petals.registry.api.Resource> |
getAll(java.lang.String path,
org.ow2.petals.registry.api.Information information)
Get all the resources in the given path only if the given path is a directory. |
org.ow2.petals.registry.api.LocalRegistry |
getLocalRegistry()
Get the local registry which is linked to this manager |
org.ow2.petals.registry.api.lifecycle.LifeCycle.STATE |
getState()
|
void |
init(org.ow2.petals.registry.api.context.Context context)
|
boolean |
isInitialized()
|
boolean |
isNotInitialized()
|
boolean |
isRunning()
|
boolean |
isStarted()
|
boolean |
isStopped()
|
boolean |
put(java.lang.String path,
org.ow2.petals.registry.api.Resource resource,
org.ow2.petals.registry.api.Information information)
Put a resource in the registry. |
java.util.List<org.ow2.petals.registry.api.Resource> |
query(org.ow2.petals.registry.api.Query query,
org.ow2.petals.registry.api.Information information)
|
protected void |
setLifeCycle(org.ow2.petals.registry.api.lifecycle.AbstractLifeCycle lifeCycle)
|
void |
setLocalRegistry(org.ow2.petals.registry.api.LocalRegistry localRegistry)
Set the local registry |
void |
start()
|
void |
stop()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.ow2.petals.registry.api.lifecycle.AbstractLifeCycle lifeCycle
protected java.util.Map<java.lang.String,org.ow2.petals.registry.api.RemoteRegistry> registries
protected java.lang.String name
| Constructor Detail |
|---|
public GenericOutgoingManagerImpl()
| Method Detail |
|---|
public org.ow2.petals.registry.api.LocalRegistry getLocalRegistry()
getLocalRegistry in interface org.ow2.petals.registry.api.manager.IOManagerorg.ow2.petals.registry.api.manager#getLocalRegistry();
public void setLocalRegistry(org.ow2.petals.registry.api.LocalRegistry localRegistry)
throws org.ow2.petals.registry.api.exception.LifeCycleException
setLocalRegistry in interface org.ow2.petals.registry.api.manager.IOManagerlocalRegistry - the local registry
org.ow2.petals.registry.api.exception.LifeCycleExceptionorg.ow2.petals.registry.api.manager#setLocalRegistry(LocalRegistry localRegistry)
public void addRemoteRegistry(org.ow2.petals.registry.api.RemoteRegistry remoteRegistry)
throws org.ow2.petals.registry.api.exception.RegistryException
addRemoteRegistry in interface org.ow2.petals.registry.api.manager.OutgoingManager -
org.ow2.petals.registry.api.exception.RegistryExceptionorg.ow2.petals.registry.api.manager.OutgoingManager#addRemoteRegistry()protected void setLifeCycle(org.ow2.petals.registry.api.lifecycle.AbstractLifeCycle lifeCycle)
lifeCycle -
public void init(org.ow2.petals.registry.api.context.Context context)
throws org.ow2.petals.registry.api.exception.LifeCycleException
init in interface org.ow2.petals.registry.api.lifecycle.LifeCycleorg.ow2.petals.registry.api.exception.LifeCycleException
public void start()
throws org.ow2.petals.registry.api.exception.LifeCycleException
start in interface org.ow2.petals.registry.api.lifecycle.LifeCycleorg.ow2.petals.registry.api.exception.LifeCycleException
public void stop()
throws org.ow2.petals.registry.api.exception.LifeCycleException
stop in interface org.ow2.petals.registry.api.lifecycle.LifeCycleorg.ow2.petals.registry.api.exception.LifeCycleExceptionpublic boolean isRunning()
isRunning in interface org.ow2.petals.registry.api.lifecycle.LifeCyclepublic boolean isStarted()
isStarted in interface org.ow2.petals.registry.api.lifecycle.LifeCyclepublic boolean isStopped()
isStopped in interface org.ow2.petals.registry.api.lifecycle.LifeCyclepublic boolean isInitialized()
isInitialized in interface org.ow2.petals.registry.api.lifecycle.LifeCyclepublic boolean isNotInitialized()
isNotInitialized in interface org.ow2.petals.registry.api.lifecycle.LifeCyclepublic org.ow2.petals.registry.api.lifecycle.LifeCycle.STATE getState()
getState in interface org.ow2.petals.registry.api.lifecycle.LifeCycle
public final boolean put(java.lang.String path,
org.ow2.petals.registry.api.Resource resource,
org.ow2.petals.registry.api.Information information)
throws org.ow2.petals.registry.api.exception.RegistryException
put in interface org.ow2.petals.registry.api.RemoteOperationspath - The path to store the resource into. Contains the parent
directory and the resource identifier (ie : in
/path/to/resource/r1 r1 is the resource identifier) if the
resource already exists override, create a new one if not.resource - The resource to put
org.ow2.petals.registry.api.exception.RegistryExceptionRemoteOperations.put(String path, Resource resource, Information info)
protected boolean doPut(java.lang.String key,
org.ow2.petals.registry.api.Resource resource,
org.ow2.petals.registry.api.Information information)
throws org.ow2.petals.registry.api.exception.RegistryException
path - The path to store the resource into. Contains the parent
directory and the resource identifier (ie : in
/path/to/resource/r1 r1 is the resource identifier) if the
resource already exists override, create a new one if not.resource - The resource to put
org.ow2.petals.registry.api.exception.RegistryException
public final org.ow2.petals.registry.api.Resource get(java.lang.String path,
org.ow2.petals.registry.api.Information information)
throws org.ow2.petals.registry.api.exception.RegistryException
#getAll(String)
get in interface org.ow2.petals.registry.api.RemoteOperationspath -
an - exception there is no resource at the given path or if a
problem occurs.
org.ow2.petals.registry.api.exception.RegistryExceptionRemoteOperations.get(String path, Information info)
protected org.ow2.petals.registry.api.Resource doGet(java.lang.String key,
org.ow2.petals.registry.api.Information information)
throws org.ow2.petals.registry.api.exception.RegistryException
#getAll(String)
path -
an - exception there is no resource at the given path or if a
problem occurs.
org.ow2.petals.registry.api.exception.RegistryException
public final java.util.List<org.ow2.petals.registry.api.Resource> getAll(java.lang.String path,
org.ow2.petals.registry.api.Information information)
throws org.ow2.petals.registry.api.exception.RegistryException
#get(String). Be carefull on
the implementation side when trying to get all the resources of all the
registries. The best way is that the getAll implementation just returns
the resources of the local registry ie its vision of the resources of the
network at the current time.
getAll in interface org.ow2.petals.registry.api.RemoteOperationspath -
org.ow2.petals.registry.api.exception.RegistryException - if the path is not a directory path...RemoteOperations.getAll(String path, Information info)
protected java.util.List<org.ow2.petals.registry.api.Resource> doGetAll(java.lang.String key,
org.ow2.petals.registry.api.Information information)
throws org.ow2.petals.registry.api.exception.RegistryException
#get(String). Be carefull on
the implementation side when trying to get all the resources of all the
registries. The best way is that the getAll implementation just returns
the resources of the local registry ie its vision of the resources of the
network at the current time.
path -
org.ow2.petals.registry.api.exception.RegistryException - if the path is not a directory path...
public final boolean delete(java.lang.String path,
org.ow2.petals.registry.api.Information information)
throws org.ow2.petals.registry.api.exception.RegistryException
delete in interface org.ow2.petals.registry.api.RemoteOperationskey -
org.ow2.petals.registry.api.exception.RegistryExceptionRemoteOperations.delete(String path, Information information)
protected boolean doDelete(java.lang.String key,
org.ow2.petals.registry.api.Information information)
throws org.ow2.petals.registry.api.exception.RegistryException
key -
org.ow2.petals.registry.api.exception.RegistryException
public final java.util.List<org.ow2.petals.registry.api.Resource> query(org.ow2.petals.registry.api.Query query,
org.ow2.petals.registry.api.Information information)
throws org.ow2.petals.registry.api.exception.RegistryException
query in interface org.ow2.petals.registry.api.RemoteOperationsorg.ow2.petals.registry.api.exception.RegistryExceptionRemoteOperations.query(Query query, Information info)
protected java.util.List<org.ow2.petals.registry.api.Resource> doQuery(org.ow2.petals.registry.api.Query query,
org.ow2.petals.registry.api.Information information)
throws org.ow2.petals.registry.api.exception.RegistryException
org.ow2.petals.registry.api.exception.RegistryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||