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

com.sitewhere.microservice.monitoring.ProgressErrorMessage Maven / Gradle / Ivy

There is a newer version: 3.0.13
Show newest version
/*
 * Copyright (c) SiteWhere, LLC. All rights reserved. http://www.sitewhere.com
 *
 * The software in this package is published under the terms of the CPAL v1.0
 * license, a copy of which has been included with this distribution in the
 * LICENSE.txt file.
 */
package com.sitewhere.microservice.monitoring;

import com.sitewhere.spi.error.ErrorLevel;
import com.sitewhere.spi.microservice.monitoring.IProgressErrorMessage;

/**
 * Progress message that includes error information.
 */
public class ProgressErrorMessage extends ProgressMessage implements IProgressErrorMessage {

    /** Serial version UID */
    private static final long serialVersionUID = -7676418806779136207L;

    /** Error level for message */
    private ErrorLevel level;

    public ProgressErrorMessage() {
    }

    public ProgressErrorMessage(String taskName, double progressPercentage, String message, ErrorLevel level) {
	super(taskName, progressPercentage, message);
	this.level = level;
    }

    /*
     * (non-Javadoc)
     * 
     * @see com.sitewhere.spi.monitoring.IProgressErrorMessage#getLevel()
     */
    @Override
    public ErrorLevel getLevel() {
	return level;
    }

    public void setLevel(ErrorLevel level) {
	this.level = level;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy