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

org.kie.server.api.model.KieServerStateInfo Maven / Gradle / Ivy

/*
 * Copyright 2016 Red Hat, Inc. and/or its affiliates.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.kie.server.api.model;

import java.util.HashSet;
import java.util.Set;

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

import com.thoughtworks.xstream.annotations.XStreamAlias;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "kie-server-state-info")
@XStreamAlias("kie-server-state-info")
public class KieServerStateInfo {

    @XmlElement(name = "server-id") 
    private String serverId;

    @XmlElement(name = "server-location")
    private String location;

    @XmlElement(name = "controller")
    private Set controllers = new HashSet();

    @XmlElement(name = "config")
    private KieServerConfig configuration;

    @XmlElement(name = "containers")
    private Set containers = new HashSet();

    public KieServerStateInfo() {

    }

    public KieServerStateInfo(Set controllers, KieServerConfig configuration, Set containers) {
        this.controllers = controllers;
        this.configuration = configuration;
        this.containers = containers;
    }

    
    public String getServerId() {
        return serverId;
    }

    public void setServerId(String serverId) {
        this.serverId = serverId;
    }

    public Set getControllers() {
        return controllers;
    }

    public void setControllers(Set controllers) {
        this.controllers = controllers;
    }

    public KieServerConfig getConfiguration() {
        return configuration;
    }

    public void setConfiguration(KieServerConfig configuration) {
        this.configuration = configuration;
    }

    public Set getContainers() {
        return containers;
    }

    public void setContainers(Set containers) {
        this.containers = containers;
    }

    
    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy