public class DataAgentProfile extends Object
| Modifier and Type | Field and Description |
|---|---|
String |
class_name
Name of the class to instantiate (must implement DataAgentInterface).
|
String |
label
The label for the data that will be added to the datastore.
|
Map<String,String> |
parameters
Additional parameters to pass to the agent (e.g time range).
|
File |
path
The path to the profile file, can be used to compute relative paths.
|
| Constructor and Description |
|---|
DataAgentProfile() |
| Modifier and Type | Method and Description |
|---|---|
DataAgentInterface |
createInstance()
Create an instance of this data agent.
|
static DataAgentProfile |
fromFile(File file)
Parse YAML configuration file to create data agent profile.
|
static DataAgentProfile |
fromInputStream(InputStream input)
Create profile from input stream (for example a resource file in jar).
|
File |
getPath(String filename)
Compute the File corresponding to this filename, which can be an
absolute path, or a relative path to this data agent profile file.
|
public String class_name
public String label
public Map<String,String> parameters
public File path
public static final DataAgentProfile fromFile(File file) throws FileNotFoundException
file - FileNotFoundException - if the config file does not existpublic static final DataAgentProfile fromInputStream(InputStream input)
input - public final DataAgentInterface createInstance() throws InvalidProfileException
InvalidProfileExceptionpublic final File getPath(String filename) throws FileNotFoundException
filename - FileNotFoundExceptionCopyright © 2019. All rights reserved.