com.jd.joyqueue.monitor.Client Maven / Gradle / Ivy
The newest version!
/**
* 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 com.jd.joyqueue.monitor;
public class Client extends BaseMonitorInfo {
private static final long serialVersionUID = -2261906559879545877L;
// 连接ID
private String connectionId;
// 应用
private String app;
// 版本号
private String version;
// 语言
private String language;
// 来源
private String source;
// 客户端地址
private String ip;
// 客户端端口
private int port;
// 区域
private String region;
// 作用域
private String namespace;
// 创建时间
private long createTime;
// 是否是生产者
private boolean producerRole = false;
// 是否是消费者
private boolean consumerRole = false;
public String getConnectionId() {
return connectionId;
}
public void setConnectionId(String connectionId) {
this.connectionId = connectionId;
}
public String getApp() {
return app;
}
public void setApp(String app) {
this.app = app;
}
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
public String getLanguage() {
return language;
}
public void setLanguage(String language) {
this.language = language;
}
public String getIp() {
return ip;
}
public void setIp(String ip) {
this.ip = ip;
}
public int getPort() {
return port;
}
public void setPort(int port) {
this.port = port;
}
public void setRegion(String region) {
this.region = region;
}
public String getRegion() {
return region;
}
public void setNamespace(String namespace) {
this.namespace = namespace;
}
public String getNamespace() {
return namespace;
}
public boolean isProducerRole() {
return producerRole;
}
public void setProducerRole(boolean producerRole) {
this.producerRole = producerRole;
}
public boolean isConsumerRole() {
return consumerRole;
}
public void setConsumerRole(boolean consumerRole) {
this.consumerRole = consumerRole;
}
public void setSource(String source) {
this.source = source;
}
public String getSource() {
return source;
}
public void setCreateTime(long createTime) {
this.createTime = createTime;
}
public long getCreateTime() {
return createTime;
}
}