コード例 #1
0
ファイル: JMSSubscriber.cs プロジェクト: Amphora2015/DemoTest
 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;
 }
コード例 #2
0
ファイル: Listener.cs プロジェクト: Amphora2015/DemoTest
 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;
 }
コード例 #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;
        }
コード例 #4
0
ファイル: JMSFactory.cs プロジェクト: Amphora2015/DemoTest
 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;
 }
コード例 #5
0
ファイル: JMSFactory.cs プロジェクト: GDuggi/DemoTest
        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);
        }
コード例 #6
0
ファイル: JMSSubscriber.cs プロジェクト: GDuggi/DemoTest
 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;
 }