View Javadoc
1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   *   http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
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 }