public ResourceJobManager deepCopy() { return new ResourceJobManager(this); }
public ResourceJobManager deepCopy() { return new ResourceJobManager(this); }
/** * Performs a deep copy on <i>other</i>. */ public LOCALSubmission(LOCALSubmission other) { if (other.isSetJobSubmissionInterfaceId()) { this.jobSubmissionInterfaceId = other.jobSubmissionInterfaceId; } if (other.isSetResourceJobManager()) { this.resourceJobManager = new ResourceJobManager(other.resourceJobManager); } if (other.isSetSecurityProtocol()) { this.securityProtocol = other.securityProtocol; } }
/** * Performs a deep copy on <i>other</i>. */ public LOCALSubmission(LOCALSubmission other) { if (other.isSetJobSubmissionInterfaceId()) { this.jobSubmissionInterfaceId = other.jobSubmissionInterfaceId; } if (other.isSetResourceJobManager()) { this.resourceJobManager = new ResourceJobManager(other.resourceJobManager); } if (other.isSetSecurityProtocol()) { this.securityProtocol = other.securityProtocol; } }
case 2: // RESOURCE_JOB_MANAGER if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.resourceJobManager = new ResourceJobManager(); struct.resourceJobManager.read(iprot); struct.setResourceJobManagerIsSet(true);
case 2: // RESOURCE_JOB_MANAGER if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.resourceJobManager = new ResourceJobManager(); struct.resourceJobManager.read(iprot); struct.setResourceJobManagerIsSet(true);
public static ResourceJobManager createResourceJobManager( ResourceJobManagerType resourceJobManagerType, String jobManagerBinPath, Map<JobManagerCommand, String> jobManagerCommands, String pushMonitoringEndpoint) { ResourceJobManager resourceJobManager=new ResourceJobManager();; resourceJobManager.setResourceJobManagerType(resourceJobManagerType); resourceJobManager.setJobManagerBinPath(jobManagerBinPath); resourceJobManager.setJobManagerCommands(jobManagerCommands); resourceJobManager.setPushMonitoringEndpoint(pushMonitoringEndpoint); return resourceJobManager; }
public static ResourceJobManager createResourceJobManager( ResourceJobManagerType resourceJobManagerType, String pushMonitoringEndpoint, String jobManagerBinPath, Map<JobManagerCommand, String> jobManagerCommands) { ResourceJobManager resourceJobManager = new ResourceJobManager(); resourceJobManager.setResourceJobManagerType(resourceJobManagerType); resourceJobManager.setPushMonitoringEndpoint(pushMonitoringEndpoint); resourceJobManager.setJobManagerBinPath(jobManagerBinPath); resourceJobManager.setJobManagerCommands(jobManagerCommands); return resourceJobManager; }
case 3: // RESOURCE_JOB_MANAGER if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.resourceJobManager = new ResourceJobManager(); struct.resourceJobManager.read(iprot); struct.setResourceJobManagerIsSet(true);
case 3: // RESOURCE_JOB_MANAGER if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.resourceJobManager = new ResourceJobManager(); struct.resourceJobManager.read(iprot); struct.setResourceJobManagerIsSet(true);
/** * Performs a deep copy on <i>other</i>. */ public SSHJobSubmission(SSHJobSubmission other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetJobSubmissionInterfaceId()) { this.jobSubmissionInterfaceId = other.jobSubmissionInterfaceId; } if (other.isSetSecurityProtocol()) { this.securityProtocol = other.securityProtocol; } if (other.isSetResourceJobManager()) { this.resourceJobManager = new ResourceJobManager(other.resourceJobManager); } if (other.isSetAlternativeSSHHostName()) { this.alternativeSSHHostName = other.alternativeSSHHostName; } this.sshPort = other.sshPort; if (other.isSetMonitorMode()) { this.monitorMode = other.monitorMode; } if (other.isSetBatchQueueEmailSenders()) { List<String> __this__batchQueueEmailSenders = new ArrayList<String>(other.batchQueueEmailSenders); this.batchQueueEmailSenders = __this__batchQueueEmailSenders; } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, LOCALSubmission struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.jobSubmissionInterfaceId = iprot.readString(); struct.setJobSubmissionInterfaceIdIsSet(true); struct.resourceJobManager = new ResourceJobManager(); struct.resourceJobManager.read(iprot); struct.setResourceJobManagerIsSet(true); BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.securityProtocol = org.apache.airavata.model.data.movement.SecurityProtocol.findByValue(iprot.readI32()); struct.setSecurityProtocolIsSet(true); } } }
/** * Performs a deep copy on <i>other</i>. */ public SSHJobSubmission(SSHJobSubmission other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetJobSubmissionInterfaceId()) { this.jobSubmissionInterfaceId = other.jobSubmissionInterfaceId; } if (other.isSetSecurityProtocol()) { this.securityProtocol = other.securityProtocol; } if (other.isSetResourceJobManager()) { this.resourceJobManager = new ResourceJobManager(other.resourceJobManager); } if (other.isSetAlternativeSSHHostName()) { this.alternativeSSHHostName = other.alternativeSSHHostName; } this.sshPort = other.sshPort; if (other.isSetMonitorMode()) { this.monitorMode = other.monitorMode; } if (other.isSetBatchQueueEmailSenders()) { List<String> __this__batchQueueEmailSenders = new ArrayList<String>(other.batchQueueEmailSenders); this.batchQueueEmailSenders = __this__batchQueueEmailSenders; } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, LOCALSubmission struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.jobSubmissionInterfaceId = iprot.readString(); struct.setJobSubmissionInterfaceIdIsSet(true); struct.resourceJobManager = new ResourceJobManager(); struct.resourceJobManager.read(iprot); struct.setResourceJobManagerIsSet(true); struct.securityProtocol = org.apache.airavata.model.data.movement.SecurityProtocol.findByValue(iprot.readI32()); struct.setSecurityProtocolIsSet(true); } }
public static ResourceJobManager getResourceJobManager(ResourceJobManagerResource manager) throws AppCatalogException { ResourceJobManager r = new ResourceJobManager(); r.setResourceJobManagerId(manager.getResourceJobManagerId()); r.setJobManagerBinPath(manager.getJobManagerBinPath()); r.setPushMonitoringEndpoint(manager.getPushMonitoringEndpoint()); r.setResourceJobManagerType(ResourceJobManagerType.valueOf(manager.getResourceJobManagerType())); r.setJobManagerCommands(new HashMap<JobManagerCommand, String>()); JobManagerCommandResource jmcr=new JobManagerCommandResource(); List<Resource> jmcrList = jmcr.get(AbstractResource.JobManagerCommandConstants.RESOURCE_JOB_MANAGER_ID, manager.getResourceJobManagerId()); if (jmcrList != null && !jmcrList.isEmpty()){ for (Resource rrr : jmcrList) { JobManagerCommandResource rr=(JobManagerCommandResource)rrr; r.getJobManagerCommands().put(JobManagerCommand.valueOf(rr.getCommandType()), rr.getCommand()); } } return r; }
struct.securityProtocol = org.apache.airavata.model.data.movement.SecurityProtocol.findByValue(iprot.readI32()); struct.setSecurityProtocolIsSet(true); struct.resourceJobManager = new ResourceJobManager(); struct.resourceJobManager.read(iprot); struct.setResourceJobManagerIsSet(true);
struct.securityProtocol = org.apache.airavata.model.data.movement.SecurityProtocol.findByValue(iprot.readI32()); struct.setSecurityProtocolIsSet(true); struct.resourceJobManager = new ResourceJobManager(); struct.resourceJobManager.read(iprot); struct.setResourceJobManagerIsSet(true);
public static ResourceJobManager getResourceJobManager(ResourceJobManagerResource manager) throws AppCatalogException { ResourceJobManager r = new ResourceJobManager(); r.setResourceJobManagerId(manager.getResourceJobManagerId()); r.setJobManagerBinPath(manager.getJobManagerBinPath()); r.setPushMonitoringEndpoint(manager.getPushMonitoringEndpoint()); r.setResourceJobManagerType(ResourceJobManagerType.valueOf(manager.getResourceJobManagerType())); r.setJobManagerCommands(new HashMap<JobManagerCommand, String>()); JobManagerCommandResource jmcr=new JobManagerCommandResource(); List<AppCatalogResource> jmcrList = jmcr.get(AppCatAbstractResource.JobManagerCommandConstants.RESOURCE_JOB_MANAGER_ID, manager.getResourceJobManagerId()); if (jmcrList != null && !jmcrList.isEmpty()){ for (AppCatalogResource rrr : jmcrList) { JobManagerCommandResource rr=(JobManagerCommandResource)rrr; r.getJobManagerCommands().put(JobManagerCommand.valueOf(rr.getCommandType()), rr.getCommand()); } } r.setParallelismPrefix(new HashMap<ApplicationParallelismType, String>()); ParallelismPrefixCommandResource prefixCommandResource=new ParallelismPrefixCommandResource(); List<AppCatalogResource> resourceList = prefixCommandResource.get(AppCatAbstractResource.JobManagerCommandConstants.RESOURCE_JOB_MANAGER_ID, manager.getResourceJobManagerId()); if (resourceList != null && !resourceList.isEmpty()){ for (AppCatalogResource rrr : resourceList) { ParallelismPrefixCommandResource rr=(ParallelismPrefixCommandResource)rrr; r.getParallelismPrefix().put(ApplicationParallelismType.valueOf(rr.getCommandType()), rr.getCommand()); } } return r; }