Berkeley DB Java Edition
version 5.0.34

com.sleepycat.je.rep
Class UnknownMasterException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.sleepycat.je.DatabaseException
                  extended by com.sleepycat.je.OperationFailureException
                      extended by com.sleepycat.je.rep.StateChangeException
                          extended by com.sleepycat.je.rep.UnknownMasterException
All Implemented Interfaces:
Serializable

public class UnknownMasterException
extends StateChangeException

Indicates that the underlying operation requires communication with a Master, but that a Master was not available.

This exception typically indicates there is a system level problem. It could indicate for example, that a sufficient number of nodes are not available to hold an election and elect a Master, or that this node was having problems with the network and was unable to communicate with other nodes.

The application can choose to retry the operation, potentially logging the problem, until the underlying system level problem has been addressed.

See Also:
Serialized Form

Constructor Summary
UnknownMasterException(com.sleepycat.je.txn.Locker locker, StateChangeEvent stateChangeEvent)
           
UnknownMasterException(String message)
          Used when the inability to determine a master is not related to a state change.
UnknownMasterException(String message, Exception reason)
          Used when the inability to determine a master is not related to a state change but some inability to communicate with a node identified as a master.
 
Method Summary
 
Methods inherited from class com.sleepycat.je.rep.StateChangeException
getEvent
 
Methods inherited from class com.sleepycat.je.DatabaseException
getMessage
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnknownMasterException

public UnknownMasterException(com.sleepycat.je.txn.Locker locker,
                              StateChangeEvent stateChangeEvent)

UnknownMasterException

public UnknownMasterException(String message)
Used when the inability to determine a master is not related to a state change.


UnknownMasterException

public UnknownMasterException(String message,
                              Exception reason)
Used when the inability to determine a master is not related to a state change but some inability to communicate with a node identified as a master. The reason contains further explanation.


Berkeley DB Java Edition
version 5.0.34

Copyright (c) 2004-2011 Oracle. All rights reserved.