Parent Directory | Revision Log
First Commit, corresponds to Revision 1008 of Wikisquare-SVN
1 | package appl.parallel.test; |
2 | |
3 | import java.io.Serializable; |
4 | |
5 | /** |
6 | * Simply constructs a object with a given size which can be used for pinging. |
7 | * @author Dominik Appl |
8 | */ |
9 | public class PingTestObject implements Serializable { |
10 | byte[] data = null; |
11 | |
12 | |
13 | /** |
14 | * @param bytes pingobject size in bytes |
15 | */ |
16 | public PingTestObject(int bytes) |
17 | { |
18 | data = new byte[bytes]; |
19 | for (int i = 0; i < data.length; i++) { |
20 | data[i]=(byte) i; |
21 | }} |
22 | |
23 | } |
[email protected] | ViewVC Help |
Powered by ViewVC 1.1.26 |