1 40 41 package com.sun.jmx.examples.scandir; 42 43 import com.sun.jmx.examples.scandir.config.ResultRecord; 44 import java.io.IOException ; 45 import javax.management.InstanceNotFoundException ; 46 47 73 public interface ResultLogManagerMXBean { 74 75 106 public void newLogFile(String basename, long maxRecord) 107 throws IOException , InstanceNotFoundException ; 108 109 120 public void log(ResultRecord record) 121 throws IOException , InstanceNotFoundException ; 122 123 135 public String getLogFileName() 136 throws IOException , InstanceNotFoundException ; 137 138 148 public ResultRecord[] getMemoryLog() 149 throws IOException , InstanceNotFoundException ; 150 151 169 public int getMemoryLogCapacity() 170 throws IOException , InstanceNotFoundException ; 171 172 189 public void setMemoryLogCapacity(int size) 190 throws IOException , InstanceNotFoundException ; 191 192 210 public void setLogFileCapacity(long maxRecord) 211 throws IOException , InstanceNotFoundException ; 212 213 229 public long getLogFileCapacity() 230 throws IOException , InstanceNotFoundException ; 231 232 244 public long getLoggedCount() 245 throws IOException , InstanceNotFoundException ; 246 247 255 public void clearLogs() 256 throws IOException , InstanceNotFoundException ; 257 } 258 259 260 | Popular Tags |