1 40 41 package com.sun.jmx.examples.scandir; 42 43 import com.sun.jmx.examples.scandir.config.DirectoryScannerConfig; 44 import com.sun.jmx.examples.scandir.config.ScanManagerConfig; 45 import java.io.IOException ; 46 import javax.management.InstanceNotFoundException ; 47 48 83 public interface ScanDirConfigMXBean { 84 91 public enum SaveState { 92 96 CREATED, 97 98 102 LOADED, 103 104 109 MODIFIED, 110 111 114 SAVED 115 }; 116 117 138 public void load() 139 throws IOException , InstanceNotFoundException ; 140 141 164 public void save() 165 throws IOException , InstanceNotFoundException ; 166 167 179 public String getConfigFilename() 180 throws IOException , InstanceNotFoundException ; 181 182 199 public ScanManagerConfig getConfiguration() 200 throws IOException , InstanceNotFoundException ; 201 202 227 public void setConfiguration(ScanManagerConfig config) 228 throws IOException , InstanceNotFoundException ; 229 230 272 public DirectoryScannerConfig 273 addDirectoryScanner(String name, String dir, String filePattern, 274 long sizeExceedsMaxBytes, long sinceLastModified) 275 throws IOException , InstanceNotFoundException ; 276 277 308 public DirectoryScannerConfig 309 removeDirectoryScanner(String name) 310 throws IOException , InstanceNotFoundException ; 311 312 348 public SaveState getSaveState() 349 throws IOException , InstanceNotFoundException ; 350 351 } 352 353 354 | Popular Tags |