org.jboss.dna.connector.federation
Class FederatedRepositoryConnection

java.lang.Object
  extended by org.jboss.dna.connector.federation.FederatedRepositoryConnection
All Implemented Interfaces:
org.jboss.dna.graph.connectors.RepositoryConnection

@ThreadSafe
public class FederatedRepositoryConnection
extends Object
implements org.jboss.dna.graph.connectors.RepositoryConnection

Author:
Randall Hauch

Field Summary
protected static org.jboss.dna.graph.connectors.RepositorySourceListener NO_OP_LISTENER
           
 
Constructor Summary
protected FederatedRepositoryConnection(FederatedRepository repository, String sourceName)
           
 
Method Summary
 void close()
          
 void execute(org.jboss.dna.graph.ExecutionContext context, org.jboss.dna.graph.commands.GraphCommand... commands)
          
 org.jboss.dna.graph.cache.CachePolicy getDefaultCachePolicy()
          
protected  FederatedRepository getRepository()
           
 String getSourceName()
          
 XAResource getXAResource()
          
 boolean ping(long time, TimeUnit unit)
          
 void setListener(org.jboss.dna.graph.connectors.RepositorySourceListener listener)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_OP_LISTENER

protected static final org.jboss.dna.graph.connectors.RepositorySourceListener NO_OP_LISTENER
Constructor Detail

FederatedRepositoryConnection

protected FederatedRepositoryConnection(FederatedRepository repository,
                                        String sourceName)
Method Detail

getRepository

protected FederatedRepository getRepository()
Returns:
repository

getSourceName

public String getSourceName()

Specified by:
getSourceName in interface org.jboss.dna.graph.connectors.RepositoryConnection

getDefaultCachePolicy

public org.jboss.dna.graph.cache.CachePolicy getDefaultCachePolicy()

Specified by:
getDefaultCachePolicy in interface org.jboss.dna.graph.connectors.RepositoryConnection

getXAResource

public XAResource getXAResource()

Specified by:
getXAResource in interface org.jboss.dna.graph.connectors.RepositoryConnection

setListener

public void setListener(org.jboss.dna.graph.connectors.RepositorySourceListener listener)

Specified by:
setListener in interface org.jboss.dna.graph.connectors.RepositoryConnection

ping

public boolean ping(long time,
                    TimeUnit unit)

Specified by:
ping in interface org.jboss.dna.graph.connectors.RepositoryConnection

execute

public void execute(org.jboss.dna.graph.ExecutionContext context,
                    org.jboss.dna.graph.commands.GraphCommand... commands)
             throws org.jboss.dna.graph.connectors.RepositorySourceException

Specified by:
execute in interface org.jboss.dna.graph.connectors.RepositoryConnection
Throws:
org.jboss.dna.graph.connectors.RepositorySourceException

close

public void close()

Specified by:
close in interface org.jboss.dna.graph.connectors.RepositoryConnection


Copyright © 2008-Present JBoss a division of Red Hat. All Rights Reserved.