Package org.rhq.enterprise.communications

Examples of org.rhq.enterprise.communications.ServiceContainer.shutdown()


            if (sender != null) {
                sender.stopSending(false);
            }

            sc.shutdown();
        }
    }

    /**
     * This tests shows that we can define a timeout and see the concurrency limitation feature abort after the timeout
View Full Code Here


            if (sender != null) {
                sender.stopSending(false);
            }

            sc.shutdown();
        }
    }

    /**
     * This tests that we can still have unlimited concurrency.
View Full Code Here

            if (sender != null) {
                sender.stopSending(false);
            }

            sc.shutdown();
        }
    }

    /**
     * This tests that we can define a global limit.
View Full Code Here

            if (sender != null) {
                sender.stopSending(false);
            }

            sc.shutdown();
        }
    }

    private Preferences getPrefs() {
        Preferences topNode = Preferences.userRoot().node("rhq-agent");
View Full Code Here

            assert !callback.response.isSuccessful() : "Command wasn't serializable, should have failed: "
                + callback.response;
            assert !callback.response.getCommand().getConfiguration().containsKey("rhq.retry") : "Should not have retried at all: "
                + callback.response;

            sc.shutdown();
            Thread.sleep(2000L); // give the server container time to shutdown

            // shutdown listener and try to send - should retry forever due to cannot-connect exception (max-retries will be ignored)
            cmd = createNewCommand("forever");
            callback = new TestCommandResponseCallback();
View Full Code Here

        } finally {
            if (sender != null) {
                sender.stopSending(false);
            }

            sc.shutdown();
        }
    }

    private Preferences getPrefs() {
        Preferences topNode = Preferences.userRoot().node("rhq-agent");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.