new ElasticStatelessProcessingUnitDeployment(serviceFile)
.memoryCapacityPerContainer(externalProcessMemoryInMB, MemoryUnit.MEGABYTES)
.addCommandLineArgument("-Xmx" + containerMemoryInMB + "m")
.addCommandLineArgument("-Xms" + containerMemoryInMB + "m")
.addContextProperty(CloudifyConstants.CONTEXT_PROPERTY_APPLICATION_NAME, applicationName)
<BUG>.name(serviceName);
setSharedMachineProvisioning(deployment, agentZones, reservedMemoryCapacityPerMachineInMB);
if (cloud == null) {</BUG>
if (!isLocalCloud()) {
deployment.scale(ElasticScaleConfigFactory.createEagerScaleConfig());

new ElasticStatelessProcessingUnitDeployment(serviceFile)
.memoryCapacityPerContainer(externalProcessMemoryInMB, MemoryUnit.MEGABYTES)
.addCommandLineArgument("-Xmx" + containerMemoryInMB + "m")
.addCommandLineArgument("-Xms" + containerMemoryInMB + "m")
.addContextProperty(CloudifyConstants.CONTEXT_PROPERTY_APPLICATION_NAME, applicationName)
.name(serviceName);
if (isLocalCloud()) {
setPublicMachineProvisioning(deployment, agentZones, reservedMemoryCapacityPerMachineInMB);
} else {
setSharedMachineProvisioning(deployment, agentZones, reservedMemoryCapacityPerMachineInMB);
}
if (cloud == null) {
if (!isLocalCloud()) {
deployment.scale(ElasticScaleConfigFactory.createEagerScaleConfig());
