Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'coverity_scan' of github.com:mquinson/simgrid
[simgrid.git] / examples / java / kademlia / FindNodeTask.java
1 /* Copyright (c) 2012-2014, 2016. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 package kademlia;
8
9 /**
10  * @brief Find node tasks sent by a node to another "Find Node" task sent by a node to another. Ask him for its closest
11  * nodes from a destination.
12  */
13 public class FindNodeTask extends KademliaTask {
14   /* Id of the node we are trying to find: the destination */
15   private int destination;
16
17   public FindNodeTask(int senderId, int destination) {
18     super(senderId);  
19     this.destination = destination;
20   }
21
22   public int getDestination() {
23     return destination;
24   }
25 }