Esempio n. 1
0
File: Qs.cs Progetto: xxjeng/nuxleus
 public BlipQueueServerService ( int port, string[] memcachedServers, string topLevelQueueId ) {
     // This call is required by the Windows.Forms Component Designer.
     InitializeComponent();
     server = new MessageServer(port, "\r\n\r\n");
     blipMessageHandler = new BlipMessageServerHandler(memcachedServers, topLevelQueueId);
     blipMessageHandler.Service = server.Service;
 }
Esempio n. 2
0
 public ReplicationService(int port)
 {
     // This call is required by the Windows.Forms Component Designer.
     InitializeComponent();
     server = new MessageServer(port, "\n");
     handler = new ReplicationHandler();
     handler.Service = server.Service;
 }
Esempio n. 3
0
        public LLUPPublisherService (int pubPort, int busPort)
        {
            // This call is required by the Windows.Forms Component Designer.
            InitializeComponent();

            pubServer = new MessageServer(pubPort, "\r\n");
            busServer = new MessageServer(busPort, "\r\n");

            pub = new PublisherHandler();

            pub.ReceiverService = pubServer.Service;
            pub.DispatcherService = busServer.Service;
        }
Esempio n. 4
0
        public LLUPRouterService (string ipToBind, int portToBind, int servingPort, IRouterFilter filter)
        {
            // This call is required by the Windows.Forms Component Designer.
            InitializeComponent();

            boundTo = new MessageClient(ipToBind, portToBind, "\r\n");
            servingOn = new MessageServer(servingPort, "\r\n");

            router = new RouterHandler();
            router.ReceiverService = boundTo.Service;
            router.FilterService = servingOn.Service;
            if (filter != null)
                router.Filter = filter;
        }
Esempio n. 5
0
	public QsToLLUPService(string qsIp, int qsPort, int pubPort, string[] monitoredQueues)
	  {
            // This call is required by the Windows.Forms Component Designer.
            InitializeComponent();

            qsConnection = new MessageClient(qsIp, qsPort, "\r\n\r\n");
            pubServer = new MessageServer(pubPort, "\r\n");

	    handler = new QSToLLUPHandler();
	    
	    handler.PollService = qsConnection.Service;
	    handler.DispatcherService = pubServer.Service;

	    foreach(string queueId in monitoredQueues) {
	      handler.MonitoredQueues.Add(queueId);
	    }
	  }
Esempio n. 6
0
        public NuxleusCoreService(int port)
        {
            // This call is required by the Windows.Forms Component Designer.
            InitializeComponent();

            m_nuxleusCoreMessageServer = new MessageServer(port, "\r\n");

            m_nuxleusCoreHandler = new NuxleusCoreHandler();
            m_nuxleusCoreHandler.ReceiverService = m_nuxleusCoreMessageServer.Service;

            ///TODO: This needs to be integrated into the core messaging server
            ///and used to dispatch requests based on the number of processors
            ///on the system.  See LoadBalancer folder for more detail.

            ///LoadBalancer loadBalancer = LoadBalancer.GetLoadBalancer();

        }