Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*-
  * See the file LICENSE for redistribution information.
  *
  * Copyright (c) 2002, 2013 Oracle and/or its affiliates.  All rights reserved.
  *
  */
 
 package com.sleepycat.je.rep;
 
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.

    private static final long serialVersionUID = 1;
    public UnknownMasterException(Locker locker,
                                  StateChangeEvent stateChangeEvent) {
        super(lockerstateChangeEvent);
    }

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

    
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.
    public UnknownMasterException(String messageException reason) {
        super(messagereason);
    }
    private UnknownMasterException(String message,
                                   UnknownMasterException cause) {
        super(messagecause);
    }
    
For internal use only.

Hidden:
    @Override
    public OperationFailureException wrapSelf(String msg) {
        return new UnknownMasterException(msgthis);
    }
New to GrepCode? Check out our FAQ X