/** * While the server is reading a Journal to recover its state, block any * attempt to use the Management API. * * @throws ServerException */ private ServerException rejectCallsFromOutsideWhileInRecoveryMode() { return new InvalidStateException("Server is in Journal Recovery mode."); }
/** * While the server is reading a Journal to recover its state, block any * attempt to use the Management API. * * @throws ServerException */ private ServerException rejectCallsFromOutsideWhileInRecoveryMode() { return new InvalidStateException("Server is in Journal Recovery mode."); }
/** * If a modifying operation is attempted while we are in Read-Only mode, * throw an exception to prevent it. In Normal mode, do nothing. * * @throws ServerException * to prevent a modifying operation in Read-Only mode. */ public static void enforceCurrentMode() throws ServerException { switch (currentMode) { case READ_ONLY: throw new InvalidStateException("Server is in Read-Only mode, pursuant to a Journaling error."); default: } }
/** * If a modifying operation is attempted while we are in Read-Only mode, * throw an exception to prevent it. In Normal mode, do nothing. * * @throws ServerException * to prevent a modifying operation in Read-Only mode. */ public static void enforceCurrentMode() throws ServerException { switch (currentMode) { case READ_ONLY: throw new InvalidStateException("Server is in Read-Only mode, pursuant to a Journaling error."); default: } }
if (!dsState.equals("A") && !dsState.equals("D") && !dsState.equals("I")) { throw new InvalidStateException("The datastream state of \"" + dsState + "\" is invalid. The allowed values for state are: "
if (!dsState.equals("A") && !dsState.equals("D") && !dsState.equals("I")) { throw new InvalidStateException("The datastream state of \"" + dsState + "\" is invalid. The allowed values for state are: "
if (!state.equals("A") && !state.equals("D") && !state.equals("I")) { throw new InvalidStateException("The object state of \"" + state + "\" is invalid. The allowed values for state are: "
if (!state.equals("A") && !state.equals("D") && !state.equals("I")) { throw new InvalidStateException("The object state of \"" + state + "\" is invalid. The allowed values for state are: "
if (!dsState.equals("A") && !dsState.equals("D") && !dsState.equals("I")) { throw new InvalidStateException("The datastream state of \"" + dsState + "\" is invalid. The allowed values for state are: "
if (!dsState.equals("A") && !dsState.equals("D") && !dsState.equals("I")) { throw new InvalidStateException("The datastream state of \"" + dsState + "\" is invalid. The allowed values for state are: "