public Object run(Cluster param) throws PropertyVetoException, TransactionFailure { ResourceRef newResourceRef = param.createChild(ResourceRef.class); newResourceRef.setEnabled(enabled); newResourceRef.setRef(refName); param.getResourceRef().add(newResourceRef); return newResourceRef; } }, cluster);
public Object run(Cluster param) throws PropertyVetoException, TransactionFailure { ServerRef newServerRef = param.createChild(ServerRef.class); newServerRef.setRef(instanceName); newServerRef.setLbEnabled(lbEnabled); param.getServerRef().add(newServerRef); return param; } }, thisCluster);
public Object run(Cluster param) throws PropertyVetoException, TransactionFailure { ResourceRef newResourceRef = param.createChild(ResourceRef.class); newResourceRef.setEnabled(enabled); newResourceRef.setRef(refName); param.getResourceRef().add(newResourceRef); return newResourceRef; } }, cluster);
public Object run(Cluster param) throws PropertyVetoException, TransactionFailure { ServerRef newServerRef = param.createChild(ServerRef.class); newServerRef.setRef(instanceName); newServerRef.setLbEnabled(lbEnabled); param.getServerRef().add(newServerRef); return param; } }, thisCluster);
@Override public Object run(Cluster wCluster) throws PropertyVetoException, TransactionFailure { VirtualMachineConfig vmConfig = wCluster.createChild(VirtualMachineConfig.class); vmConfig.setName(name); vmConfig.setTemplate(template); vmConfig.setServerPool(serverPool); wCluster.getExtensions().add(vmConfig); return vmConfig; } }, cluster);
if (gmsListenerPort == null) { needToAddGmsListenerPort = true; gmsListenerPort = instance.createChild(Property.class); gmsListenerPort.setName("GMS_LISTENER_PORT"); gmsListenerPort.setValue(String.format("${GMS_LISTENER_PORT-%s}", instanceName)); discoveryUriListProp = instance.createChild(Property.class); discoveryUriListProp.setName("GMS_DISCOVERY_URI_LIST"); discoveryUriListProp.setValue(GENERATE); if (config.getProperty(propName) == null ) { Config writeableConfig = t.enroll(config); SystemProperty gmsListenerPortSysProp = instance.createChild(SystemProperty.class); gmsListenerPortSysProp.setName(propName); if (TCPPORT == null || TCPPORT.trim().charAt(0) == '$') { throw new TransactionFailure("Cannot add un-named resources to the new server instance"); ResourceRef newResourceRef = instance.createChild(ResourceRef.class); newResourceRef.setRef(name); instance.getResourceRef().add(newResourceRef); ApplicationRef newAppRef = instance.createChild(ApplicationRef.class); newAppRef.setRef(application.getName()); instance.getApplicationRef().add(newAppRef);
Property gmsListenerPort = instance.createChild(Property.class); gmsListenerPort.setName("GMS_LISTENER_PORT"); gmsListenerPort.setValue(String.format("${GMS_LISTENER_PORT-%s}", instanceName)); throw new TransactionFailure("Cannot add un-named resources to the new server instance"); ResourceRef newResourceRef = instance.createChild(ResourceRef.class); newResourceRef.setRef(name); instance.getResourceRef().add(newResourceRef); ApplicationRef newAppRef = instance.createChild(ApplicationRef.class); newAppRef.setRef(application.getName()); instance.getApplicationRef().add(newAppRef);
if (tx != null) { Cluster c = tx.enroll(cluster); ServerRef newServerRef = c.createChild(ServerRef.class); newServerRef.setRef(instanceName); if(lbEnabled != null){
Property gmsListenerPort = cluster.createChild(Property.class); gmsListenerPort.setName("GMS_LISTENER_PORT"); gmsListenerPort.setValue(String.format("${GMS_LISTENER_PORT-%s}", cluster.getName()));
ServerRef newServerRef = c.createChild(ServerRef.class); newServerRef.setRef(instanceName); if (lbEnabled != null) {