|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.dna.graph.request.processor.RequestProcessor org.jboss.dna.connector.federation.FederatingRequestProcessor
@NotThreadSafe public class FederatingRequestProcessor
Constructor Summary | |
---|---|
FederatingRequestProcessor(ExecutionContext context,
String sourceName,
Map<String,FederatedWorkspace> workspaces,
FederatedWorkspace defaultWorkspace,
RepositoryConnectionFactory connectionFactory)
Create a command executor that federates (merges) the information from multiple sources described by the source projections for the particular workspace specified by the request(s). |
Method Summary | |
---|---|
void |
close()
Close this processor, allowing it to clean up any open resources. |
void |
process(CloneWorkspaceRequest request)
Process a request to clone an existing workspace as a new workspace. |
void |
process(CopyBranchRequest request)
Process a request to copy a branch into another location. |
void |
process(CreateNodeRequest request)
Process a request to create a node at a specified location. |
void |
process(CreateWorkspaceRequest request)
Process a request to create a new workspace. |
void |
process(DeleteBranchRequest request)
Process a request to delete a branch at a specified location. |
void |
process(DestroyWorkspaceRequest request)
Process a request to permanently destroy a workspace. |
void |
process(GetWorkspacesRequest request)
Process a request to get the information about the available workspaces. |
void |
process(MoveBranchRequest request)
Process a request to move a branch at a specified location into a different location. |
void |
process(ReadAllChildrenRequest request)
Process a request to read all of the children of a node. |
void |
process(ReadAllPropertiesRequest request)
Process a request to read the properties of a node at the supplied location. |
void |
process(ReadNodeRequest request)
Process a request to read the properties and children of a node at the supplied location. |
void |
process(UpdatePropertiesRequest request)
Process a request to remove the specified properties from a node. |
void |
process(VerifyWorkspaceRequest request)
Process a request to verify a named workspace. |
Methods inherited from class org.jboss.dna.graph.request.processor.RequestProcessor |
---|
getExecutionContext, getSourceName, process, process, process, process, process, process, process, process, process, process, process |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FederatingRequestProcessor(ExecutionContext context, String sourceName, Map<String,FederatedWorkspace> workspaces, FederatedWorkspace defaultWorkspace, RepositoryConnectionFactory connectionFactory)
cache
projection
of each workspace
to identify the repository
source
for the cache as well as the rules
for how the paths are mapped in the cache. This
cache will be consulted first for the requested information, and will be kept up to date as changes are made to the
federated information.
context
- the execution context in which the executor will be run; may not be nullsourceName
- the name of the RepositorySource
that is making use of this executor; may not be null or emptyworkspaces
- the configuration for each workspace, keyed by workspace name; may not be nulldefaultWorkspace
- the default workspace; null if there is no defaultconnectionFactory
- the factory for RepositoryConnection
instancesMethod Detail |
---|
public void close()
close
in class RequestProcessor
RequestProcessor.close()
public void process(ReadAllChildrenRequest request)
This method does nothing if the request is null.
process
in class RequestProcessor
request
- the read requestRequestProcessor.process(org.jboss.dna.graph.request.ReadAllChildrenRequest)
public void process(ReadAllPropertiesRequest request)
This method does nothing if the request is null.
process
in class RequestProcessor
request
- the read requestRequestProcessor.process(org.jboss.dna.graph.request.ReadAllPropertiesRequest)
public void process(ReadNodeRequest request)
This method does nothing if the request is null. Unless overridden, this method converts the single request into a
ReadAllChildrenRequest
and a ReadAllPropertiesRequest
.
process
in class RequestProcessor
request
- the read requestRequestProcessor.process(org.jboss.dna.graph.request.ReadNodeRequest)
public void process(CreateNodeRequest request)
This method does nothing if the request is null.
process
in class RequestProcessor
request
- the create requestRequestProcessor.process(org.jboss.dna.graph.request.CreateNodeRequest)
public void process(DeleteBranchRequest request)
This method does nothing if the request is null.
process
in class RequestProcessor
request
- the delete requestRequestProcessor.process(org.jboss.dna.graph.request.DeleteBranchRequest)
public void process(CopyBranchRequest request)
This method does nothing if the request is null.
process
in class RequestProcessor
request
- the copy requestRequestProcessor.process(org.jboss.dna.graph.request.CopyBranchRequest)
public void process(MoveBranchRequest request)
This method does nothing if the request is null.
process
in class RequestProcessor
request
- the move requestRequestProcessor.process(org.jboss.dna.graph.request.MoveBranchRequest)
public void process(UpdatePropertiesRequest request)
This method does nothing if the request is null.
process
in class RequestProcessor
request
- the remove requestRequestProcessor.process(org.jboss.dna.graph.request.UpdatePropertiesRequest)
public void process(VerifyWorkspaceRequest request)
This method does nothing if the request is null.
process
in class RequestProcessor
request
- the requestRequestProcessor.process(org.jboss.dna.graph.request.VerifyWorkspaceRequest)
public void process(GetWorkspacesRequest request)
This method does nothing if the request is null.
process
in class RequestProcessor
request
- the requestRequestProcessor.process(org.jboss.dna.graph.request.GetWorkspacesRequest)
public void process(CreateWorkspaceRequest request)
This method does nothing if the request is null.
process
in class RequestProcessor
request
- the requestRequestProcessor.process(org.jboss.dna.graph.request.CreateWorkspaceRequest)
public void process(CloneWorkspaceRequest request)
This method does nothing if the request is null.
process
in class RequestProcessor
request
- the requestRequestProcessor.process(org.jboss.dna.graph.request.CloneWorkspaceRequest)
public void process(DestroyWorkspaceRequest request)
This method does nothing if the request is null.
process
in class RequestProcessor
request
- the requestRequestProcessor.process(org.jboss.dna.graph.request.DestroyWorkspaceRequest)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |