org.jboss.profileservice.cluster.repository
Class DefaultRepositoryClusteringHandler.RpcTarget

java.lang.Object
  extended by org.jboss.profileservice.cluster.repository.DefaultRepositoryClusteringHandler.RpcTarget
Enclosing class:
DefaultRepositoryClusteringHandler

public class DefaultRepositoryClusteringHandler.RpcTarget
extends Object


Constructor Summary
DefaultRepositoryClusteringHandler.RpcTarget()
           
 
Method Summary
 void commit(SynchronizationId<org.jboss.ha.framework.interfaces.ClusterNode> id)
           
 void executeModification(SynchronizationId<org.jboss.ha.framework.interfaces.ClusterNode> id, RepositoryItemMetadata item, boolean initiation)
           
 void initiateSynchronization(SynchronizationId<org.jboss.ha.framework.interfaces.ClusterNode> id, List<ContentModification> modifications)
           
 List<ContentModification> joinSynchronizeContent(RepositoryContentMetadata remoteBaseContent, RepositoryContentMetadata remoteCurrentContent)
           
 List<ContentModification> mergeSynchronizeContent(RepositoryContentMetadata remoteCurrentContent)
           
 boolean prepare(SynchronizationId<org.jboss.ha.framework.interfaces.ClusterNode> id)
           
 ByteChunk pullBytes(SynchronizationId<org.jboss.ha.framework.interfaces.ClusterNode> id, RepositoryItemMetadata item)
           
 void pushBytes(SynchronizationId<org.jboss.ha.framework.interfaces.ClusterNode> id, RepositoryItemMetadata item, ByteChunk chunk)
           
 void rollback(SynchronizationId<org.jboss.ha.framework.interfaces.ClusterNode> id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRepositoryClusteringHandler.RpcTarget

public DefaultRepositoryClusteringHandler.RpcTarget()
Method Detail

joinSynchronizeContent

public List<ContentModification> joinSynchronizeContent(RepositoryContentMetadata remoteBaseContent,
                                                        RepositoryContentMetadata remoteCurrentContent)
                                                 throws org.jboss.profileservice.cluster.repository.DefaultRepositoryClusteringHandler.NotSynchronizedException,
                                                        InconsistentRepositoryStructureException
Throws:
org.jboss.profileservice.cluster.repository.DefaultRepositoryClusteringHandler.NotSynchronizedException
InconsistentRepositoryStructureException

mergeSynchronizeContent

public List<ContentModification> mergeSynchronizeContent(RepositoryContentMetadata remoteCurrentContent)
                                                  throws org.jboss.profileservice.cluster.repository.DefaultRepositoryClusteringHandler.NotSynchronizedException,
                                                         InconsistentRepositoryStructureException
Throws:
org.jboss.profileservice.cluster.repository.DefaultRepositoryClusteringHandler.NotSynchronizedException
InconsistentRepositoryStructureException

initiateSynchronization

public void initiateSynchronization(SynchronizationId<org.jboss.ha.framework.interfaces.ClusterNode> id,
                                    List<ContentModification> modifications)
                             throws org.jboss.profileservice.cluster.repository.DefaultRepositoryClusteringHandler.NotSynchronizedException
Throws:
org.jboss.profileservice.cluster.repository.DefaultRepositoryClusteringHandler.NotSynchronizedException

executeModification

public void executeModification(SynchronizationId<org.jboss.ha.framework.interfaces.ClusterNode> id,
                                RepositoryItemMetadata item,
                                boolean initiation)
                         throws org.jboss.profileservice.cluster.repository.DefaultRepositoryClusteringHandler.NotSynchronizedException
Throws:
org.jboss.profileservice.cluster.repository.DefaultRepositoryClusteringHandler.NotSynchronizedException

pushBytes

public void pushBytes(SynchronizationId<org.jboss.ha.framework.interfaces.ClusterNode> id,
                      RepositoryItemMetadata item,
                      ByteChunk chunk)
               throws org.jboss.profileservice.cluster.repository.DefaultRepositoryClusteringHandler.NotSynchronizedException,
                      IOException
Throws:
org.jboss.profileservice.cluster.repository.DefaultRepositoryClusteringHandler.NotSynchronizedException
IOException

pullBytes

public ByteChunk pullBytes(SynchronizationId<org.jboss.ha.framework.interfaces.ClusterNode> id,
                           RepositoryItemMetadata item)
                    throws org.jboss.profileservice.cluster.repository.DefaultRepositoryClusteringHandler.NotSynchronizedException,
                           IOException
Throws:
org.jboss.profileservice.cluster.repository.DefaultRepositoryClusteringHandler.NotSynchronizedException
IOException

prepare

public boolean prepare(SynchronizationId<org.jboss.ha.framework.interfaces.ClusterNode> id)
                throws org.jboss.profileservice.cluster.repository.DefaultRepositoryClusteringHandler.NotSynchronizedException
Throws:
org.jboss.profileservice.cluster.repository.DefaultRepositoryClusteringHandler.NotSynchronizedException

commit

public void commit(SynchronizationId<org.jboss.ha.framework.interfaces.ClusterNode> id)

rollback

public void rollback(SynchronizationId<org.jboss.ha.framework.interfaces.ClusterNode> id)
              throws org.jboss.profileservice.cluster.repository.DefaultRepositoryClusteringHandler.NotSynchronizedException
Throws:
org.jboss.profileservice.cluster.repository.DefaultRepositoryClusteringHandler.NotSynchronizedException


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.