Beispiel #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;
 }
Beispiel #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;
 }
Beispiel #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;
        }
Beispiel #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;
 }
Beispiel #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);
        }
Beispiel #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;
 }