Beispiel #1
0
 public override void run(string[] args)
 {
     using (var communicator = initialize(ref args))
     {
         var output = getWriter();
         output.Write("testing server priority... ");
         output.Flush();
         var obj = communicator.stringToProxy("test:" + getTestEndpoint(0) + " -t 10000");
         Test.PriorityPrx priority = Test.PriorityPrxHelper.checkedCast(obj);
         test("AboveNormal".Equals(priority.getPriority()));
         output.WriteLine("ok");
         priority.shutdown();
     }
 }
Beispiel #2
0
    private static int run(string[] args, Ice.Communicator communicator)
    {
        Console.Out.Write("testing server priority... ");
        Console.Out.Flush();
        Ice.ObjectPrx    obj      = communicator.stringToProxy("test:default -p 12010 -t 10000");
        Test.PriorityPrx priority = Test.PriorityPrxHelper.checkedCast(obj);

        try
        {
            test("AboveNormal".Equals(priority.getPriority()));
        }
        catch (Exception ex)
        {
            Console.Error.WriteLine(ex.ToString());
            test(false);
        }
        Console.Out.WriteLine("ok");

        priority.shutdown();
        return(0);
    }
Beispiel #3
0
    public override int run(string[] args)
    {
        Console.Out.Write("testing server priority... ");
        Console.Out.Flush();
        Ice.ObjectPrx    obj      = communicator().stringToProxy("test:" + getTestEndpoint(0) + " -t 10000");
        Test.PriorityPrx priority = Test.PriorityPrxHelper.checkedCast(obj);

        try
        {
            test("AboveNormal".Equals(priority.getPriority()));
        }
        catch (Exception ex)
        {
            Console.Error.WriteLine(ex.ToString());
            test(false);
        }
        Console.Out.WriteLine("ok");

        priority.shutdown();
        return(0);
    }