All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bidib.wizard.api.notification.NodeStatusInfo Maven / Gradle / Ivy

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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy