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

com.emc.vipr.model.sys.healthmonitor.ServiceHealth Maven / Gradle / Ivy

There is a newer version: 3.5.0.0
Show newest version
/*
 * Copyright (c) 2013 EMC Corporation
 * All Rights Reserved
 */
package com.emc.vipr.model.sys.healthmonitor;

import com.emc.vipr.model.sys.healthmonitor.HealthMonitorConstants;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * Represents service health
 */
@XmlRootElement(name = "service_health")
public class ServiceHealth {

    // Default constructor for JAXB
    public ServiceHealth() {
        this.serviceName = HealthMonitorConstants.UNKNOWN;
    }

    public ServiceHealth(String serviceName, String status) {
        this.serviceName = serviceName;
        this.status = status;
    }

    private String serviceName;
    private String status;

    @XmlElement(name = "name")
    public String getServiceName() {
        return serviceName;
    }

    @XmlElement(name = "status")
    public String getStatus() {
        return status;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy