Ignore:
Timestamp:
10/16/13 16:19:02 (11 years ago)
Author:
stoda
Message:

UID changed to reference
TODO: add UID

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/supervisor/src/main/java/omq/server/InvocationThread.java

    r102 r105  
    3535        // RemoteObject
    3636        private RemoteObject obj;
    37         private String UID;
     37        private String reference;
    3838        private Properties env;
    3939        private boolean idle;
     
    5454        public InvocationThread(RemoteObject obj) throws Exception {
    5555                this.obj = obj;
    56                 this.UID = obj.getRef();
     56                this.reference = obj.getRef();
    5757                this.env = obj.getEnv();
    5858                this.broker = obj.getBroker();
     
    176176                // Get info about which exchange and queue will use
    177177                String exchange = env.getProperty(ParameterQueue.RPC_EXCHANGE, "");
    178                 String queue = UID;
    179                 String routingKey = UID;
     178                String queue = reference;
     179                String routingKey = reference;
    180180
    181181                // RemoteObject default queue
     
    192192                        channel.queueBind(queue, exchange, routingKey);
    193193                }
    194                 logger.info("RemoteObject: " + UID + " declared direct exchange: " + exchange + ", Queue: " + queue + ", Durable: " + durable + ", Exclusive: "
     194                logger.info("RemoteObject: " + reference + " declared direct exchange: " + exchange + ", Queue: " + queue + ", Durable: " + durable + ", Exclusive: "
    195195                                + exclusive + ", AutoDelete: " + autoDelete);
    196196
     
    200200
    201201                // Get info about the multiQueue
    202                 String multiExchange = multi + UID;
    203                 // TODO:String multiExchange = multi + exchange + UID;
     202                String multiExchange = multi + reference;
     203                // TODO:String multiExchange = multi + exchange + reference;
    204204                multiQueue = env.getProperty(ParameterQueue.MULTI_QUEUE_NAME);
    205205
     
    217217                }
    218218                channel.queueBind(multiQueue, multiExchange, "");
    219                 logger.info("RemoteObject: " + UID + " declared fanout exchange: " + multiExchange + ", Queue: " + multiQueue + ", Durable: " + multiDurable
     219                logger.info("RemoteObject: " + reference + " declared fanout exchange: " + multiExchange + ", Queue: " + multiQueue + ", Durable: " + multiDurable
    220220                                + ", Exclusive: " + multiExclusive + ", AutoDelete: " + multiAutoDelete);
    221221
     
    236236
    237237        public void kill() throws IOException {
    238                 logger.info("Killing objectmq: " + UID + " thread id");
     238                logger.info("Killing objectmq: " + reference + " thread id");
    239239                killed = true;
    240240                interrupt();
Note: See TracChangeset for help on using the changeset viewer.