Mercurial > hg > FederatedLinda
comparison src/fdl/TestEtc.java @ 4:2023d9b31af9
fix parameter
author | fuchita |
---|---|
date | Tue, 12 Feb 2008 09:15:25 +0900 |
parents | ae7e0e92c651 |
children | 609b288f47f9 |
comparison
equal
deleted
inserted
replaced
3:ae7e0e92c651 | 4:2023d9b31af9 |
---|---|
1 | 1 |
2 package fdl; | 2 package fdl; |
3 | 3 |
4 import java.io.IOException; | 4 import java.io.IOException; |
5 import java.nio.ByteBuffer; | 5 //import java.nio.ByteBuffer; |
6 | 6 |
7 public class TestEtc implements PSXQueueInterface { | 7 public class TestEtc implements PSXQueueInterface { |
8 static final int MAX_REQ = 1; | 8 static final int MAX_REQ = 1; |
9 static final int FAIL = (-1); | 9 static final int FAIL = (-1); |
10 static final int MAX_UAER = 4; | 10 static final int MAX_UAER = 4; |
28 String socketString = "java.nio.channels.SocketChannel[connected local=/133.13.57.210:10001 remote=/133.13.57.210:50634]"; | 28 String socketString = "java.nio.channels.SocketChannel[connected local=/133.13.57.210:10001 remote=/133.13.57.210:50634]"; |
29 String[] split = socketString.split("/"); | 29 String[] split = socketString.split("/"); |
30 String local[] = split[1].split(" "); | 30 String local[] = split[1].split(" "); |
31 String remote[] = split[2].split("]"); | 31 String remote[] = split[2].split("]"); |
32 | 32 |
33 String localAddress = local[0]; | 33 @SuppressWarnings("unused") |
34 String remoteAddress = remote[0]; | 34 final String localAddress = local[0]; |
35 @SuppressWarnings("unused") | |
36 final String remoteAddress = remote[0]; | |
35 | 37 |
36 System.out.println(local[0]); | 38 System.out.println(local[0]); |
37 System.out.println(remote[0]); | 39 System.out.println(remote[0]); |
38 // System.out.println("tmpTuple "+tmpTuple.toString()); | 40 // System.out.println("tmpTuple "+tmpTuple.toString()); |
39 // System.out.println("testTS "+testTS[MAX_TUPLE-1].toString()); | 41 // System.out.println("testTS "+testTS[MAX_TUPLE-1].toString()); |