1 23 24 package org.continuent.sequoia.common.jmx.management; 25 26 import org.continuent.sequoia.common.i18n.Translate; 27 28 36 public final class BackendState 37 { 38 41 public static final int READ_ENABLED_WRITE_DISABLED = 0; 42 43 46 public static final int READ_ENABLED_WRITE_ENABLED = 1; 47 48 51 public static final int READ_DISABLED_WRITE_ENABLED = 2; 52 53 56 public static final int DISABLED = 3; 57 58 61 public static final int RESTORING = 4; 62 63 67 public static final int DISABLING = 5; 68 69 73 public static final int BACKUPING = 6; 74 75 80 public static final int UNKNOWN = -1; 81 82 85 public static final int REPLAYING = 7; 86 87 95 public static String description(int state) 96 { 97 switch (state) 98 { 99 case READ_ENABLED_WRITE_DISABLED : 100 return Translate.get("BackendState.readEnabledWriteDisabled"); case READ_ENABLED_WRITE_ENABLED : 102 return Translate.get("BackendState.readEnabledWriteEnabled"); case READ_DISABLED_WRITE_ENABLED : 104 return Translate.get("BackendState.readDisabledWriteEnabled"); case DISABLED : 106 return Translate.get("BackendState.disabled"); case RESTORING : 108 return Translate.get("BackendState.restoring"); case DISABLING : 110 return Translate.get("BackendState.disabling"); case BACKUPING : 112 return Translate.get("BackendState.backingUp"); case REPLAYING : 114 return Translate.get("BackendState.replaying"); case UNKNOWN : 116 default : 117 return Translate.get("BackendState.unknown"); } 119 } 120 } | Popular Tags |