org.bidib.wizard.api.notification.NodeStatusInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bidibwizard-api Show documentation
Show all versions of bidibwizard-api Show documentation
jBiDiB BiDiB Wizard API POM
The newest version!
package org.bidib.wizard.api.notification;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* The {@code NodeStatusInfo} is used in the java process to signal the status change of a node.
*/
public class NodeStatusInfo {
private final String connectionId;
public enum LoadStatus {
UNKNOWN, FINISHED;
}
private final LoadStatus loadStatus;
private final Object[] args;
private final String resourceKey;
public NodeStatusInfo(String connectionId, LoadStatus loadStatus, final String resourceKey, Object[] args) {
this.connectionId = connectionId;
this.loadStatus = loadStatus;
this.resourceKey = resourceKey;
this.args = args;
}
/**
* @return the connectionId
*/
public String getConnectionId() {
return connectionId;
}
/**
* @return the loadStatus
*/
public LoadStatus getLoadStatus() {
return loadStatus;
}
/**
* @return the resourceKey
*/
public String getResourceKey() {
return resourceKey;
}
/**
* @return the arguments
*/
public Object[] getArgs() {
return args;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
}
}