1 24 25 package org.objectweb.cjdbc.controller.recoverylog; 26 27 36 public final class BackendRecoveryInfo 37 { 38 private String backendName; 39 private String checkpoint; 40 41 private int backendState; 42 private String virtualDatabase; 43 44 52 public BackendRecoveryInfo(String backendName, String lastCheckpoint, 53 int backendState, String virtualDatabase) 54 { 55 this.backendName = backendName; 56 this.checkpoint = lastCheckpoint; 57 this.backendState = backendState; 58 this.virtualDatabase = virtualDatabase; 59 } 60 61 66 public String getBackendName() 67 { 68 return backendName; 69 } 70 71 76 public void setBackendName(String backendName) 77 { 78 this.backendName = backendName; 79 } 80 81 86 public int getBackendState() 87 { 88 return backendState; 89 } 90 91 97 public void setBackendState(int backendState) 98 { 99 this.backendState = backendState; 100 } 101 102 107 public String getCheckpoint() 108 { 109 return checkpoint; 110 } 111 112 117 public void setCheckpoint(String lastCheckpoint) 118 { 119 this.checkpoint = lastCheckpoint; 120 } 121 122 127 public String getVirtualDatabase() 128 { 129 return virtualDatabase; 130 } 131 132 137 public void setVirtualDatabase(String virtualDatabase) 138 { 139 this.virtualDatabase = virtualDatabase; 140 } 141 142 145 public String toString() 146 { 147 return "Backend:" + this.backendName + ",VirtualDatabase:" 148 + this.virtualDatabase + ",State:" + this.backendState + ",Checkpoint:" 149 + this.checkpoint; 150 } 151 } | Popular Tags |