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

jaxrs.examples.link.clusterservice.Cluster Maven / Gradle / Ivy

/*
 * Copyright (c) 2011, 2017 Oracle and/or its affiliates. All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Distribution License v. 1.0, which is available at
 * http://www.eclipse.org/org/documents/edl-v10.php.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

package jaxrs.examples.link.clusterservice;

import java.util.ArrayList;
import java.util.List;

import jakarta.xml.bind.annotation.XmlRootElement;

/**
 * Cluster class.
 *
 * @author [email protected]
 */
@XmlRootElement
public class Cluster {

    enum Status {
        OFFLINE, ONLINE
    }

    private String name;

    private Status status = Status.ONLINE;

    private List machines = new ArrayList();

    public Cluster() {
    }

    public Cluster(String name) {
        this.name = name;
    }

    public List getMachines() {
        return machines;
    }

    public void setMachines(List machines) {
        this.machines = machines;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Status getStatus() {
        return status;
    }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy