if(server.getConfigureCommand() != null && !server.getConfigureCommand().equals("")){ String configurationCommand = CloudMLQueryUtil.cloudmlStringRecover(server.getConfigureCommand(), server, bi) + " \"" + ipAddress + "\" \"" + destinationIpAddress + "\" " + destinationPortNumber; configure(jcServer, VMserver, ownerVMServer, configurationCommand, server.getRequireCredentials()); if(client.getConfigureCommand() != null && !client.getConfigureCommand().equals("")){ String configurationCommand = CloudMLQueryUtil.cloudmlStringRecover(client.getConfigureCommand(), client, bi) + " \"" + ipAddress + "\" \"" + destinationIpAddress + "\" " + destinationPortNumber; configure(jcClient, VMClient, ownerVMClient, configurationCommand, client.getRequireCredentials());
private void setResourceProperties(Resource r, net.cloudml.core.Resource kr){ kr.setName(r.getName()); kr.setInstallCommand(r.getInstallCommand()); kr.setDownloadCommand(r.getRetrieveCommand()); kr.setConfigureCommand(r.getConfigureCommand()); kr.setStartCommand(r.getStartCommand()); kr.setStopCommand(r.getStopCommand()); kr.setRequireCredentials(r.getRequireCredentials()); kr.setExecuteLocally(r.getExecuteLocally()); convertProperties(r,kr,factory); String kup = ""; for (Map.Entry<String, String> up: r.getUploadCommand().entrySet()) { kup += up.getKey() + " " + up.getValue() + ";"; } kr.setUploadCommand(kup); }
if (r.getConfigureCommand() != null) { String configurationCommand = r.getConfigureCommand() + " \"" + ipAddress + "\" \"" + destinationIpAddress + "\" " + destinationPortNumber; configure(jc, n, ownerVM, configurationCommand, r.getRequireCredentials());
protected void configureImpactedComponents(Set<ComponentInstance> listOfAllComponentImpacted, Map<InternalComponentInstance, InternalComponentInstance> duplicatedGraph){ for(ComponentInstance ici: listOfAllComponentImpacted){ coordinator.updateStatusInternalComponent(ici.getName(), InternalComponentInstance.State.INSTALLED.toString(), CloudAppDeployer.class.getName()); if(ici.isInternal()){ Provider p=ici.asInternal().externalHost().asVM().getType().getProvider(); Connector c2=ConnectorFactory.createIaaSConnector(p); for(Resource r: ici.getType().getResources()){ dep.configure(c2, ci.getType(), ici.asInternal().externalHost().asVM(), r.getConfigureCommand(),false); } c2.closeConnection(); } coordinator.updateStatusInternalComponent(ici.getName(), InternalComponentInstance.State.CONFIGURED.toString(), CloudAppDeployer.class.getName()); } }
String configurationCommand = CloudMLQueryUtil.cloudmlStringRecover(r.getConfigureCommand(), r, x); configure(jc, n, ownerVM, configurationCommand, r.getRequireCredentials());
String configurationCommand = CloudMLQueryUtil.cloudmlStringRecover(r.getConfigureCommand(), r, x); configure(jc, n, ownerVM, configurationCommand, r.getRequireCredentials());
if(clientResource.getConfigureCommand() != null && !clientResource.getConfigureCommand().equals("")){ String configurationCommand = clientResource.getConfigureCommand() + " \"" + ipAddress + "\" \"" + destinationIpAddress + "\" " + destinationPortNumber; configure(jcClient, VMClient, ownerVMClient, configurationCommand, clientResource.getRequireCredentials());
cr.setDownloadCommand(relationship.getClientResource().getRetrieveCommand()); if (relationship.getClientResource().getConfigureCommand() != null) { cr.setConfigureCommand(relationship.getClientResource().getConfigureCommand()); cr.setDownloadCommand(relationship.getServerResource().getRetrieveCommand()); if (relationship.getServerResource().getConfigureCommand() != null) { cr.setConfigureCommand(relationship.getServerResource().getConfigureCommand());
String configurationCommand = r.getConfigureCommand(); configure(jc, n, owner, configurationCommand, r.getRequireCredentials());