-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
partially fixes name ids and numerical ids
- Loading branch information
Showing
14 changed files
with
102 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
src/main/java/underlay/packets/requests/GetRightLadderRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
package underlay.packets.requests; | ||
|
||
import model.identifier.MembershipVector; | ||
import underlay.packets.Request; | ||
import underlay.packets.RequestType; | ||
|
||
/** | ||
* Request for getting right ladder. | ||
*/ | ||
public class GetRightLadderRequest extends Request { | ||
|
||
public final int level; | ||
public final String nameId; | ||
public final MembershipVector membershipVector; | ||
|
||
/** | ||
* Constructor for GetRightLadderRequest. | ||
* | ||
* @param level Integer representing level. | ||
* @param nameId Name id of the node. | ||
* @param membershipVector the membership vector of the node. | ||
*/ | ||
public GetRightLadderRequest(int level, String nameId) { | ||
public GetRightLadderRequest(int level, MembershipVector membershipVector) { | ||
super(RequestType.GetRightLadder); | ||
this.level = level; | ||
this.nameId = nameId; | ||
this.membershipVector = membershipVector; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/main/java/underlay/packets/requests/SearchByMembershipVectorRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package underlay.packets.requests; | ||
|
||
import model.identifier.MembershipVector; | ||
import underlay.packets.Request; | ||
import underlay.packets.RequestType; | ||
|
||
/** | ||
* Request for searching by name id. | ||
*/ | ||
public class SearchByMembershipVectorRequest extends Request { | ||
|
||
public final MembershipVector targetMembershipVector; | ||
|
||
public SearchByMembershipVectorRequest(MembershipVector targetNameId) { | ||
super(RequestType.SearchByMembershipVector); | ||
this.targetMembershipVector = targetNameId; | ||
} | ||
} |
18 changes: 0 additions & 18 deletions
18
src/main/java/underlay/packets/requests/SearchByNameIdRequest.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.