public class Updater extends Object
Constructor and Description |
---|
Updater(ConfigurationAdministrator admin) |
Modifier and Type | Method and Description |
---|---|
static Map<String,Map<String,Map<String,String>>> |
buildMap(ConfigurationAdministrator admin) |
List<DiffEntry> |
getChanges() |
void |
loadDirectory(Path dir,
int depth,
DirectoryScanner.FailMode failMode)
Load all files from a local directory as
|
void |
loadJson(Reader reader)
Load the new data set from the reader
|
protected void |
makeDiff() |
void |
setLocalData(Map<String,Map<String,Map<String,String>>> localData) |
NotifyFuture<Void> |
update() |
public Updater(ConfigurationAdministrator admin)
public static Map<String,Map<String,Map<String,String>>> buildMap(ConfigurationAdministrator admin)
public void loadJson(Reader reader)
reader
- The reader to read from. The caller is responsible for closing
the reader.Exception
- if anything goes wrongpublic void loadDirectory(Path dir, int depth, DirectoryScanner.FailMode failMode)
dir
- the directory to startdepth
- the depth of sub directories to descend intofailMode
- The mode how parsing failures are handledprotected void makeDiff()
public NotifyFuture<Void> update()
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.