/** * Deploys the archive to a running container. * * @param archive the archive to deploy * * @return the runtime name of the deployment * * @throws DeploymentException if an error happens during deployment * @throws IllegalStateException if the client has been closed */ public String deploy(Archive<?> archive) throws DeploymentException { return deployInternal(archive); }
public String deploy(String name, InputStream input) throws DeploymentException { return deployInternal(name, input); }
/** * Deploys the archive to a running container. * * @param name the runtime for the deployment * @param input the input stream of a deployment archive * * @return the runtime name of the deployment * * @throws DeploymentException if an error happens during deployment * @throws IllegalStateException if the client has been closed */ public String deploy(String name, InputStream input) throws DeploymentException { return deployInternal(name, input); }
public String deploy(Archive<?> archive) throws DeploymentException { return deployInternal(archive); }
public String deploy(String name, InputStream input) throws DeploymentException { return deployInternal(name, input); }
/** * Deploys the archive to a running container. * * @param archive the archive to deploy * * @return the runtime name of the deployment * * @throws DeploymentException if an error happens during deployment * @throws IllegalStateException if the client has been closed */ public String deploy(Archive<?> archive) throws DeploymentException { return deployInternal(archive); }
/** * Deploys the archive to a running container. * * @param name the runtime for the deployment * @param input the input stream of a deployment archive * * @return the runtime name of the deployment * * @throws DeploymentException if an error happens during deployment * @throws IllegalStateException if the client has been closed */ public String deploy(String name, InputStream input) throws DeploymentException { return deployInternal(name, input); }
public String deploy(Archive<?> archive) throws DeploymentException { return deployInternal(archive); }
private String deployInternal(Archive<?> archive) throws DeploymentException { final InputStream input = archive.as(ZipExporter.class).exportAsInputStream(); try { return deployInternal(archive.getName(), input); } finally { if (input != null) try { input.close(); } catch (IOException e) { log.warnf(e, "Failed to close resource %s", input); } } }
private String deployInternal(Archive<?> archive) throws DeploymentException { final InputStream input = archive.as(ZipExporter.class).exportAsInputStream(); try { return deployInternal(archive.getName(), input); } finally { if (input != null) try { input.close(); } catch (IOException e) { log.warnf(e, "Failed to close resource %s", input); } } }
private String deployInternal(Archive<?> archive) throws DeploymentException { checkState(); final InputStream input = archive.as(ZipExporter.class).exportAsInputStream(); try { return deployInternal(archive.getName(), input); } finally { if (input != null) try { input.close(); } catch (IOException e) { log.warnf(e, "Failed to close resource %s", input); } } }
private String deployInternal(Archive<?> archive) throws DeploymentException { checkState(); final InputStream input = archive.as(ZipExporter.class).exportAsInputStream(); try { return deployInternal(archive.getName(), input); } finally { if (input != null) try { input.close(); } catch (IOException e) { log.warnf(e, "Failed to close resource %s", input); } } }