-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWrite.java
54 lines (54 loc) · 911 Bytes
/
Write.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
public class Write implements java.io.Serializable
{
private String op;
private SongEntry s;
private int acceptTime;
private int replicaId;
private int CSN;
Write(SongEntry s, String op)
{
setOp(op);
setSongEntry(s);
setCSN(-1); // where -1 represents infinity
}
public String getOp()
{
return op;
}
public SongEntry getSongEntry()
{
return s;
}
public void setOp(String op)
{
this.op=op;
}
public void setSongEntry(SongEntry s)
{
this.s=s;
}
public int getAcceptTime()
{
return acceptTime;
}
public void setAcceptTime(int acceptTime)
{
this.acceptTime=acceptTime;
}
public int getReplicaId()
{
return replicaId;
}
public void setReplicaId(int replicaId)
{
this.replicaId=replicaId;
}
public void setCSN(int CSN)
{
this.CSN=CSN;
}
public int getCSN()
{
return CSN;
}
}