1 40 41 package com.sun.jmx.examples.scandir; 42 43 import java.io.IOException ; 44 import java.util.Map ; 45 import javax.management.InstanceNotFoundException ; 46 import javax.management.JMException ; 47 48 66 public interface ScanManagerMXBean { 67 77 public enum ScanState { 78 81 RUNNING, 82 83 87 SCHEDULED, 88 89 92 COMPLETED, 93 94 97 STOPPED, 98 99 102 CLOSED 103 104 } 105 106 114 public ScanState getState() 115 throws IOException , InstanceNotFoundException ; 116 117 141 public void schedule(long delay, long interval) 142 throws IOException , InstanceNotFoundException ; 143 144 145 163 public void stop() 164 throws IOException , InstanceNotFoundException ; 165 166 174 public void close() 175 throws IOException , InstanceNotFoundException ; 176 177 187 public void start() 188 throws IOException , InstanceNotFoundException ; 189 190 199 public Map <String ,DirectoryScannerMXBean> getDirectoryScanners() 200 throws IOException , JMException ; 201 202 232 public void applyConfiguration(boolean fromMemory) 233 throws IOException , JMException ; 234 253 public void applyCurrentResultLogConfig(boolean toMemory) 254 throws IOException , JMException ; 255 256 274 public void setConfigurationMBean(ScanDirConfigMXBean config) 275 throws IOException , InstanceNotFoundException ; 276 284 public ScanDirConfigMXBean getConfigurationMBean() 285 throws IOException , InstanceNotFoundException ; 286 314 public ScanDirConfigMXBean createOtherConfigurationMBean(String name, 315 String filename) 316 throws JMException , IOException ; 317 } 318 319 320 | Popular Tags |