|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.dna.connector.inmemory.InMemoryRepositorySource
public class InMemoryRepositorySource

| Field Summary | |
|---|---|
static int |
DEFAULT_RETRY_LIMIT
The default limit is 0 for retrying connection calls to the underlying source. |
| Constructor Summary | |
|---|---|
InMemoryRepositorySource()
Create a repository source instance. |
|
| Method Summary | |
|---|---|
RepositorySourceCapabilities |
getCapabilities()
Get the capabilities for this source. |
RepositoryConnection |
getConnection()
Get a connection from this source. |
CachePolicy |
getDefaultCachePolicy()
Get the default cache policy for this source, or null if the global default cache policy should be used |
String |
getJndiName()
Gets the JNDI name this source is bound to. |
String |
getName()
Get the name for this repository source. |
Object |
getObjectInstance(Object obj,
Name name,
Context nameCtx,
Hashtable<?,?> environment)
|
Reference |
getReference()
|
RepositoryContext |
getRepositoryContext()
|
int |
getRetryLimit()
Get the maximum number of retries that may be performed on a given operation when using connections created by this source. |
UUID |
getRootNodeUuid()
|
void |
initialize(RepositoryContext context)
Initialize this source to use the supplied RepositoryContext, from which this source can obtain
connections to other sources as well as
execution contexts. |
void |
setDefaultCachePolicy(CachePolicy defaultCachePolicy)
|
void |
setJndiName(String name)
If you use this to set a JNDI name, this source will be bound to that name using the default InitialContext. |
void |
setJndiName(String name,
Context context)
Register this source in JNDI under the supplied name using the supplied context. to set a JNDI name, this source will be bound to that name using the default InitialContext. |
void |
setName(String name)
|
void |
setRetryLimit(int limit)
Set the maximum number of retries that may be performed on a given operation when using connections created by this source. |
void |
setRootNodeUuid(UUID rootNodeUuid)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_RETRY_LIMIT
connection calls to the underlying source.
| Constructor Detail |
|---|
public InMemoryRepositorySource()
| Method Detail |
|---|
public void initialize(RepositoryContext context)
throws RepositorySourceException
RepositoryContext, from which this source can obtain
connections to other sources as well as
execution contexts.
initialize in interface RepositorySourceRepositorySourceExceptionRepositorySource.initialize(org.jboss.dna.graph.connectors.RepositoryContext)public RepositoryContext getRepositoryContext()
public int getRetryLimit()
connections created by this source. This value does not constitute a minimum number of retries; in fact, the connection
user is not required to retry any operations.
getRetryLimit in interface RepositorySourceRepositorySource.getRetryLimit()public void setRetryLimit(int limit)
connections created by this source. This value does not constitute a minimum number of retries; in fact, the connection
user is not required to retry any operations.
setRetryLimit in interface RepositorySourcelimit - the maximum number of allowable retries, or 0 if the source has no limitRepositorySource.setRetryLimit(int)public CachePolicy getDefaultCachePolicy()
public void setDefaultCachePolicy(CachePolicy defaultCachePolicy)
defaultCachePolicy - Sets defaultCachePolicy to the specified value.public UUID getRootNodeUuid()
public void setRootNodeUuid(UUID rootNodeUuid)
rootNodeUuid - Sets rootNodeUuid to the specified value.
public void setJndiName(String name)
throws NamingException
InitialContext. You
can also do this manually if you have additional requirements.
name - the JNDI name
NamingException - if there is a problem registering this objectgetJndiName()
public void setJndiName(String name,
Context context)
throws NamingException
InitialContext. You can also do this manually if you have additional
requirements.
name - the JNDI name, or null if this object is to no longer be registeredcontext - the JNDI context, or null if the InitialContext should be used
NamingException - if there is a problem registering this objectgetJndiName()public String getJndiName()
setJndiName(String)public String getName()
getName in interface RepositorySourcepublic void setName(String name)
name - Sets name to the specified value.
public RepositoryConnection getConnection()
throws RepositorySourceException
getConnection in interface RepositorySourceRepositorySourceException - if there is a problem obtaining a connectionRepositorySource.getConnection()public Reference getReference()
getReference in interface Referenceable
public Object getObjectInstance(Object obj,
Name name,
Context nameCtx,
Hashtable<?,?> environment)
throws Exception
getObjectInstance in interface ObjectFactoryExceptionpublic RepositorySourceCapabilities getCapabilities()
getCapabilities in interface RepositorySourceRepositorySource.getCapabilities()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||