1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.syncope.client.console.topology;
20
21 import java.io.Serializable;
22
23 public class TopologyNode implements Serializable {
24
25 public enum Kind {
26
27 RESOURCE,
28 CONNECTOR,
29 CONNECTOR_SERVER,
30 FS_PATH,
31 SYNCOPE
32
33 }
34
35 public enum Status {
36
37 UNKNOWN,
38 REACHABLE,
39 UNREACHABLE,
40 FAILURE
41
42 }
43
44 private static final long serialVersionUID = -1506421230369224142L;
45
46 private final String key;
47
48 private String displayName;
49
50 private String connectionDisplayName;
51
52 private Kind kind;
53
54 private String host;
55
56 private int port;
57
58 private int x;
59
60 private int y;
61
62 public TopologyNode(final String key, final String displayName, final Kind kind) {
63 this.key = key;
64 this.displayName = displayName;
65 this.kind = kind;
66 }
67
68 public String getKey() {
69 return key;
70 }
71
72 public String getDisplayName() {
73 return displayName;
74 }
75
76 public void setDisplayName(final String displayName) {
77 this.displayName = displayName;
78 }
79
80 public String getConnectionDisplayName() {
81 return connectionDisplayName;
82 }
83
84 public void setConnectionDisplayName(final String connectionDisplayName) {
85 this.connectionDisplayName = connectionDisplayName;
86 }
87
88 public Kind getKind() {
89 return kind;
90 }
91
92 public void setKind(final Kind kind) {
93 this.kind = kind;
94 }
95
96 public int getX() {
97 return x;
98 }
99
100 public void setX(final int x) {
101 this.x = x;
102 }
103
104 public int getY() {
105 return y;
106 }
107
108 public void setY(final int y) {
109 this.y = y;
110 }
111
112 public String getHost() {
113 return host;
114 }
115
116 public void setHost(final String host) {
117 this.host = host;
118 }
119
120 public int getPort() {
121 return port;
122 }
123
124 public void setPort(final int port) {
125 this.port = port;
126 }
127
128 }