this(null,null);
}
+ public ChordTask(String issuerHostName, String answerTo) {
+ super(null, Common.COMP_SIZE, Common.COMM_SIZE);
+ this.issuerHostName = issuerHostName;
+ this.answerTo = answerTo;
+ }
+
public String getIssuerHostName(){
return this.issuerHostName;
}
public String getAnswerTo(){
return this.answerTo;
}
-
- public ChordTask(String issuerHostName, String answerTo) {
- super(null, Common.COMP_SIZE, Common.COMM_SIZE);
- this.issuerHostName = issuerHostName;
- this.answerTo = answerTo;
- }
}
public class FindSuccessorAnswerTask extends ChordTask {
private int answerId;
- public int getAnswerId(){
- return this.answerId;
- }
public FindSuccessorAnswerTask(String issuerHostname, String answerTo, int answerId) {
super(issuerHostname,answerTo);
this.answerId = answerId;
}
+
+ public int getAnswerId(){
+ return this.answerId;
+ }
}
public class FindSuccessorTask extends ChordTask {
private int requestId;
- public int getRequestId(){
- return this.requestId;
- }
-
public FindSuccessorTask(String issuerHostname, String answerTo, int requestId) {
super(issuerHostname, answerTo);
this.requestId = requestId;
}
+
+ public int getRequestId(){
+ return this.requestId;
+ }
}
public class GetPredecessorAnswerTask extends ChordTask {
private int answerId;
- public int getAnswerId(){
- return this.answerId;
- }
-
public GetPredecessorAnswerTask(String issuerHostname, String answerTo, int answerId) {
super(issuerHostname,answerTo);
this.answerId = answerId;
}
+
+ public int getAnswerId(){
+ return this.answerId;
+ }
}
public class NotifyTask extends ChordTask {
private int requestId;
- public int getRequestId(){
- return this.requestId;
- }
public NotifyTask(String issuerHostname, String answerTo, int requestId) {
super(issuerHostname, answerTo);
this.requestId = requestId;
}
+
+ public int getRequestId(){
+ return this.requestId;
+ }
}