Changeset 111 for branches/supervisor
- Timestamp:
- 11/11/13 12:11:51 (11 years ago)
- Location:
- branches/supervisor
- Files:
-
- 1 added
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/supervisor/src/main/java/omq/client/proxy/Proxymq.java
r110 r111 268 268 269 269 // Wait for the results. 270 long localTimeout = timeout;270 long localTimeout = 0; 271 271 long start = System.currentTimeMillis(); 272 272 synchronized (results) { … … 320 320 321 321 int i = 0; 322 long localTimeout = timeout;322 long localTimeout = 0; 323 323 long start = System.currentTimeMillis(); 324 324 … … 380 380 381 381 @Override 382 public void setUID(String uID) { System.out.println("SET UID");382 public void setUID(String uID) { 383 383 this.UID = uID; 384 384 } -
branches/supervisor/src/main/java/omq/common/broker/Broker.java
r106 r111 3 3 import java.io.IOException; 4 4 import java.lang.reflect.Proxy; 5 import java.net.URL;6 5 import java.util.HashMap; 7 6 import java.util.Hashtable; … … 23 22 24 23 import org.apache.log4j.Logger; 25 import org.apache.log4j.xml.DOMConfigurator; 26 24 25 import com.rabbitmq.client.AMQP.BasicProperties; 27 26 import com.rabbitmq.client.Channel; 28 27 import com.rabbitmq.client.Connection; 29 28 import com.rabbitmq.client.QueueingConsumer; 30 import com.rabbitmq.client.AMQP.BasicProperties;31 29 import com.rabbitmq.client.QueueingConsumer.Delivery; 32 30 import com.rabbitmq.client.ShutdownListener; … … 60 58 public Broker(Properties env) throws Exception { 61 59 // Load log4j configuration 62 URL log4jResource = Broker.class.getResource("/log4j.xml");63 DOMConfigurator.configure(log4jResource);60 // URL log4jResource = Broker.class.getResource("/log4j.xml"); 61 // DOMConfigurator.configure(log4jResource); 64 62 65 63 remoteObjs = new HashMap<String, RemoteObject>(); … … 69 67 channel = connection.createChannel(); 70 68 addFaultTolerance(); 71 try { 72 tryConnection(env); 73 } catch (Exception e) { 74 channel.close(); 75 connection.close(); 69 if (!connection.isOpen() || !channel.isOpen()) { 70 if (connection.isOpen()) { 71 connection.close(); 72 } 76 73 throw new InitBrokerException("The connection didn't work"); 77 74 } 75 76 // try { 77 // tryConnection(env); 78 // } catch (Exception e) { 79 // channel.close(); 80 // connection.close(); 81 // throw new InitBrokerException("The connection didn't work"); 82 // } 78 83 } 79 84 … … 99 104 100 105 clientStarted = false; 101 connectionClosed = false;106 // connectionClosed = false; 102 107 environment = null; 103 108 remoteObjs = null; … … 121 126 connectionClosed = true; 122 127 connection.close(); 123 connectionClosed = false;128 // connectionClosed = false; 124 129 } 125 130 … … 154 159 * @throws IOException 155 160 */ 156 public synchronized void publishMessge(String exchange, String routingKey, BasicProperties props, byte[] bytesRequest) throws IOException { 161 public synchronized void publishMessge(String exchange, String routingKey, BasicProperties props, byte[] bytesRequest) 162 throws IOException { 157 163 if (!channel.isOpen()) { 158 164 logger.error("Broker's channel is closed opening a new one", channel.getCloseReason()); -
branches/supervisor/src/main/resources/log4j.xml
r110 r111 4 4 <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> 5 5 <appender name="consoleAppender" class="org.apache.log4j.ConsoleAppender"> 6 <param name="Threshold" value=" INFO" />6 <param name="Threshold" value="OFF" /> 7 7 <layout class="org.apache.log4j.PatternLayout"> 8 8 <param name="ConversionPattern" value="%d{[yyyy-MM-dd HH:mm:ss]} %-5p %c:%L - %m%n" /> … … 30 30 31 31 <root> 32 <priority value =" INFO" />32 <priority value ="OFF" /> 33 33 <appender-ref ref="consoleAppender" /> 34 34 <appender-ref ref="A2" /> -
branches/supervisor/target/maven-archiver/pom.properties
r84 r111 1 1 #Generated by Maven 2 # Mon Jul 08 16:29:44CEST 20133 version=0. 5.52 #Thu Oct 24 11:59:20 CEST 2013 3 version=0.6.0 4 4 groupId=objectmq 5 5 artifactId=objectmq -
branches/supervisor/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
r83 r111 1 omq/test/ multiProcess/Number.class1 omq/test/supervisor/SleepImpl.class 2 2 omq/test/python/Address.class 3 3 omq/test/faultTolerance/FaultToleranceTest.class 4 test/multi/BeerImpl.class 4 5 omq/test/workspace/RemoteWorkspaceImpl.class 5 omq/test/serializer/CalculatorTest.class6 6 omq/test/python/ContactList.class 7 7 omq/test/calculator/Message.class 8 omq/test/stopBroker/BrokerKiller.class9 8 omq/test/exception/OmqServerImpl.class 10 omq/test/workspace/Info.class11 omq/test/event/MessageTest.class12 9 omq/test/multiProcess/NumberClient.class 13 omq/test/python/Server.class 14 omq/test/stopBroker/StopBrokerTest.class 10 omq/test/observer/RemoteObserver.class 15 11 omq/test/multiProcess/MultiProcessTest.class 16 omq/test/observer/RemoteObserver.class 12 test/queues/BeerImpl.class 13 omq/test/multiThread2/Print.class 14 omq/test/python/Contact.class 17 15 omq/test/persistence/PersistentTest.class 18 omq/test/python/Contact.class19 16 omq/test/event/MessageImpl.class 20 17 omq/test/event/Message.class 21 omq/test/stopBroker/UnbindTest.class22 18 omq/test/stopBroker/BrokerKillerImpl$1.class 23 19 omq/test/exception/ServerInterface.class 24 omq/test/workspace/WorkspaceTest.class25 omq/test/observer/RemoteSubject.class26 omq/test/calculator/CalculatorImpl.class27 20 omq/test/calculator/CalculatorTest.class 28 omq/test/temporal/ProvaTest.class29 omq/test/python/ContactListImpl.class21 test/multi/BeerTest.class 22 test/queues/BeerTest.class 30 23 omq/test/exception/ClientInterface.class 31 omq/test/observer/ObserverTest.class 24 test/queues/Beer.class 25 omq/test/multiThread2/PrintImpl.class 26 omq/test/remotePool/RemotePoolTest.class 32 27 omq/test/persistence/Message.class 33 28 omq/test/exception/ExceptionTest.class … … 35 30 omq/test/multiProcess/NumberImpl.class 36 31 omq/test/observer/RemoteObserverImpl.class 32 omq/test/multiThread2/MultiThreadTest.class 33 omq/test/persistence/MessageImpl.class 34 omq/test/stopBroker/BrokerKillerImpl.class 35 omq/test/exception/Trailer.class 36 omq/test/multiProcess/Number.class 37 omq/test/multiThread2/PrintTest.class 38 omq/test/lock/SleepTest.class 39 omq/test/lock/SleepImpl.class 40 omq/test/serializer/CalculatorTest.class 41 omq/test/remotePool/Sleep.class 42 omq/test/stopBroker/BrokerKiller.class 43 omq/test/workspace/Info.class 44 omq/test/event/MessageTest.class 45 omq/test/multiThread/ThreadTest$1.class 46 omq/test/python/Server.class 47 omq/test/stopBroker/StopBrokerTest.class 48 omq/test/multiThread/RemoteMulti.class 49 omq/test/stopBroker/UnbindTest.class 50 omq/test/workspace/WorkspaceTest.class 51 omq/test/multiThread/ThreadTest.class 52 omq/test/observer/RemoteSubject.class 53 omq/test/calculator/CalculatorImpl.class 54 omq/test/lock/Sleep.class 55 omq/test/temporal/ProvaTest.class 56 omq/test/python/ContactListImpl.class 57 omq/test/supervisor/SleepTest.class 58 test/multi/Beer.class 59 omq/test/observer/ObserverTest.class 60 omq/test/multiThread2/SleepImpl.class 61 test/multi/ClientBeer.class 62 omq/test/remotePool/SleepImpl.class 63 omq/test/multiThread/ZeroThread.class 37 64 omq/test/python/CalculatorImpl.class 38 omq/test/ persistence/MessageImpl.class65 omq/test/supervisor/Sleep.class 39 66 omq/test/python/Calculator.class 40 omq/test/ stopBroker/BrokerKillerImpl.class67 omq/test/multiThread2/Sleep.class 41 68 omq/test/calculator/Calculator.class 42 omq/test/exception/Trailer.class43 69 omq/test/observer/RemoteSubjectImpl.class 70 omq/test/multiThread/MultiInterface.class
Note: See TracChangeset
for help on using the changeset viewer.