Custom Executables
Implementing AttivioRunnable
AttivioRunnable@ConfigurationOption(description="This writes messages to the log file")
public class MyAttivioRunnable implements AttivioRunnable {
private String message;
public int run() throws AttivioException {
Logger.getLogger(MyAttivioRunnable.class).info(message);
}
@ConfigurationOption(optionLevel=OptionLevel.Required, shortOpt="m", description="This message will be written to the log file")
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
}Registering the Custom Executable the Module
Calling an AttivioRunnable
AttivioRunnableLast updated
Was this helpful?