|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.jboss.dna.connector.jbosscache.JBossCacheConnection
public class JBossCacheConnection
The repository connection to a JBoss Cache instance.
| Nested Class Summary | |
|---|---|
protected class |
JBossCacheConnection.Executor
|
| Field Summary | |
|---|---|
protected static org.jboss.dna.graph.connectors.RepositorySourceListener |
NO_OP_LISTENER
|
| Method Summary | |
|---|---|
protected void |
changeNodeName(org.jboss.cache.Node<org.jboss.dna.graph.properties.Name,Object> parent,
org.jboss.dna.graph.properties.Path.Segment existing,
org.jboss.dna.graph.properties.Path.Segment newSegment,
org.jboss.dna.graph.ExecutionContext context)
Changes the name of the node in the cache (but does not update the list of child segments stored on the parent). |
protected boolean |
checkChildren(org.jboss.cache.Node<org.jboss.dna.graph.properties.Name,Object> parent)
|
void |
close()
|
protected int |
copyNode(org.jboss.cache.Node<org.jboss.dna.graph.properties.Name,Object> original,
org.jboss.cache.Node<org.jboss.dna.graph.properties.Name,Object> newParent,
boolean recursive,
org.jboss.dna.graph.properties.Name uuidProperty,
org.jboss.dna.graph.ExecutionContext context)
|
void |
execute(org.jboss.dna.graph.ExecutionContext context,
org.jboss.dna.graph.commands.GraphCommand... commands)
|
protected UUID |
generateUuid()
|
org.jboss.dna.graph.cache.CachePolicy |
getDefaultCachePolicy()
|
protected org.jboss.cache.Fqn<?> |
getFullyQualifiedName(org.jboss.dna.graph.properties.Path.Segment pathSegment)
Get a relative fully-qualified name that consists only of the supplied segment. |
protected org.jboss.cache.Fqn<?> |
getFullyQualifiedName(org.jboss.dna.graph.properties.Path path)
|
protected org.jboss.dna.graph.connectors.RepositorySourceListener |
getListener()
|
protected org.jboss.cache.Node<org.jboss.dna.graph.properties.Name,Object> |
getNode(org.jboss.dna.graph.ExecutionContext context,
org.jboss.dna.graph.properties.Path path)
|
protected org.jboss.dna.graph.properties.Path |
getPath(org.jboss.dna.graph.properties.PathFactory factory,
org.jboss.cache.Fqn<?> fqn)
|
String |
getSourceName()
|
protected org.jboss.dna.graph.properties.Name |
getUuidPropertyName(org.jboss.dna.graph.ExecutionContext context)
Utility method to calculate (if required) and obtain the name that should be used to store the UUID values for each node. |
XAResource |
getXAResource()
|
boolean |
ping(long time,
TimeUnit unit)
|
void |
setListener(org.jboss.dna.graph.connectors.RepositorySourceListener listener)
|
protected org.jboss.dna.graph.properties.Path.Segment |
updateChildList(org.jboss.cache.Node<org.jboss.dna.graph.properties.Name,Object> parent,
org.jboss.dna.graph.properties.Name changedName,
org.jboss.dna.graph.ExecutionContext context,
boolean addChildWithName)
Update (or create) the array of path segments for the children of the supplied node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.jboss.dna.graph.connectors.RepositorySourceListener NO_OP_LISTENER
| Method Detail |
|---|
public String getSourceName()
getSourceName in interface org.jboss.dna.graph.connectors.RepositoryConnectionpublic org.jboss.dna.graph.cache.CachePolicy getDefaultCachePolicy()
getDefaultCachePolicy in interface org.jboss.dna.graph.connectors.RepositoryConnectionpublic XAResource getXAResource()
getXAResource in interface org.jboss.dna.graph.connectors.RepositoryConnection
public boolean ping(long time,
TimeUnit unit)
ping in interface org.jboss.dna.graph.connectors.RepositoryConnectionpublic void setListener(org.jboss.dna.graph.connectors.RepositorySourceListener listener)
setListener in interface org.jboss.dna.graph.connectors.RepositoryConnectionpublic void close()
close in interface org.jboss.dna.graph.connectors.RepositoryConnection
public void execute(org.jboss.dna.graph.ExecutionContext context,
org.jboss.dna.graph.commands.GraphCommand... commands)
throws org.jboss.dna.graph.connectors.RepositorySourceException
execute in interface org.jboss.dna.graph.connectors.RepositoryConnectionorg.jboss.dna.graph.connectors.RepositorySourceExceptionprotected org.jboss.dna.graph.connectors.RepositorySourceListener getListener()
protected org.jboss.dna.graph.properties.Name getUuidPropertyName(org.jboss.dna.graph.ExecutionContext context)
context - the execution context
protected org.jboss.cache.Fqn<?> getFullyQualifiedName(org.jboss.dna.graph.properties.Path path)
protected org.jboss.cache.Fqn<?> getFullyQualifiedName(org.jboss.dna.graph.properties.Path.Segment pathSegment)
pathSegment - the segment from which the fully qualified name is to be created
protected org.jboss.dna.graph.properties.Path getPath(org.jboss.dna.graph.properties.PathFactory factory,
org.jboss.cache.Fqn<?> fqn)
protected org.jboss.cache.Node<org.jboss.dna.graph.properties.Name,Object> getNode(org.jboss.dna.graph.ExecutionContext context,
org.jboss.dna.graph.properties.Path path)
protected UUID generateUuid()
protected int copyNode(org.jboss.cache.Node<org.jboss.dna.graph.properties.Name,Object> original,
org.jboss.cache.Node<org.jboss.dna.graph.properties.Name,Object> newParent,
boolean recursive,
org.jboss.dna.graph.properties.Name uuidProperty,
org.jboss.dna.graph.ExecutionContext context)
protected org.jboss.dna.graph.properties.Path.Segment updateChildList(org.jboss.cache.Node<org.jboss.dna.graph.properties.Name,Object> parent,
org.jboss.dna.graph.properties.Name changedName,
org.jboss.dna.graph.ExecutionContext context,
boolean addChildWithName)
path segments for the children of the supplied node. This array
maintains the ordered list of children (since the Cache does not maintain the order). Invoking this method will
change any existing children that a name part that matches the supplied
changedName to have the appropriate same-name sibling index.
parent - the parent node; may not be nullchangedName - the name that should be compared to the existing node siblings to determine whether the same-name
sibling indexes should be updated; may not be nullcontext - the execution context; may not be nulladdChildWithName - true if a new child with the supplied name is to be added to the children (but which does not yet
exist in the node's children)
addChildWithName was falseprotected boolean checkChildren(org.jboss.cache.Node<org.jboss.dna.graph.properties.Name,Object> parent)
protected void changeNodeName(org.jboss.cache.Node<org.jboss.dna.graph.properties.Name,Object> parent,
org.jboss.dna.graph.properties.Path.Segment existing,
org.jboss.dna.graph.properties.Path.Segment newSegment,
org.jboss.dna.graph.ExecutionContext context)
parent - existing - newSegment - context -
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||