org.ow2.petals.communication.jndi.agent
Class AbstractJNDIAgentServiceImpl

java.lang.Object
  extended by org.ow2.petals.communication.jndi.agent.AbstractJNDIAgentServiceImpl
All Implemented Interfaces:
JNDIAgentService
Direct Known Subclasses:
StandaloneJNDIAgentServiceImpl

public abstract class AbstractJNDIAgentServiceImpl
extends java.lang.Object
implements JNDIAgentService

The abstract implementation of the PEtALS JNDI agent JNDIAgentService .

Since:
Petals 2.0
Author:
alouis, rnaudin

Field Summary
protected  java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.io.Serializable>> data
          Data stored in this distributed registry
protected  DomainConfiguration domainConfiguration
          The domain configuration
static java.lang.String INITIAL_CONTEXT
           
protected  org.ow2.petals.util.LoggingUtil log
          Logging utility
protected  RegistryUtil registryUtil
          Registry utility
 
Fields inherited from interface org.ow2.petals.communication.jndi.agent.JNDIAgentService
ENVIRONMENT_LOCAL_CONNECTION, JNDI_PETALS_FACTORY
 
Constructor Summary
AbstractJNDIAgentServiceImpl()
           
 
Method Summary
abstract  boolean containsContext(java.lang.String key)
          Check if a naming Context matching the given key exits.
abstract  java.util.Map<java.lang.String,java.io.Serializable> getContext(java.lang.String key)
          Get the Naming Context matching the given key.
 DomainConfiguration getDomainConfiguration()
           
 org.ow2.petals.util.LoggingUtil getLog()
           
 java.lang.Object processRequest(RegistryRequest request)
          Process the given JNDI request.
abstract  void removeContext(java.lang.String key)
          Remove the naming Context matching the given key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INITIAL_CONTEXT

public static final java.lang.String INITIAL_CONTEXT
See Also:
Constant Field Values

domainConfiguration

protected DomainConfiguration domainConfiguration
The domain configuration


log

protected org.ow2.petals.util.LoggingUtil log
Logging utility


data

protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.io.Serializable>> data
Data stored in this distributed registry


registryUtil

protected RegistryUtil registryUtil
Registry utility

Constructor Detail

AbstractJNDIAgentServiceImpl

public AbstractJNDIAgentServiceImpl()
Method Detail

processRequest

public java.lang.Object processRequest(RegistryRequest request)
                                throws javax.naming.NamingException
Description copied from interface: JNDIAgentService
Process the given JNDI request.

Specified by:
processRequest in interface JNDIAgentService
Parameters:
request - the request
Returns:
The response
Throws:
javax.naming.NamingException

getLog

public org.ow2.petals.util.LoggingUtil getLog()

getDomainConfiguration

public DomainConfiguration getDomainConfiguration()

containsContext

public abstract boolean containsContext(java.lang.String key)
                                 throws javax.naming.ServiceUnavailableException
Check if a naming Context matching the given key exits.

Parameters:
key -
Returns:
true if it exists
Throws:
javax.naming.ServiceUnavailableException

getContext

public abstract java.util.Map<java.lang.String,java.io.Serializable> getContext(java.lang.String key)
                                                                         throws javax.naming.ServiceUnavailableException
Get the Naming Context matching the given key. Create a new Naming Context if it doesn't exist.

Parameters:
key - The key bound to the Naming Context
Returns:
The matching Naming Context map
Throws:
javax.naming.NotContextException
javax.naming.ServiceUnavailableException

removeContext

public abstract void removeContext(java.lang.String key)
                            throws javax.naming.ServiceUnavailableException
Remove the naming Context matching the given key.

Parameters:
key -
Throws:
javax.naming.ServiceUnavailableException


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