Example #1
0
 // Constructor
 //      Initializes the comm object and starts the message handling thread
 public Repo(string baseAddress, int port)
 {
     commObj = new MessagePassing.Comm(baseAddress, port);
     base.messageHandlerThread.Start();
     //initializeEnvironment();
     localFileMgr = FileMgrFactory.create(FileMgrType.Local);
     //initializeDispatcher();
 }
Example #2
0
 //private
 // Constructor:
 //      Initializes a Comm object
 //      Sends a ready status to the mother builder after spawning
 public Builder(string childProcAddr)
 {
     Console.WriteLine("\n ************************************************ \n");
     Console.WriteLine(" Child Builder starting at: {0} ", childProcAddr);
     Console.WriteLine("\n ************************************************ \n");
     commObj     = new MessagePassing.Comm(childProcAddr);
     builderPort = childProcAddr + "/IMessagePassingComm";
     sendReadyStat(childProcAddr);
     createDir(childProcAddr);
 }
Example #3
0
        // Constructor:
        //      Initializes a comm for mother builder
        //      Starts the message handling thread for getMessage
        //      Spawns the initialized number of child builders and stores their addresses
        //      Starts the buildRequestDispatcher thread
        public MotherBuilder(string baseAddress, int port, int numProc)
        {
            commObj       = new MessagePassing.Comm(baseAddress, port);
            buildRequestQ = new SWTools.BlockingQueue <CommMessage>();
            readyStatusQ  = new SWTools.BlockingQueue <string>();

            base.messageHandlerThread.Start();

            numProcess = numProc;
            int childPortStart = 8085;

            updateChildProcPorts(baseAddress, childPortStart, numProc);
            spawnProcess(childProcessAddr, numProcess);

            messageHandlerThread = new Thread(buildRequestDispatcher);
            messageHandlerThread.Start();
        }
 public TestHarness(string baseAddress, int port)
 {
     commObj = new MessagePassing.Comm(baseAddress, port);
     base.messageHandlerThread.Start();
     testerPort = baseAddress + port + "/IMessagePassingComm";
 }