1 24 package org.objectweb.joram.mom.dest.bridge; 25 26 import java.util.Properties ; 27 28 import org.objectweb.joram.mom.dest.DestinationImpl; 29 import org.objectweb.joram.mom.dest.Queue; 30 31 import fr.dyade.aaa.agent.AgentId; 32 import fr.dyade.aaa.agent.Notification; 33 34 40 public class BridgeQueue extends Queue { 41 44 public BridgeQueue() { 45 super(); 46 fixed = true; 47 } 48 49 57 public DestinationImpl createsImpl(AgentId adminId, Properties prop) { 58 BridgeQueueImpl queueImpl = new BridgeQueueImpl(getId(), adminId, prop); 59 return queueImpl; 60 } 61 62 67 public void react(AgentId from, Notification not) 68 throws Exception { 69 if (not instanceof BridgeDeliveryNot) { 70 ((BridgeQueueImpl) destImpl).bridgeDelivery(from, (BridgeDeliveryNot) not); 71 } 72 else if (not instanceof BridgeAckNot) 73 ((BridgeQueueImpl) destImpl).bridgeAck((BridgeAckNot) not); 74 else 75 super.react(from, not); 76 } 77 } 78 | Popular Tags |