Package org.jboss.ha.framework.interfaces

Examples of org.jboss.ha.framework.interfaces.SerializableStateTransferResult


      @Override
      protected SerializableStateTransferResult createStateTransferResult(final boolean gotState, final Serializable state,
            final Exception exception)
      {
         return new SerializableStateTransferResult()
         {
            @Override
            public Serializable getState()
            {
               return state;
View Full Code Here


     
      for (Map.Entry<String, HAPartitionStateTransfer> entry : this.initialStateRecipients.entrySet())
      {
         log.debug("Fetching state for " + entry.getKey());
         Future<SerializableStateTransferResult> future = this.getServiceState(entry.getKey());
         SerializableStateTransferResult result = future.get(this.getStateTransferTimeout(), TimeUnit.MILLISECONDS);
         if (result.stateReceived())
         {
            if (result.getStateTransferException() != null)
            {
               throw result.getStateTransferException();
            }

            entry.getValue().setCurrentState(result.getState());
            log.debug("Received state for " + entry.getKey());
         }
         else if (result.getStateTransferException() != null)
         {
            throw result.getStateTransferException();
         }
         else
         {
            log.debug("No state available for " + entry.getKey() + " -- we must be sole member of group");
         }
View Full Code Here

      @Override
      protected SerializableStateTransferResult createStateTransferResult(final boolean gotState, final Serializable state,
            final Exception exception)
      {
         return new SerializableStateTransferResult() {

            public Serializable getState()
            {
               return state;
            }
View Full Code Here

     
      for (Map.Entry<String, HAPartitionStateTransfer> entry : this.initialStateRecipients.entrySet())
      {
         log.debug("Fetching state for " + entry.getKey());
         Future<SerializableStateTransferResult> future = this.getServiceState(entry.getKey());
         SerializableStateTransferResult result = future.get(this.getStateTransferTimeout(), TimeUnit.MILLISECONDS);
         if (result.stateReceived())
         {
            if (result.getStateTransferException() != null)
            {
               throw result.getStateTransferException();
            }
            else
            {
               entry.getValue().setCurrentState(result.getState());
               log.debug("Received state for " + entry.getKey());
            }
         }
         else if (result.getStateTransferException() != null)
         {
            throw result.getStateTransferException();
         }
         else
         {
            log.debug("No state available for " + entry.getKey() + " -- we must be sole member of group");
         }
View Full Code Here

      @Override
      protected SerializableStateTransferResult createStateTransferResult(final boolean gotState, final Serializable state,
            final Exception exception)
      {
         return new SerializableStateTransferResult()
         {
            @Override
            public Serializable getState()
            {
               return state;
View Full Code Here

     
      for (Map.Entry<String, HAPartitionStateTransfer> entry : this.initialStateRecipients.entrySet())
      {
         log.debug("Fetching state for " + entry.getKey());
         Future<SerializableStateTransferResult> future = this.getServiceState(entry.getKey());
         SerializableStateTransferResult result = future.get(this.getStateTransferTimeout(), TimeUnit.MILLISECONDS);
         if (result.stateReceived())
         {
            if (result.getStateTransferException() != null)
            {
               throw result.getStateTransferException();
            }

            entry.getValue().setCurrentState(result.getState());
            log.debug("Received state for " + entry.getKey());
         }
         else if (result.getStateTransferException() != null)
         {
            throw result.getStateTransferException();
         }
         else
         {
            log.debug("No state available for " + entry.getKey() + " -- we must be sole member of group");
         }
View Full Code Here

TOP

Related Classes of org.jboss.ha.framework.interfaces.SerializableStateTransferResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.