org.ow2.petals.registry.core
Class RemoteRegistryImpl

java.lang.Object
  extended by org.ow2.petals.registry.core.RemoteRegistryImpl
All Implemented Interfaces:
org.ow2.petals.registry.api.lifecycle.LifeCycle, org.ow2.petals.registry.api.Registry, org.ow2.petals.registry.api.RemoteOperations, org.ow2.petals.registry.api.RemoteRegistry

public class RemoteRegistryImpl
extends java.lang.Object
implements org.ow2.petals.registry.api.RemoteRegistry

A Remote Registry access implementation. This is the remote vision from the local container.

Author:
Christophe HAMERLING - eBM WebSourcing

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.ow2.petals.registry.api.lifecycle.LifeCycle
org.ow2.petals.registry.api.lifecycle.LifeCycle.STATE
 
Constructor Summary
RemoteRegistryImpl()
          Creates a new instance of RemoteRegistryImpl
 
Method Summary
 boolean delete(java.lang.String path, 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)
           
 java.util.List<org.ow2.petals.registry.api.Resource> getAll(java.lang.String path, org.ow2.petals.registry.api.Information information)
           
 org.ow2.petals.registry.api.transport.MessageSender getMessageSender()
           
 java.lang.String getName()
           
 org.ow2.petals.registry.api.lifecycle.LifeCycle.STATE getState()
           
 java.net.URI getURI()
           
 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)
           
 java.util.List<org.ow2.petals.registry.api.Resource> query(org.ow2.petals.registry.api.Query query, org.ow2.petals.registry.api.Information info)
           
 void setMessageSender(org.ow2.petals.registry.api.transport.MessageSender messageSender)
           
 void setName(java.lang.String name)
           
 void setURI(java.net.URI uri)
           
 void start()
           
 void stop()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RemoteRegistryImpl

public RemoteRegistryImpl()
Creates a new instance of RemoteRegistryImpl

Method Detail

get

public 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
Specified by:
get in interface org.ow2.petals.registry.api.RemoteOperations
Throws:
org.ow2.petals.registry.api.exception.RegistryException

getAll

public 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
Specified by:
getAll in interface org.ow2.petals.registry.api.RemoteOperations
Throws:
org.ow2.petals.registry.api.exception.RegistryException

put

public 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
Specified by:
put in interface org.ow2.petals.registry.api.RemoteOperations
Throws:
org.ow2.petals.registry.api.exception.RegistryException

delete

public boolean delete(java.lang.String path,
                      org.ow2.petals.registry.api.Information information)
               throws org.ow2.petals.registry.api.exception.RegistryException
Specified by:
delete in interface org.ow2.petals.registry.api.RemoteOperations
Throws:
org.ow2.petals.registry.api.exception.RegistryException

query

public java.util.List<org.ow2.petals.registry.api.Resource> query(org.ow2.petals.registry.api.Query query,
                                                                  org.ow2.petals.registry.api.Information info)
                                                           throws org.ow2.petals.registry.api.exception.RegistryException
Specified by:
query in interface org.ow2.petals.registry.api.RemoteOperations
Throws:
org.ow2.petals.registry.api.exception.RegistryException

getURI

public java.net.URI getURI()
Specified by:
getURI in interface org.ow2.petals.registry.api.RemoteRegistry

getName

public java.lang.String getName()
Specified by:
getName in interface org.ow2.petals.registry.api.Registry

setName

public void setName(java.lang.String name)
Specified by:
setName in interface org.ow2.petals.registry.api.Registry

getState

public org.ow2.petals.registry.api.lifecycle.LifeCycle.STATE getState()
Specified by:
getState in interface org.ow2.petals.registry.api.lifecycle.LifeCycle

init

public void init(org.ow2.petals.registry.api.context.Context context)
          throws org.ow2.petals.registry.api.exception.LifeCycleException
Specified by:
init in interface org.ow2.petals.registry.api.lifecycle.LifeCycle
Throws:
org.ow2.petals.registry.api.exception.LifeCycleException

isInitialized

public boolean isInitialized()
Specified by:
isInitialized in interface org.ow2.petals.registry.api.lifecycle.LifeCycle

isNotInitialized

public boolean isNotInitialized()
Specified by:
isNotInitialized in interface org.ow2.petals.registry.api.lifecycle.LifeCycle

isRunning

public boolean isRunning()
Specified by:
isRunning in interface org.ow2.petals.registry.api.lifecycle.LifeCycle

isStarted

public boolean isStarted()
Specified by:
isStarted in interface org.ow2.petals.registry.api.lifecycle.LifeCycle

isStopped

public boolean isStopped()
Specified by:
isStopped in interface org.ow2.petals.registry.api.lifecycle.LifeCycle

start

public void start()
           throws org.ow2.petals.registry.api.exception.LifeCycleException
Specified by:
start in interface org.ow2.petals.registry.api.lifecycle.LifeCycle
Throws:
org.ow2.petals.registry.api.exception.LifeCycleException

stop

public void stop()
          throws org.ow2.petals.registry.api.exception.LifeCycleException
Specified by:
stop in interface org.ow2.petals.registry.api.lifecycle.LifeCycle
Throws:
org.ow2.petals.registry.api.exception.LifeCycleException

setURI

public void setURI(java.net.URI uri)
Specified by:
setURI in interface org.ow2.petals.registry.api.RemoteRegistry

getMessageSender

public org.ow2.petals.registry.api.transport.MessageSender getMessageSender()
Specified by:
getMessageSender in interface org.ow2.petals.registry.api.RemoteRegistry

setMessageSender

public void setMessageSender(org.ow2.petals.registry.api.transport.MessageSender messageSender)
Specified by:
setMessageSender in interface org.ow2.petals.registry.api.RemoteRegistry

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.