GemFire 5.8

com.gemstone.gemfire.cache
Class CommitDistributionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.gemstone.gemfire.GemFireException
                  extended by com.gemstone.gemfire.cache.CacheRuntimeException
                      extended by com.gemstone.gemfire.cache.RoleException
                          extended by com.gemstone.gemfire.cache.CommitDistributionException
All Implemented Interfaces:
Serializable

public class CommitDistributionException
extends RoleException

Indicates that an attempt to notify required participants of a transaction involving one or more regions that are configured with MembershipAttributes may have failed. The commit itself was completed but one or more regions affected by the transaction have one or more required roles that were not successfully notified. Failure may be caused by departure of one or more required roles while sending the operation to them. This exception will contain one RegionDistributionException for every region that had a reliability failure. Details of the failed required roles are provided in each RegionDistributionException.

Since:
5.0
See Also:
Serialized Form

Constructor Summary
CommitDistributionException(String s)
          Constructs a CommitDistributionException with a message.
CommitDistributionException(String s, Set regionDistributionExceptions)
          Constructs a CommitDistributionException with a message and a cause.
 
Method Summary
 Set getRegionDistributionExceptions()
          Returns set of RegionDistributionExceptions for each region that had a reliability failure during distribution of the operation.
 
Methods inherited from class com.gemstone.gemfire.cache.CacheRuntimeException
toString
 
Methods inherited from class com.gemstone.gemfire.GemFireException
getRootCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CommitDistributionException

public CommitDistributionException(String s)
Constructs a CommitDistributionException with a message.

Parameters:
s - the String message

CommitDistributionException

public CommitDistributionException(String s,
                                   Set regionDistributionExceptions)
Constructs a CommitDistributionException with a message and a cause.

Parameters:
s - the String message
regionDistributionExceptions - set of RegionDistributionExceptions for each region that had a reliability failure
Method Detail

getRegionDistributionExceptions

public Set getRegionDistributionExceptions()
Returns set of RegionDistributionExceptions for each region that had a reliability failure during distribution of the operation.

Returns:
set of RegionDistributionExceptions for each region that had a reliability failure during distribution of the operation

GemFire 5.8

Copyright © 2002-2008 GemStone Systems, Inc. All Rights Reserved.