public static <C extends Observer> WatchDog<Map<File, Long>, C> watchFiles(List<File> files, C handler) { return new WatchDog<Map<File, Long>, C>(new FileSetMutable(files), handler); }
public static <C extends Observer> WatchDog<Long, C> watchFile(File file, C handler) { return new WatchDog<Long, C>(new FileMutable(file), handler); }
ProcessConfImpl(QName pid, QName type, long version, DeploymentUnitDir du, TDeployment.Process pinfo, Date deployDate, Map<QName, Node> props, Cache<String, String> states, EndpointReferenceContext eprContext, File configDir, boolean generateProcessEventsAll) { _pid = pid; _version = version; _du = du; _pinfo = pinfo; _deployDate = deployDate; _configDir = configDir; _props = Collections.unmodifiableMap(props); _statesCache = states; _type = type; _inMemory = _pinfo.isSetInMemory() && _pinfo.getInMemory(); this.generateProcessEventsAll = generateProcessEventsAll; this.eprContext = eprContext; propertiesWatchDog = new WatchDog<Map<File, Long>, PropertiesObserver>(new PropertiesMutable(), new PropertiesObserver()); initLinks(); initMexInterceptors(); initEventList(); processCleanupConfImpl = new ProcessCleanupConfImpl(pinfo); initSchedules(); }
ProcessConfImpl(QName pid, QName type, long version, DeploymentUnitDir du, TDeployment.Process pinfo, Date deployDate, Map<QName, Node> props, ProcessState pstate, EndpointReferenceContext eprContext, File configDir, boolean generateProcessEventsAll) { _pid = pid; _version = version; _du = du; _pinfo = pinfo; _deployDate = deployDate; _configDir = configDir; _props = Collections.unmodifiableMap(props); _state = pstate; _type = type; _inMemory = _pinfo.isSetInMemory() && _pinfo.getInMemory(); this.generateProcessEventsAll = generateProcessEventsAll; this.eprContext = eprContext; propertiesWatchDog = new WatchDog<Map<File, Long>, PropertiesObserver>(new PropertiesMutable(), new PropertiesObserver()); initLinks(); initMexInterceptors(); initEventList(); processCleanupConfImpl = new ProcessCleanupConfImpl(pinfo); initSchedules(); }