Ejemplo n.º 1
0
 public JMSSubscriber(string server,string userId, string password, string topicName,CallbackHandler handler,string filterCondition)
 {
     this.jmsServer = server;
     this.userId = userId;
     this.password = password;
     this.topicName = topicName;
     this.handler = handler;
     this.filterCondition = filterCondition;
 }
Ejemplo n.º 2
0
 public Listener(string server, string userId, string pwd, string topicName, NotifyCallBack callback,
     string filterCondition, List<string> pPermKeyList, bool pIsSuperUser)
 {
     this.topicName = topicName;
     this.callback = callback;
     handler = new CallbackHandler(callback, pPermKeyList, pIsSuperUser);
     handler.TopicName = this.topicName;
     JMSFactory factory = JMSFactory.getFactory(server, userId, pwd);
     subscriber = factory.GetInstance(topicName,handler,filterCondition);
     this.filterCondition = filterCondition;
 }
Ejemplo n.º 3
0
        public Listener(string server, string userId, string pwd, string topicName, NotifyCallBack callback,
                        string filterCondition, List <string> pPermKeyList, bool pIsSuperUser)
        {
            this.topicName    = topicName;
            this.callback     = callback;
            handler           = new CallbackHandler(callback, pPermKeyList, pIsSuperUser);
            handler.TopicName = this.topicName;
            JMSFactory factory = JMSFactory.getFactory(server, userId, pwd);

            subscriber           = factory.GetInstance(topicName, handler, filterCondition);
            this.filterCondition = filterCondition;
        }
Ejemplo n.º 4
0
 public ISubscriber GetInstance(string topicName,CallbackHandler handler,string filterCondition)
 {
     ISubscriber subscriber = null;
     if (subscriberList.ContainsKey(topicName))
     {
         subscriber = subscriberList[topicName];
     }
     else
     {
         subscriber = new JMSSubscriber(tibcoServerName, tibcoUser, tibcoPwd, topicName, handler, filterCondition);
     }
     return subscriber;
 }
Ejemplo n.º 5
0
        public ISubscriber GetInstance(string topicName, CallbackHandler handler, string filterCondition)
        {
            ISubscriber subscriber = null;

            if (subscriberList.ContainsKey(topicName))
            {
                subscriber = subscriberList[topicName];
            }
            else
            {
                subscriber = new JMSSubscriber(tibcoServerName, tibcoUser, tibcoPwd, topicName, handler, filterCondition);
            }
            return(subscriber);
        }
Ejemplo n.º 6
0
 public JMSSubscriber(string server, string userId, string password, string topicName, CallbackHandler handler, string filterCondition)
 {
     this.jmsServer       = server;
     this.userId          = userId;
     this.password        = password;
     this.topicName       = topicName;
     this.handler         = handler;
     this.filterCondition = filterCondition;
 }