1 /*
2 * This file is part of Waarp Project (named also Waarp or GG).
3 *
4 * Copyright (c) 2019, Waarp SAS, and individual contributors by the @author
5 * tags. See the COPYRIGHT.txt in the distribution for a full listing of
6 * individual contributors.
7 *
8 * All Waarp Project is free software: you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or (at your
11 * option) any later version.
12 *
13 * Waarp is distributed in the hope that it will be useful, but WITHOUT ANY
14 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
15 * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along with
18 * Waarp . If not, see <http://www.gnu.org/licenses/>.
19 */
20 package org.waarp.openr66.protocol.localhandler.packet.json;
21
22 import org.waarp.openr66.protocol.localhandler.packet.LocalPacketFactory;
23
24 /**
25 * Export Log response JSON packet
26 */
27 public class LogResponseJsonPacket extends LogJsonPacket {
28
29 protected byte command;
30 protected String filename;
31 protected long exported;
32 protected long purged;
33
34 /**
35 * @return the command
36 */
37 public byte getCommand() {
38 return command;
39 }
40
41 /**
42 * @param command the command to set
43 */
44 public void setCommand(final byte command) {
45 this.command = command;
46 }
47
48 /**
49 * @return the filename
50 */
51 public String getFilename() {
52 return filename;
53 }
54
55 /**
56 * @param filename the filename to set
57 */
58 public void setFilename(final String filename) {
59 this.filename = filename;
60 }
61
62 /**
63 * @return the exported
64 */
65 public long getExported() {
66 return exported;
67 }
68
69 /**
70 * @param exported the exported to set
71 */
72 public void setExported(final long exported) {
73 this.exported = exported;
74 }
75
76 /**
77 * @return the purged
78 */
79 public long getPurged() {
80 return purged;
81 }
82
83 /**
84 * @param purged the purged to set
85 */
86 public void setPurged(final long purged) {
87 this.purged = purged;
88 }
89
90 @Override
91 public final void setRequestUserPacket() {
92 setRequestUserPacket(LocalPacketFactory.LOGPACKET);
93 }
94 }