public class BaseWatcher
extends java.lang.Object
| Constructor and Description |
|---|
BaseWatcher(StorageManager storageManager,
java.io.File base) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addStorage(java.lang.String id,
java.io.File file)
Add a new storage that was found
|
protected void |
addWatcherMap(java.nio.file.Path path,
org.eclipse.scada.hd.server.storage.slave.hds.BaseWatcher.StorageWatcher watcher) |
void |
dispose() |
void |
removeStorage(java.lang.String id,
java.io.File file)
Remove a storage that was registered earlier
|
protected void |
removeWatcherMap(java.nio.file.Path path) |
protected void |
runWatcher() |
public BaseWatcher(StorageManager storageManager, java.io.File base) throws java.io.IOException
java.io.IOExceptionprotected void runWatcher()
throws java.lang.Exception
java.lang.Exceptionprotected void addWatcherMap(java.nio.file.Path path,
org.eclipse.scada.hd.server.storage.slave.hds.BaseWatcher.StorageWatcher watcher)
protected void removeWatcherMap(java.nio.file.Path path)
protected void addStorage(java.lang.String id,
java.io.File file)
throws java.lang.Exception
id - the ID of the storagefile - the base directory of the storagejava.lang.Exceptionpublic void removeStorage(java.lang.String id,
java.io.File file)
id - the ID of the storage to removefile - public void dispose()
Copyright (c) IBH SYSTEMS GmbH and others 2010, 2013.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0