1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package com.linecorp.centraldogma.server.internal.admin.dto;
18
19 import com.linecorp.centraldogma.internal.thrift.Subscriber;
20
21 public class SubscriberDto {
22 private String address;
23 private int port;
24
25 public SubscriberDto() {}
26
27 public SubscriberDto(Subscriber subscriber) {
28 address = subscriber.getAddress();
29 port = subscriber.getPort();
30 }
31
32 public String getAddress() {
33 return address;
34 }
35
36 public void setAddress(String address) {
37 this.address = address;
38 }
39
40 public int getPort() {
41 return port;
42 }
43
44 public void setPort(int port) {
45 this.port = port;
46 }
47 }