-
Notifications
You must be signed in to change notification settings - Fork 222
/
ChannelStatus.java
119 lines (99 loc) · 2.43 KB
/
ChannelStatus.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
package org.jumpmind.symmetric.web.rest;
public class ChannelStatus {
/**
* The ID or name of the channel. (e.g., 'employee')
*/
String channelId;
/**
* Is the channel enabled. Disabling the channel prevents all communication on the channel.
*/
boolean enabled;
/**
* An outgoing batch is in error.
*/
boolean outgoingError;
/**
* An incoming batch is in error.
*/
boolean incomingError;
/**
* The number of batches waiting to be sent.
*/
private int batchToSendCount;
/**
* The number of batches in the error state.
*/
private int batchInErrorCount;
/**
* @return The ID or name of the channel. (e.g., 'employee')
*/
public String getChannelId() {
return channelId;
}
/**
* @param channelId The ID or name of the channel. (e.g., 'employee')
*/
public void setChannelId(String channelId) {
this.channelId = channelId;
}
/**
* @return Is the channel enabled. Disabling the channel prevents all communication on the channel.
*/
public boolean isEnabled() {
return enabled;
}
/**
* @param enabled Is the channel enabled. Disabling the channel prevents all communication on the channel.
*/
public void setEnabled(boolean enabled) {
this.enabled = enabled;
}
/**
* @return An outgoing batch is in error.
*/
public boolean isOutgoingError() {
return outgoingError;
}
/**
* @param enabled An outgoing batch is in error.
*/
public void setOutgoingError(boolean outgoingError) {
this.outgoingError = outgoingError;
}
/**
* @return An incoming batch is in error.
*/
public boolean isIncomingError() {
return incomingError;
}
/**
* @param enabled An incoming batch is in error.
*/
public void setIncomingError(boolean incomingError) {
this.incomingError = incomingError;
}
/**
* @return The number of batches waiting to be sent.
*/
public int getBatchToSendCount() {
return batchToSendCount;
}
/**
* @param enabled The number of batches waiting to be sent.
*/
public void setBatchToSendCount(int batchToSendCount) {
this.batchToSendCount = batchToSendCount;
}
/**
* @return The number of batches in the error state.
*/
public int getBatchInErrorCount() {
return batchInErrorCount;
}
/**
* @param enabled The number of batches in the error state.
*/
public void setBatchInErrorCount(int batchInErrorCount) {
this.batchInErrorCount = batchInErrorCount;
}
}