Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case INFO:
- // FIXME do not create a serverProxy like this, inject it using Guice
- try (SvpServerProxy serverProxy = new SvpServerProxy(message.getURL())) {
- List<DeploymentSummary> list = serverProxy.getDeployments().getDeploymentSummaryList();
- if (list == null) {
- message.setExitCode(2);
- throw new Exception(String.format("Cannot connect to \"%s\".", message.getURL()));
- }
- for (DeploymentSummary summary : list) {
- if (!summary.getDeploymentID().isEmpty()) {
- message.setVirtTitleList(summary.getVirtItem().getTitle());
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement