Beispiel #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);
            }
        }
Beispiel #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);
 }
Beispiel #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;
        }
Beispiel #4
0
 public SetACMTest(Test.IRemoteCommunicatorPrx com, global::Test.TestHelper helper) :
     base("setACM/getACM", com, helper)
 {
     SetClientACM(15, 4, 0);
 }
Beispiel #5
0
 public HeartbeatAlwaysTest(Test.IRemoteCommunicatorPrx com, global::Test.TestHelper helper) :
     base("heartbeat always", com, helper)
 {
     SetServerACM(1, -1, 3); // Enable server heartbeats.
 }
Beispiel #6
0
 public HeartbeatOnIdleTest(Test.IRemoteCommunicatorPrx com, global::Test.TestHelper helper) :
     base("heartbeat on idle", com, helper)
 {
     SetServerACM(1, -1, 2); // Enable server heartbeats.
 }
Beispiel #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
 }
Beispiel #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
 }
Beispiel #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
 }
Beispiel #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
 }
Beispiel #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
 }
Beispiel #12
0
 public InvocationHeartbeatOnHoldTest(Test.IRemoteCommunicatorPrx com, global::Test.TestHelper helper) :
     base("invocation with heartbeat on hold", com, helper)
 {
     // Use default ACM configuration.
 }
Beispiel #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
 }
Beispiel #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
 }