public class DataAgentProfile extends Object
| 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).
|
String |
getClassName() |
String |
getLabel() |
Map<String,String> |
getParameters() |
File |
getPath() |
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.
|
void |
setClassName(String class_name) |
void |
setLabel(String label) |
void |
setParameters(HashMap<String,String> parameters) |
public final String getClassName()
public final void setClassName(String class_name)
class_name - public final String getLabel()
public final void setLabel(String label)
label - public final void setParameters(HashMap<String,String> parameters)
parameters - public final File getPath()
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
InvalidProfileException - if the profile is not parsed correctlypublic final File getPath(String filename) throws FileNotFoundException
filename - FileNotFoundException - if file is not foundCopyright © 2019. All rights reserved.