private void safeCloseClient() { try { getManagementClient().close(); } catch (final Exception e) { Logger.getLogger(this.getClass().getName()).log(Level.WARNING, "Caught exception closing ModelControllerClient", e); } } }
protected ModelControllerClient getModelControllerClient() { return getManagementClient().getControllerClient(); }
private void safeCloseClient() { try { IoUtils.safeClose(getManagementClient()); } catch (final Exception e) { Logger.getLogger(this.getClass().getName()).log(Level.WARNING, "Caught exception closing ModelControllerClient", e); } } }
protected ModelControllerClient getModelControllerClient() { return getManagementClient().getControllerClient(); }
protected ModelControllerClient getModelControllerClient() { return getManagementClient().getControllerClient(); }
protected ModelControllerClient getModelControllerClient() { return getManagementClient().getControllerClient(); }
/** * Returns a description for the running container. If the container has not been started {@code null} will be * returned. * * @return the description for the running container or {@code null} if the container has not yet been started */ public ContainerDescription getContainerDescription() { if (containerDescription == null) { try { final ManagementClient client = getManagementClient(); // The management client should be set when the container is started if (client == null) return null; containerDescription = StandardContainerDescription.lookup(client); } catch (IOException e) { Logger.getLogger(getClass()).warn("Failed to lookup the container description.", e); containerDescription = StandardContainerDescription.NULL_DESCRIPTION; } } return containerDescription; }
private void safeCloseClient() { try { // Reset the client, this should close the internal resources and setup reinitialization getManagementClient().reset(); } catch (final Exception e) { Logger.getLogger(getClass()).warn("Caught exception closing ManagementClient", e); } finally { mccProvider.setDelegate(null); } }
private void safeCloseClient() { try { // Reset the client, this should close the internal resources and setup reinitialization ManagementClient client = getManagementClient(); if (client != null) { client.reset(); } } catch (final Exception e) { Logger.getLogger(getClass()).warn("Caught exception closing ManagementClient", e); } finally { mccProvider.setDelegate(null); } }
/** * Returns a description for the running container. If the container has not been started {@code null} will be * returned. * * @return the description for the running container or {@code null} if the container has not yet been started */ public ContainerDescription getContainerDescription() { if (containerDescription == null) { try { final ManagementClient client = getManagementClient(); // The management client should be set when the container is started if (client == null) return null; containerDescription = StandardContainerDescription.lookup(client); } catch (IOException e) { Logger.getLogger(getClass()).warn("Failed to lookup the container description.", e); containerDescription = StandardContainerDescription.NULL_DESCRIPTION; } } return containerDescription; }
@Override public ProtocolMetaData deploy(Archive<?> archive) throws DeploymentException { String runtimeName = archiveDeployer.get().deploy(archive); return getManagementClient().getProtocolMetaData(runtimeName); }
@Override public ProtocolMetaData deploy(Archive<?> archive) throws DeploymentException { String runtimeName = archiveDeployer.get().deploy(archive); return getManagementClient().getProtocolMetaData(runtimeName); }
@Override public ProtocolMetaData deploy(Archive<?> archive) throws DeploymentException { String runtimeName = archiveDeployer.get().deploy(archive); return getManagementClient().getProtocolMetaData(runtimeName); }
@Override public ProtocolMetaData deploy(Archive<?> archive) throws DeploymentException { String runtimeName = archiveDeployer.get().deploy(archive); return getManagementClient().getProtocolMetaData(runtimeName); }