com.sitewhere.microservice.monitoring.ProgressErrorMessage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sitewhere-microservice Show documentation
Show all versions of sitewhere-microservice Show documentation
SiteWhere Microservice Components Library
/*
* 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