Ejemplo n.º 1
0
        private static void deactivate(Test.IRemoteCommunicatorPrx communicator, List <Test.IRemoteObjectAdapterPrx> adapters)
        {
            IEnumerator <Test.IRemoteObjectAdapterPrx> p = adapters.GetEnumerator();

            while (p.MoveNext())
            {
                communicator.deactivateObjectAdapter(p.Current);
            }
        }
Ejemplo n.º 2
0
 public HeartbeatManualTest(Test.IRemoteCommunicatorPrx com, global::Test.TestHelper helper) :
     base("manual heartbeats", com, helper)
 {
     //
     // Disable heartbeats.
     //
     SetClientACM(10, -1, 0);
     SetServerACM(10, -1, 0);
 }
Ejemplo n.º 3
0
        public TestCase(string name, Test.IRemoteCommunicatorPrx com, global::Test.TestHelper helper)
        {
            _name   = name;
            _com    = com;
            _output = helper.getWriter();
            _logger = new LoggerI(_name, _output);
            _helper = helper;

            _clientACMTimeout   = -1;
            _clientACMClose     = -1;
            _clientACMHeartbeat = -1;

            _serverACMTimeout   = -1;
            _serverACMClose     = -1;
            _serverACMHeartbeat = -1;

            _heartbeat = 0;
            _closed    = false;
        }
Ejemplo n.º 4
0
 public SetACMTest(Test.IRemoteCommunicatorPrx com, global::Test.TestHelper helper) :
     base("setACM/getACM", com, helper)
 {
     SetClientACM(15, 4, 0);
 }
Ejemplo n.º 5
0
 public HeartbeatAlwaysTest(Test.IRemoteCommunicatorPrx com, global::Test.TestHelper helper) :
     base("heartbeat always", com, helper)
 {
     SetServerACM(1, -1, 3); // Enable server heartbeats.
 }
Ejemplo n.º 6
0
 public HeartbeatOnIdleTest(Test.IRemoteCommunicatorPrx com, global::Test.TestHelper helper) :
     base("heartbeat on idle", com, helper)
 {
     SetServerACM(1, -1, 2); // Enable server heartbeats.
 }
Ejemplo n.º 7
0
 public ForcefulCloseOnIdleAndInvocationTest(Test.IRemoteCommunicatorPrx com, global::Test.TestHelper helper) :
     base("forceful close on idle and invocation", com, helper)
 {
     SetClientACM(1, 4, 0); // Only close on idle and invocation
 }
Ejemplo n.º 8
0
 public CloseOnInvocationTest(Test.IRemoteCommunicatorPrx com, global::Test.TestHelper helper) :
     base("close on invocation", com, helper)
 {
     SetClientACM(1, 2, 0); // Only close on invocation
 }
Ejemplo n.º 9
0
 public CloseOnIdleTest(Test.IRemoteCommunicatorPrx com, global::Test.TestHelper helper) :
     base("close on idle", com, helper)
 {
     SetClientACM(1, 1, 0); // Only close on idle
 }
Ejemplo n.º 10
0
 public InvocationHeartbeatCloseOnIdleTest(Test.IRemoteCommunicatorPrx com, global::Test.TestHelper helper) :
     base("invocation with no heartbeat and close on idle", com, helper)
 {
     SetClientACM(1, 1, 0); // Only close on idle.
     SetServerACM(1, 2, 0); // Disable heartbeat on invocations
 }
Ejemplo n.º 11
0
 public InvocationNoHeartbeatTest(Test.IRemoteCommunicatorPrx com, global::Test.TestHelper helper) :
     base("invocation with no heartbeat", com, helper)
 {
     SetServerACM(2, 2, 0); // Disable heartbeat on invocations
 }
Ejemplo n.º 12
0
 public InvocationHeartbeatOnHoldTest(Test.IRemoteCommunicatorPrx com, global::Test.TestHelper helper) :
     base("invocation with heartbeat on hold", com, helper)
 {
     // Use default ACM configuration.
 }
Ejemplo n.º 13
0
 public InvocationHeartbeatTest(Test.IRemoteCommunicatorPrx com, global::Test.TestHelper helper) :
     base("invocation heartbeat", com, helper)
 {
     SetServerACM(1, -1, -1); // Faster ACM to make sure we receive enough ACM heartbeats
 }
Ejemplo n.º 14
0
 public CloseOnIdleAndInvocationTest(Test.IRemoteCommunicatorPrx com, global::Test.TestHelper helper) :
     base("close on idle and invocation", com, helper)
 {
     setClientACM(3, 3, 0); // Only close on idle and invocation
 }