public HostDescription(SchemaType type) { this(); this.hostDocument.getHostDescription().changeType(type); }
public HostDescription(SchemaType type) { this(); this.hostDocument.getHostDescription().changeType(type); }
public static HostDescription createHostDescription(String hostName, String hostAddress, String hostEndpoint, String gatekeeperEndpoint, String providerType) { HostDescription host = new HostDescription(); host.getType().setHostName(hostName); host.getType().setHostAddress(hostAddress); if(providerType.equalsIgnoreCase(HostTypes.GLOBUS_HOST_TYPE)){ host.getType().changeType(GlobusHostType.type); ((GlobusHostType) host.getType()). setGridFTPEndPointArray(new String[]{hostEndpoint}); ((GlobusHostType) host.getType()). setGlobusGateKeeperEndPointArray(new String[]{gatekeeperEndpoint}); }else if (providerType.equalsIgnoreCase(HostTypes.SSH_HOST_TYPE)){ host.getType().changeType(SSHHostType.type); }else if (providerType.equalsIgnoreCase(HostTypes.UNICORE_HOST_TYPE)){ host.getType().changeType(GlobusHostType.type); ((UnicoreHostType) host.getType()). setGridFTPEndPointArray(new String[]{hostEndpoint}); ((UnicoreHostType) host.getType()). setUnicoreBESEndPointArray(new String[]{gatekeeperEndpoint}); } return host; }
hostDescription.getType().changeType(GlobusHostType.type); if (!hostDescriptor.getGateKeeperEndPoint().isEmpty() && hostDescriptor.getGateKeeperEndPoint() != null){ ((GlobusHostType) hostDescription.getType()).addGlobusGateKeeperEndPoint(hostDescriptor.getGateKeeperEndPoint().get(0)); hostDescription.getType().changeType(GsisshHostType.type); } else if (hostDescriptor.getHostType().get(0).equals(HostTypes.EC2_HOST_TYPE)) { hostDescription.getType().changeType(Ec2HostType.type); if (!hostDescriptor.getImageID().isEmpty() && hostDescriptor.getImageID() != null ){ ((Ec2HostType) hostDescription).addImageID(hostDescriptor.getImageID().get(0)); hostDescription.getType().changeType(SSHHostType.type); ((SSHHostType)hostDescription.getType()).setHpcResource(hostDescriptor.isHpcResource()); } else if (hostDescriptor.getHostType().get(0).equals(HostTypes.UNICORE_HOST_TYPE)) { hostDescription.getType().changeType(UnicoreHostType.type); if (!hostDescriptor.getGateKeeperEndPoint().isEmpty() && hostDescriptor.getGateKeeperEndPoint() != null){ ((UnicoreHostType) hostDescription.getType()).addUnicoreBESEndPoint(hostDescriptor.getGateKeeperEndPoint().get(0));