提交 | 用户 | 时间
|
e7c126
|
1 |
package com.xxl.job.admin.core.model; |
H |
2 |
|
|
3 |
import java.util.ArrayList; |
|
4 |
import java.util.Arrays; |
|
5 |
import java.util.Date; |
|
6 |
import java.util.List; |
|
7 |
|
|
8 |
/** |
|
9 |
* Created by xuxueli on 16/9/30. |
|
10 |
*/ |
|
11 |
public class XxlJobGroup { |
|
12 |
|
|
13 |
private int id; |
|
14 |
private String appname; |
|
15 |
private String title; |
|
16 |
private int addressType; // 执行器地址类型:0=自动注册、1=手动录入 |
|
17 |
private String addressList; // 执行器地址列表,多地址逗号分隔(手动录入) |
|
18 |
private Date updateTime; |
|
19 |
|
|
20 |
// registry list |
|
21 |
private List<String> registryList; // 执行器地址列表(系统注册) |
|
22 |
public List<String> getRegistryList() { |
|
23 |
if (addressList!=null && addressList.trim().length()>0) { |
|
24 |
registryList = new ArrayList<String>(Arrays.asList(addressList.split(","))); |
|
25 |
} |
|
26 |
return registryList; |
|
27 |
} |
|
28 |
|
|
29 |
public int getId() { |
|
30 |
return id; |
|
31 |
} |
|
32 |
|
|
33 |
public void setId(int id) { |
|
34 |
this.id = id; |
|
35 |
} |
|
36 |
|
|
37 |
public String getAppname() { |
|
38 |
return appname; |
|
39 |
} |
|
40 |
|
|
41 |
public void setAppname(String appname) { |
|
42 |
this.appname = appname; |
|
43 |
} |
|
44 |
|
|
45 |
public String getTitle() { |
|
46 |
return title; |
|
47 |
} |
|
48 |
|
|
49 |
public void setTitle(String title) { |
|
50 |
this.title = title; |
|
51 |
} |
|
52 |
|
|
53 |
public int getAddressType() { |
|
54 |
return addressType; |
|
55 |
} |
|
56 |
|
|
57 |
public void setAddressType(int addressType) { |
|
58 |
this.addressType = addressType; |
|
59 |
} |
|
60 |
|
|
61 |
public String getAddressList() { |
|
62 |
return addressList; |
|
63 |
} |
|
64 |
|
|
65 |
public Date getUpdateTime() { |
|
66 |
return updateTime; |
|
67 |
} |
|
68 |
|
|
69 |
public void setUpdateTime(Date updateTime) { |
|
70 |
this.updateTime = updateTime; |
|
71 |
} |
|
72 |
|
|
73 |
public void setAddressList(String addressList) { |
|
74 |
this.addressList = addressList; |
|
75 |
} |
|
76 |
|
|
77 |
} |