org.zodiac.plugin.integration.operator.module.PluginInfo Maven / Gradle / Ivy
package org.zodiac.plugin.integration.operator.module;
import org.pf4j.PluginDescriptor;
import org.pf4j.PluginState;
/**
* 插件信息。
*
*/
public class PluginInfo {
/*插件基本信息*/
private PluginDescriptor pluginDescriptor;
/*插件状态*/
private PluginState pluginState;
/*插件路径*/
private String path;
/*运行模式*/
private String runMode;
public PluginInfo(PluginDescriptor pluginDescriptor, PluginState pluginState, String path, String runMode) {
this.pluginDescriptor = pluginDescriptor;
this.pluginState = pluginState;
this.path = path;
this.runMode = runMode;
}
public PluginDescriptor getPluginDescriptor() {
return pluginDescriptor;
}
public PluginState getPluginState() {
return pluginState;
}
public String getPluginStateString() {
return pluginState.toString();
}
public String getPath() {
return path;
}
public String getRunMode() {
return runMode;
}
@Override
public String toString() {
return "PluginInfo{" + "pluginDescriptor=" + pluginDescriptor + ", pluginState=" + pluginState + ", path='"
+ path + '\'' + ", runMode='" + runMode + '\'' + '}';
}
}