use of org.apache.airavata.model.appcatalog.storageresource.StorageResourceDescription in project airavata by apache.
the class StorageResourceRegister method createStorageResourceDescription.
public StorageResourceDescription createStorageResourceDescription(String hostName, String hostDesc) {
StorageResourceDescription host = new StorageResourceDescription();
host.setHostName(hostName);
host.setStorageResourceDescription(hostDesc);
host.setEnabled(true);
return host;
}
use of org.apache.airavata.model.appcatalog.storageresource.StorageResourceDescription in project airavata by apache.
the class StorageResourceRegister method registerStorageResource.
public String registerStorageResource(String hostName, String hostDesc) throws TException {
StorageResourceDescription storageResourceDescription = createStorageResourceDescription(hostName, hostDesc);
String storageResourceId = airavata.registerStorageResource(authzToken, storageResourceDescription);
airavata.addLocalDataMovementDetails(authzToken, storageResourceId, DMType.STORAGE_RESOURCE, 0, new LOCALDataMovement());
return storageResourceId;
}
Aggregations