public DeploymentResult retire(AssemblyId assemblyId) throws RemoteException { OMElement request = element(ACTIVATE_REQUEST); setAuthentication(request); request.addChild(elementText(ASSEMBLY_NAME, assemblyId.getAssemblyName())); request.addChild( elementText(ASSEMBLY_VERSION, Integer.toString(assemblyId.getAssemblyVersion()))); OMParser response = invoke(DEACTIVATE_REQUEST.getLocalPart(), request); return OMParser.parseDeploymentResult(response); }
public DeploymentResult deployAssembly(String assemblyName, InputStream zip) throws RemoteException { OMElement request = element(DEPLOY_REQUEST); setAuthentication(request); request.addChild(elementText(ASSEMBLY_NAME, assemblyName)); request.addChild(elementBinary(ZIP, zip)); OMParser response = invoke(DEPLOY_REQUEST.getLocalPart(), request); return OMParser.parseDeploymentResult(response); }
public Collection<DeployedAssembly> getDeployedAssemblies() throws RemoteException { OMElement request = element(GET_DEPLOYED_ASSEMBLIES_REQUEST); setAuthentication(request); OMParser response = invoke(GET_DEPLOYED_ASSEMBLIES_REQUEST.getLocalPart(), request); return OMParser.parseDeployedAssemblies(response); }