1 8 9 package com.sleepycat.je; 10 11 import java.io.Serializable ; 12 13 17 public class PreloadStats implements Serializable { 18 19 23 public int nINsLoaded; 24 public int nBINsLoaded; 25 public int nLNsLoaded; 26 public int nDINsLoaded; 27 public int nDBINsLoaded; 28 public int nDupCountLNsLoaded; 29 30 33 public PreloadStatus status; 34 35 38 public PreloadStats() { 39 reset(); 40 } 41 42 45 private void reset() { 46 nINsLoaded = 0; 47 nBINsLoaded = 0; 48 nLNsLoaded = 0; 49 nDINsLoaded = 0; 50 nDBINsLoaded = 0; 51 nDupCountLNsLoaded = 0; 52 status = PreloadStatus.SUCCESS; 53 } 54 55 59 public int getNINsLoaded() { 60 return nINsLoaded; 61 } 62 63 67 public int getNBINsLoaded() { 68 return nBINsLoaded; 69 } 70 71 75 public int getNLNsLoaded() { 76 return nLNsLoaded; 77 } 78 79 83 public int getNDINsLoaded() { 84 return nDINsLoaded; 85 } 86 87 91 public int getNDBINsLoaded() { 92 return nDBINsLoaded; 93 } 94 95 99 public int getNDupCountLNsLoaded() { 100 return nDupCountLNsLoaded; 101 } 102 103 107 public PreloadStatus getStatus() { 108 return status; 109 } 110 111 114 public void setNINsLoaded(int nINsLoaded) { 115 this.nINsLoaded = nINsLoaded; 116 } 117 118 121 public void setNBINsLoaded(int nBINsLoaded) { 122 this.nBINsLoaded = nBINsLoaded; 123 } 124 125 128 public void setNLNsLoaded(int nLNsLoaded) { 129 this.nLNsLoaded = nLNsLoaded; 130 } 131 132 135 public void setNDINsLoaded(int nDINsLoaded) { 136 this.nDINsLoaded = nDINsLoaded; 137 } 138 139 142 public void setNDBINsLoaded(int nDBINsLoaded) { 143 this.nDBINsLoaded = nDBINsLoaded; 144 } 145 146 149 public void setNDupCountLNsLoaded(int nDupCountLNsLoaded) { 150 this.nDupCountLNsLoaded = nDupCountLNsLoaded; 151 } 152 153 156 public void setStatus(PreloadStatus status) { 157 this.status = status; 158 } 159 160 164 public String toString() { 165 StringBuffer sb = new StringBuffer (); 166 sb.append("status=").append(status).append('\n'); 167 sb.append("nINsLoaded=").append(nINsLoaded).append('\n'); 168 sb.append("nBINsLoaded=").append(nBINsLoaded).append('\n'); 169 sb.append("nLNsLoaded=").append(nLNsLoaded).append('\n'); 170 sb.append("nDINsLoaded=").append(nDINsLoaded).append('\n'); 171 sb.append("nDBINsLoaded=").append(nDBINsLoaded).append('\n'); 172 sb.append("nDupCountLNsLoaded=").append(nDupCountLNsLoaded). 173 append('\n'); 174 175 return sb.toString(); 176 } 177 } 178 | Popular Tags |