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;
 
Thrown when an attempt is made to access an environment that was shutdown by the Master as a result of a call to ReplicatedEnvironment.shutdownGroup(long,java.util.concurrent.TimeUnit).
    private static final long serialVersionUID = 1;
    /* The time that the shutdown was initiated on the master. */
    private final long shutdownTimeMs;
    /* The master node that initiated the shutdown. */
    private final String masterNodeName;
    /* The VLSN at the time of shutdown */
    private final VLSN shutdownVLSN;

    
For internal use only.

Hidden:
    public GroupShutdownException(Logger logger,
                                  RepNode repNode,
                                  long shutdownTimeMs) {
        super(repNode.getRepImpl(),
              .,
              String.format("Master:%s, initiated shutdown at %1tc.",
                            repNode.getMasterStatus().getNodeMasterNameId().
                                getName(),
                            shutdownTimeMs));
         = repNode.getVLSNIndex().getRange().getLast();
         =
            repNode.getMasterStatus().getNodeMasterNameId().getName();
        this. = shutdownTimeMs;
        LoggerUtils.warning(loggerrepNode.getRepImpl(),
                            "Explicit shutdown request from Master:" +
                            );
    }

    
For internal use only.

Hidden:
    private GroupShutdownException(String message,
                                   GroupShutdownException shutdownException) {
        super(messageshutdownException);
         = shutdownException.shutdownVLSN;
         = shutdownException.shutdownTimeMs;
         =  shutdownException.masterNodeName;
    }

    
For internal use only.

Hidden:
    @Override
    public  GroupShutdownException wrapSelf(String msg) {
        return new GroupShutdownException(msgthis);
    }

    
For internal use only. Returns the shutdownVLSN, if it was available, at the time of the exception

Hidden:
    public VLSN getShutdownVLSN() {
        return ;
    }
New to GrepCode? Check out our FAQ X