com.sleepycat.je.rep
Class UnknownMasterException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sleepycat.je.DatabaseException
com.sleepycat.je.OperationFailureException
com.sleepycat.je.rep.StateChangeException
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
UnknownMasterException
public UnknownMasterException(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.
wrapSelf
public OperationFailureException wrapSelf(String msg)
- For internal use only.
- Specified by:
wrapSelf
in class OperationFailureException
Copyright (c) 2004-2012 Oracle. All rights reserved.