blob: c665d5b92f8dc2ba66ea20d73741956edc6a6363 [file] [log] [blame]
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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.apache.activemq.apollo.dto;
import javax.xml.bind.annotation.*;
import java.util.ArrayList;
import java.util.List;
/**
* <p>
* </p>
*
* @author <a href="http://hiramchirino.com">Hiram Chirino</a>
*/
@XmlRootElement(name="broker_status")
@XmlAccessorType(XmlAccessType.FIELD)
public class BrokerStatusDTO extends ServiceStatusDTO {
/**
* Version of the broker
*/
@XmlAttribute
public String version;
/**
* Metrics about the JVM
*/
@XmlElement(name="jvm_metrics")
public JvmMetricsDTO jvm_metrics;
/**
* The current time on the broker machine. In milliseconds since the epoch.
*/
@XmlAttribute(name="current_time")
public long current_time;
/**
* Ids of all the virtual hosts running on the broker
*/
@XmlElement(name="virtual_host")
public List<String> virtual_hosts = new ArrayList<String>();
/**
* Ids of all the connectors running on the broker
*/
@XmlElement(name="connector")
public List<String> connectors = new ArrayList<String>();
/**
* Ids of all the connections running on the broker
*/
@XmlElement(name="connection")
public List<LongIdLabeledDTO> connections = new ArrayList<LongIdLabeledDTO>();
/**
* The total number of connections accepted by the broker.
*/
@XmlAttribute(name="connection_counter")
public long connection_counter;
}