001 /*
002 *
003 * Licensed to the Apache Software Foundation (ASF) under one
004 * or more contributor license agreements. See the NOTICE file
005 * distributed with this work for additional information
006 * regarding copyright ownership. The ASF licenses this file
007 * to you under the Apache License, Version 2.0 (the
008 * "License"); you may not use this file except in compliance
009 * with the License. You may obtain a copy of the License at
010 *
011 * http://www.apache.org/licenses/LICENSE-2.0
012 *
013 * Unless required by applicable law or agreed to in writing,
014 * software distributed under the License is distributed on an
015 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
016 * KIND, either express or implied. See the License for the
017 * specific language governing permissions and limitations
018 * under the License.
019 *
020 */
021 package org.apache.qpid.management.web.action;
022
023 import java.io.Serializable;
024 import java.util.Arrays;
025 import java.util.Date;
026 import java.util.List;
027
028 /**
029 * Console Model.
030 * It is a simple Data Transfer Object encapsulating all information about QMan
031 * console (System Overview)
032 *
033 * @author Andrea Gazzarini
034 */
035 public class ConsoleModel implements Serializable
036 {
037 private static final long serialVersionUID = -7676132151242738376L;
038 private String _version;
039 private String _versionName;
040 private Date _startDate;
041 private String _host;
042 private int _port;
043
044 private String _osName;
045 private String _osVersion;
046 private String _archName;
047 private Integer _processors;
048
049 private String [] _bootClasspath;
050 private String [] _classpath;
051 private String [] _inputArguments;
052 private String [] _systemProperties;
053
054 public String getVersion()
055 {
056 return _version;
057 }
058 public void setVersion(String version)
059 {
060 this._version = version;
061 }
062 public String getVersionName()
063 {
064 return _versionName;
065 }
066 public void setVersionName(String versionName)
067 {
068 this._versionName = versionName;
069 }
070 public Date getStartDate()
071 {
072 return _startDate;
073 }
074 public void setStartDate(Date startDate)
075 {
076 this._startDate = startDate;
077 }
078 public String getHost()
079 {
080 return _host;
081 }
082 public void setHost(String host)
083 {
084 this._host = host;
085 }
086 public int getPort()
087 {
088 return _port;
089 }
090 public void setPort(int port)
091 {
092 this._port = port;
093 }
094 public String getOsName()
095 {
096 return _osName;
097 }
098 public void setOsName(String osName)
099 {
100 this._osName = osName;
101 }
102 public String getOsVersion()
103 {
104 return _osVersion;
105 }
106 public void setOsVersion(String osVersion)
107 {
108 this._osVersion = osVersion;
109 }
110 public String getArchName()
111 {
112 return _archName;
113 }
114 public void setArchName(String archName)
115 {
116 this._archName = archName;
117 }
118 public Integer getProcessors()
119 {
120 return _processors;
121 }
122 public void setProcessors(Integer processors)
123 {
124 this._processors = processors;
125 }
126 public List<String> getBootClasspath()
127 {
128 return Arrays.asList(_bootClasspath);
129 }
130 public void setBootClasspath(String [] bootClasspath)
131 {
132 this._bootClasspath = bootClasspath;
133 }
134 public String [] getClasspath()
135 {
136 return _classpath;
137 }
138 public void setClasspath(String [] classpath)
139 {
140 this._classpath = classpath;
141 }
142 public String [] getInputArguments()
143 {
144 return _inputArguments;
145 }
146 public void setInputArguments(String [] inputArguments)
147 {
148 this._inputArguments = inputArguments;
149 }
150 public String [] getSystemProperties()
151 {
152 return _systemProperties;
153 }
154 public void setSystemProperties(String [] systemProperties)
155 {
156 this._systemProperties = systemProperties;
157 }
158 }
|