1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.waarp.gateway.ftp.snmp;
21
22 import org.waarp.gateway.ftp.config.FileBasedConfiguration;
23 import org.waarp.snmp.interf.WaarpTimeTicks;
24
25
26
27
28 class FtpTimeTicks extends WaarpTimeTicks {
29
30
31
32 private static final long serialVersionUID = -4537649552332028472L;
33 private int type = 1;
34 private final int entry;
35
36 FtpTimeTicks(final int type, final int entry) {
37 this.type = type;
38 this.entry = entry;
39 setInternalValue();
40 }
41
42 FtpTimeTicks(final int type, final int entry, final long value) {
43 this.type = type;
44 this.entry = entry;
45 setInternalValue(value);
46 }
47
48 @Override
49 protected final void setInternalValue() {
50 FileBasedConfiguration.fileBasedConfiguration.getMonitoring()
51 .run(type, entry);
52 }
53
54 @Override
55 protected final void setInternalValue(final long value) {
56 setValue(value);
57 }
58 }