Changeset 49 for trunk/src/main/java/omq/server/RemoteWrapper.java
- Timestamp:
- 06/19/13 15:59:53 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/main/java/omq/server/RemoteWrapper.java
r44 r49 4 4 import java.util.concurrent.BlockingQueue; 5 5 import java.util.concurrent.LinkedBlockingDeque; 6 7 import org.apache.log4j.Logger; 6 8 7 9 import com.rabbitmq.client.QueueingConsumer; … … 14 16 */ 15 17 public class RemoteWrapper { 18 private static final Logger logger = Logger.getLogger(RemoteWrapper.class.getName()); 19 16 20 private RemoteObject obj; 17 21 private int numThreads; … … 25 29 deliveryQueue = new LinkedBlockingDeque<QueueingConsumer.Delivery>(); 26 30 27 System.out.println("RemoteWrapper -> Object: " + obj.getRef() + ", numthreads listening = " + numThreads);31 logger.info("Object reference: " + obj.getRef() + ", numthreads listening = " + numThreads); 28 32 29 33 for (int i = 0; i < numThreads; i++) { … … 39 43 40 44 public void stopRemoteWrapper() { 45 logger.warn("Stopping Invocation threads vinculed to " + obj.getRef()); 41 46 for (InvocationThread thread : invocationList) { 42 47 thread.interrupt();
Note: See TracChangeset
for help on using the changeset viewer.