0
|
1 package rep;
|
|
2
|
|
3 public class REPCommand {
|
8
|
4 public static REPCommand SMCMD_SESSION_JOIN = new REPCommand(REP.SMCMD_SM_JOIN, 0, 0, 0, 0, 0, "");
|
0
|
5 public int cmd;
|
|
6 public int sid;
|
|
7 public int eid;
|
|
8 public int seq;
|
|
9 public int len;
|
|
10 public int lineno;
|
|
11 public boolean stat;
|
|
12
|
|
13 public String string;
|
|
14 private int textsiz;
|
17
|
15 String host;
|
19
|
16 String port;
|
0
|
17
|
|
18 public REPCommand(int cmd,int sid,int eid, int seq, int lineno, int textsiz, String string) {
|
|
19 this.cmd = cmd;
|
|
20 this.sid = sid;
|
|
21 this.eid = eid;
|
|
22 this.seq = seq;
|
|
23 this.textsiz = textsiz;
|
|
24 this.lineno = lineno;
|
|
25 this.string = string;
|
|
26 }
|
|
27
|
|
28 public String toString(){
|
|
29 String repCmdString = new String(cmd + "," + sid + "," + eid + "," + seq + "," + lineno + "," + textsiz + "," + string);
|
|
30 return repCmdString;
|
|
31 }
|
|
32
|
|
33 public void setEID(int eid2) {
|
|
34 // TODO Auto-generated method stub
|
|
35 this.eid = eid2;
|
|
36 }
|
|
37
|
|
38 public void setCMD(int cmd2) {
|
|
39 // TODO Auto-generated method stub
|
|
40 this.cmd = cmd2;
|
|
41 }
|
|
42
|
|
43 public void setSID(int sessionID) {
|
|
44 // TODO Auto-generated method stub
|
|
45 this.sid = sessionID;
|
|
46 }
|
1
|
47
|
12
|
48 public void setString(String string2) {
|
|
49 // TODO Auto-generated method stub
|
|
50 string = string2;
|
|
51 }
|
|
52
|
17
|
53 public void setHost(String host) {
|
|
54 // TODO Auto-generated method stub
|
|
55 this.host = host;
|
|
56 }
|
|
57
|
19
|
58 public void setPort(String port) {
|
17
|
59 // TODO Auto-generated method stub
|
|
60 this.port = port;
|
|
61 }
|
|
62
|
0
|
63 }
|