@ProviderType
public interface AecuService
getFiles. This will filter all
files that do not match the run mode and any fallback scripts.createHistoryEntry. This store a new run with in-progress state.executestoreExecutionInHistoryfinishHistoryEntry| Modifier and Type | Method and Description |
|---|---|
HistoryEntry |
createHistoryEntry()
Starts a new history entry.
|
ExecutionResult |
execute(String path)
Executes the script at the given position.
|
HistoryEntry |
finishHistoryEntry(HistoryEntry history)
Finishes the history entry.
|
List<String> |
getFiles(String path)
Returns a list of files that can be executed in the given path.
|
List<HistoryEntry> |
getHistory(int startIndex,
int count)
Returns the last history entries.
|
String |
getVersion()
Returns the AECU version.
|
boolean |
isValidScriptName(String name)
Checks if the name is a valid script.
|
boolean |
matchesRunmodes(String name)
Checks if the folder matches the system's run modes if specified in folder name.
|
HistoryEntry |
storeExecutionInHistory(HistoryEntry history,
ExecutionResult result)
Stores an execution run in existing history.
|
String getVersion()
List<String> getFiles(String path) throws AecuException
path - file or folderAecuException - error finding files (e.g. invalid path)boolean matchesRunmodes(String name)
name - resource nameboolean isValidScriptName(String name)
name - file nameExecutionResult execute(String path) throws AecuException
path - path of scriptAecuException - error during executionHistoryEntry createHistoryEntry() throws AecuException
AecuException - error setting up entryHistoryEntry storeExecutionInHistory(HistoryEntry history, ExecutionResult result) throws AecuException
history - history entryresult - script execution resultAecuException - error inserting history entryHistoryEntry finishHistoryEntry(HistoryEntry history) throws AecuException
history - open history entryAecuException - error saving stateList<HistoryEntry> getHistory(int startIndex, int count) throws AecuException
startIndex - start reading at this index (first is 0)count - number of entries to readAecuException - error reading historyCopyright © 2018. All rights reserved.