Exemplo n.º 1
0
        public virtual void TestClientStop()
        {
            Configuration conf   = new Configuration();
            AHSClient     client = AHSClient.CreateAHSClient();

            client.Init(conf);
            client.Start();
            client.Stop();
        }
Exemplo n.º 2
0
 /// <exception cref="System.Exception"/>
 protected override void ServiceStart()
 {
     try
     {
         rmClient = ClientRMProxy.CreateRMProxy <ApplicationClientProtocol>(GetConfig());
         if (historyServiceEnabled)
         {
             historyClient.Start();
         }
         if (timelineServiceEnabled)
         {
             timelineClient.Start();
         }
     }
     catch (IOException e)
     {
         throw new YarnRuntimeException(e);
     }
     base.ServiceStart();
 }