Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill some memory leaks.
[simgrid.git] / examples / java / chord / ChordTask.java
1 /*
2  * Copyright (c) 2006-2013. The SimGrid Team.
3  * All rights reserved.
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of the license (GNU LGPL) which comes with this package. 
7  */
8 package chord;
9
10 import org.simgrid.msg.Task;
11
12 import chord.Common;
13 /**
14  * Base class for all Tasks in Chord.
15  */
16 public class ChordTask extends Task {
17         public String issuerHostName;
18         public String answerTo;
19         public ChordTask() {
20                 this(null,null);
21         }
22         public ChordTask(String issuerHostName, String answerTo) {
23                 super(null, Common.COMP_SIZE, Common.COMM_SIZE);
24                 this.issuerHostName = issuerHostName;
25                 this.answerTo = answerTo;
26         }
27 }