http://git-wip-us.apache.org/repos/asf/airavata/blob/8b82bee9/airavata-api/airavata-api-stubs/src/main/java/org/apache/airavata/api/Airavata.java
----------------------------------------------------------------------
diff --git 
a/airavata-api/airavata-api-stubs/src/main/java/org/apache/airavata/api/Airavata.java
 
b/airavata-api/airavata-api-stubs/src/main/java/org/apache/airavata/api/Airavata.java
index a0cec67..132c420 100644
--- 
a/airavata-api/airavata-api-stubs/src/main/java/org/apache/airavata/api/Airavata.java
+++ 
b/airavata-api/airavata-api-stubs/src/main/java/org/apache/airavata/api/Airavata.java
@@ -1216,6 +1216,14 @@ import org.slf4j.LoggerFactory;
      */
     public boolean deleteDataMovementInterface(String dataMovementInterfaceId) 
throws org.apache.airavata.model.error.InvalidRequestException, 
org.apache.airavata.model.error.AiravataClientException, 
org.apache.airavata.model.error.AiravataSystemException, 
org.apache.thrift.TException;
 
+    public String 
registerResourceJobManager(org.apache.airavata.model.appcatalog.computeresource.ResourceJobManager
 resourceJobManager) throws 
org.apache.airavata.model.error.InvalidRequestException, 
org.apache.airavata.model.error.AiravataClientException, 
org.apache.airavata.model.error.AiravataSystemException, 
org.apache.thrift.TException;
+
+    public boolean updateResourceJobManager(String resourceJobManagerId, 
org.apache.airavata.model.appcatalog.computeresource.ResourceJobManager 
updatedResourceJobManager) throws 
org.apache.airavata.model.error.InvalidRequestException, 
org.apache.airavata.model.error.AiravataClientException, 
org.apache.airavata.model.error.AiravataSystemException, 
org.apache.thrift.TException;
+
+    public 
org.apache.airavata.model.appcatalog.computeresource.ResourceJobManager 
getResourceJobManager(String resourceJobManagerId) throws 
org.apache.airavata.model.error.InvalidRequestException, 
org.apache.airavata.model.error.AiravataClientException, 
org.apache.airavata.model.error.AiravataSystemException, 
org.apache.thrift.TException;
+
+    public boolean deleteResourceJobManager(String resourceJobManagerId) 
throws org.apache.airavata.model.error.InvalidRequestException, 
org.apache.airavata.model.error.AiravataClientException, 
org.apache.airavata.model.error.AiravataSystemException, 
org.apache.thrift.TException;
+
     /**
      * Register a Gateway Resource Profile.
      * 
@@ -1531,6 +1539,14 @@ import org.slf4j.LoggerFactory;
 
     public void deleteDataMovementInterface(String dataMovementInterfaceId, 
org.apache.thrift.async.AsyncMethodCallback resultHandler) throws 
org.apache.thrift.TException;
 
+    public void 
registerResourceJobManager(org.apache.airavata.model.appcatalog.computeresource.ResourceJobManager
 resourceJobManager, org.apache.thrift.async.AsyncMethodCallback resultHandler) 
throws org.apache.thrift.TException;
+
+    public void updateResourceJobManager(String resourceJobManagerId, 
org.apache.airavata.model.appcatalog.computeresource.ResourceJobManager 
updatedResourceJobManager, org.apache.thrift.async.AsyncMethodCallback 
resultHandler) throws org.apache.thrift.TException;
+
+    public void getResourceJobManager(String resourceJobManagerId, 
org.apache.thrift.async.AsyncMethodCallback resultHandler) throws 
org.apache.thrift.TException;
+
+    public void deleteResourceJobManager(String resourceJobManagerId, 
org.apache.thrift.async.AsyncMethodCallback resultHandler) throws 
org.apache.thrift.TException;
+
     public void 
registerGatewayResourceProfile(org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile
 gatewayResourceProfile, org.apache.thrift.async.AsyncMethodCallback 
resultHandler) throws org.apache.thrift.TException;
 
     public void getGatewayResourceProfile(String gatewayID, 
org.apache.thrift.async.AsyncMethodCallback resultHandler) throws 
org.apache.thrift.TException;
@@ -4080,6 +4096,135 @@ import org.slf4j.LoggerFactory;
       throw new 
org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT,
 "deleteDataMovementInterface failed: unknown result");
     }
 
+    public String 
registerResourceJobManager(org.apache.airavata.model.appcatalog.computeresource.ResourceJobManager
 resourceJobManager) throws 
org.apache.airavata.model.error.InvalidRequestException, 
org.apache.airavata.model.error.AiravataClientException, 
org.apache.airavata.model.error.AiravataSystemException, 
org.apache.thrift.TException
+    {
+      send_registerResourceJobManager(resourceJobManager);
+      return recv_registerResourceJobManager();
+    }
+
+    public void 
send_registerResourceJobManager(org.apache.airavata.model.appcatalog.computeresource.ResourceJobManager
 resourceJobManager) throws org.apache.thrift.TException
+    {
+      registerResourceJobManager_args args = new 
registerResourceJobManager_args();
+      args.setResourceJobManager(resourceJobManager);
+      sendBase("registerResourceJobManager", args);
+    }
+
+    public String recv_registerResourceJobManager() throws 
org.apache.airavata.model.error.InvalidRequestException, 
org.apache.airavata.model.error.AiravataClientException, 
org.apache.airavata.model.error.AiravataSystemException, 
org.apache.thrift.TException
+    {
+      registerResourceJobManager_result result = new 
registerResourceJobManager_result();
+      receiveBase(result, "registerResourceJobManager");
+      if (result.isSetSuccess()) {
+        return result.success;
+      }
+      if (result.ire != null) {
+        throw result.ire;
+      }
+      if (result.ace != null) {
+        throw result.ace;
+      }
+      if (result.ase != null) {
+        throw result.ase;
+      }
+      throw new 
org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT,
 "registerResourceJobManager failed: unknown result");
+    }
+
+    public boolean updateResourceJobManager(String resourceJobManagerId, 
org.apache.airavata.model.appcatalog.computeresource.ResourceJobManager 
updatedResourceJobManager) throws 
org.apache.airavata.model.error.InvalidRequestException, 
org.apache.airavata.model.error.AiravataClientException, 
org.apache.airavata.model.error.AiravataSystemException, 
org.apache.thrift.TException
+    {
+      send_updateResourceJobManager(resourceJobManagerId, 
updatedResourceJobManager);
+      return recv_updateResourceJobManager();
+    }
+
+    public void send_updateResourceJobManager(String resourceJobManagerId, 
org.apache.airavata.model.appcatalog.computeresource.ResourceJobManager 
updatedResourceJobManager) throws org.apache.thrift.TException
+    {
+      updateResourceJobManager_args args = new updateResourceJobManager_args();
+      args.setResourceJobManagerId(resourceJobManagerId);
+      args.setUpdatedResourceJobManager(updatedResourceJobManager);
+      sendBase("updateResourceJobManager", args);
+    }
+
+    public boolean recv_updateResourceJobManager() throws 
org.apache.airavata.model.error.InvalidRequestException, 
org.apache.airavata.model.error.AiravataClientException, 
org.apache.airavata.model.error.AiravataSystemException, 
org.apache.thrift.TException
+    {
+      updateResourceJobManager_result result = new 
updateResourceJobManager_result();
+      receiveBase(result, "updateResourceJobManager");
+      if (result.isSetSuccess()) {
+        return result.success;
+      }
+      if (result.ire != null) {
+        throw result.ire;
+      }
+      if (result.ace != null) {
+        throw result.ace;
+      }
+      if (result.ase != null) {
+        throw result.ase;
+      }
+      throw new 
org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT,
 "updateResourceJobManager failed: unknown result");
+    }
+
+    public 
org.apache.airavata.model.appcatalog.computeresource.ResourceJobManager 
getResourceJobManager(String resourceJobManagerId) throws 
org.apache.airavata.model.error.InvalidRequestException, 
org.apache.airavata.model.error.AiravataClientException, 
org.apache.airavata.model.error.AiravataSystemException, 
org.apache.thrift.TException
+    {
+      send_getResourceJobManager(resourceJobManagerId);
+      return recv_getResourceJobManager();
+    }
+
+    public void send_getResourceJobManager(String resourceJobManagerId) throws 
org.apache.thrift.TException
+    {
+      getResourceJobManager_args args = new getResourceJobManager_args();
+      args.setResourceJobManagerId(resourceJobManagerId);
+      sendBase("getResourceJobManager", args);
+    }
+
+    public 
org.apache.airavata.model.appcatalog.computeresource.ResourceJobManager 
recv_getResourceJobManager() throws 
org.apache.airavata.model.error.InvalidRequestException, 
org.apache.airavata.model.error.AiravataClientException, 
org.apache.airavata.model.error.AiravataSystemException, 
org.apache.thrift.TException
+    {
+      getResourceJobManager_result result = new getResourceJobManager_result();
+      receiveBase(result, "getResourceJobManager");
+      if (result.isSetSuccess()) {
+        return result.success;
+      }
+      if (result.ire != null) {
+        throw result.ire;
+      }
+      if (result.ace != null) {
+        throw result.ace;
+      }
+      if (result.ase != null) {
+        throw result.ase;
+      }
+      throw new 
org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT,
 "getResourceJobManager failed: unknown result");
+    }
+
+    public boolean deleteResourceJobManager(String resourceJobManagerId) 
throws org.apache.airavata.model.error.InvalidRequestException, 
org.apache.airavata.model.error.AiravataClientException, 
org.apache.airavata.model.error.AiravataSystemException, 
org.apache.thrift.TException
+    {
+      send_deleteResourceJobManager(resourceJobManagerId);
+      return recv_deleteResourceJobManager();
+    }
+
+    public void send_deleteResourceJobManager(String resourceJobManagerId) 
throws org.apache.thrift.TException
+    {
+      deleteResourceJobManager_args args = new deleteResourceJobManager_args();
+      args.setResourceJobManagerId(resourceJobManagerId);
+      sendBase("deleteResourceJobManager", args);
+    }
+
+    public boolean recv_deleteResourceJobManager() throws 
org.apache.airavata.model.error.InvalidRequestException, 
org.apache.airavata.model.error.AiravataClientException, 
org.apache.airavata.model.error.AiravataSystemException, 
org.apache.thrift.TException
+    {
+      deleteResourceJobManager_result result = new 
deleteResourceJobManager_result();
+      receiveBase(result, "deleteResourceJobManager");
+      if (result.isSetSuccess()) {
+        return result.success;
+      }
+      if (result.ire != null) {
+        throw result.ire;
+      }
+      if (result.ace != null) {
+        throw result.ace;
+      }
+      if (result.ase != null) {
+        throw result.ase;
+      }
+      throw new 
org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT,
 "deleteResourceJobManager failed: unknown result");
+    }
+
     public String 
registerGatewayResourceProfile(org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile
 gatewayResourceProfile) throws 
org.apache.airavata.model.error.InvalidRequestException, 
org.apache.airavata.model.error.AiravataClientException, 
org.apache.airavata.model.error.AiravataSystemException, 
org.apache.thrift.TException
     {
       send_registerGatewayResourceProfile(gatewayResourceProfile);
@@ -6965,6 +7110,137 @@ import org.slf4j.LoggerFactory;
       }
     }
 
+    public void 
registerResourceJobManager(org.apache.airavata.model.appcatalog.computeresource.ResourceJobManager
 resourceJobManager, org.apache.thrift.async.AsyncMethodCallback resultHandler) 
throws org.apache.thrift.TException {
+      checkReady();
+      registerResourceJobManager_call method_call = new 
registerResourceJobManager_call(resourceJobManager, resultHandler, this, 
___protocolFactory, ___transport);
+      this.___currentMethod = method_call;
+      ___manager.call(method_call);
+    }
+
+    public static class registerResourceJobManager_call extends 
org.apache.thrift.async.TAsyncMethodCall {
+      private 
org.apache.airavata.model.appcatalog.computeresource.ResourceJobManager 
resourceJobManager;
+      public 
registerResourceJobManager_call(org.apache.airavata.model.appcatalog.computeresource.ResourceJobManager
 resourceJobManager, org.apache.thrift.async.AsyncMethodCallback resultHandler, 
org.apache.thrift.async.TAsyncClient client, 
org.apache.thrift.protocol.TProtocolFactory protocolFactory, 
org.apache.thrift.transport.TNonblockingTransport transport) throws 
org.apache.thrift.TException {
+        super(client, protocolFactory, transport, resultHandler, false);
+        this.resourceJobManager = resourceJobManager;
+      }
+
+      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws 
org.apache.thrift.TException {
+        prot.writeMessageBegin(new 
org.apache.thrift.protocol.TMessage("registerResourceJobManager", 
org.apache.thrift.protocol.TMessageType.CALL, 0));
+        registerResourceJobManager_args args = new 
registerResourceJobManager_args();
+        args.setResourceJobManager(resourceJobManager);
+        args.write(prot);
+        prot.writeMessageEnd();
+      }
+
+      public String getResult() throws 
org.apache.airavata.model.error.InvalidRequestException, 
org.apache.airavata.model.error.AiravataClientException, 
org.apache.airavata.model.error.AiravataSystemException, 
org.apache.thrift.TException {
+        if (getState() != 
org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+          throw new IllegalStateException("Method call not finished!");
+        }
+        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = 
new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+        org.apache.thrift.protocol.TProtocol prot = 
client.getProtocolFactory().getProtocol(memoryTransport);
+        return (new Client(prot)).recv_registerResourceJobManager();
+      }
+    }
+
+    public void updateResourceJobManager(String resourceJobManagerId, 
org.apache.airavata.model.appcatalog.computeresource.ResourceJobManager 
updatedResourceJobManager, org.apache.thrift.async.AsyncMethodCallback 
resultHandler) throws org.apache.thrift.TException {
+      checkReady();
+      updateResourceJobManager_call method_call = new 
updateResourceJobManager_call(resourceJobManagerId, updatedResourceJobManager, 
resultHandler, this, ___protocolFactory, ___transport);
+      this.___currentMethod = method_call;
+      ___manager.call(method_call);
+    }
+
+    public static class updateResourceJobManager_call extends 
org.apache.thrift.async.TAsyncMethodCall {
+      private String resourceJobManagerId;
+      private 
org.apache.airavata.model.appcatalog.computeresource.ResourceJobManager 
updatedResourceJobManager;
+      public updateResourceJobManager_call(String resourceJobManagerId, 
org.apache.airavata.model.appcatalog.computeresource.ResourceJobManager 
updatedResourceJobManager, org.apache.thrift.async.AsyncMethodCallback 
resultHandler, org.apache.thrift.async.TAsyncClient client, 
org.apache.thrift.protocol.TProtocolFactory protocolFactory, 
org.apache.thrift.transport.TNonblockingTransport transport) throws 
org.apache.thrift.TException {
+        super(client, protocolFactory, transport, resultHandler, false);
+        this.resourceJobManagerId = resourceJobManagerId;
+        this.updatedResourceJobManager = updatedResourceJobManager;
+      }
+
+      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws 
org.apache.thrift.TException {
+        prot.writeMessageBegin(new 
org.apache.thrift.protocol.TMessage("updateResourceJobManager", 
org.apache.thrift.protocol.TMessageType.CALL, 0));
+        updateResourceJobManager_args args = new 
updateResourceJobManager_args();
+        args.setResourceJobManagerId(resourceJobManagerId);
+        args.setUpdatedResourceJobManager(updatedResourceJobManager);
+        args.write(prot);
+        prot.writeMessageEnd();
+      }
+
+      public boolean getResult() throws 
org.apache.airavata.model.error.InvalidRequestException, 
org.apache.airavata.model.error.AiravataClientException, 
org.apache.airavata.model.error.AiravataSystemException, 
org.apache.thrift.TException {
+        if (getState() != 
org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+          throw new IllegalStateException("Method call not finished!");
+        }
+        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = 
new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+        org.apache.thrift.protocol.TProtocol prot = 
client.getProtocolFactory().getProtocol(memoryTransport);
+        return (new Client(prot)).recv_updateResourceJobManager();
+      }
+    }
+
+    public void getResourceJobManager(String resourceJobManagerId, 
org.apache.thrift.async.AsyncMethodCallback resultHandler) throws 
org.apache.thrift.TException {
+      checkReady();
+      getResourceJobManager_call method_call = new 
getResourceJobManager_call(resourceJobManagerId, resultHandler, this, 
___protocolFactory, ___transport);
+      this.___currentMethod = method_call;
+      ___manager.call(method_call);
+    }
+
+    public static class getResourceJobManager_call extends 
org.apache.thrift.async.TAsyncMethodCall {
+      private String resourceJobManagerId;
+      public getResourceJobManager_call(String resourceJobManagerId, 
org.apache.thrift.async.AsyncMethodCallback resultHandler, 
org.apache.thrift.async.TAsyncClient client, 
org.apache.thrift.protocol.TProtocolFactory protocolFactory, 
org.apache.thrift.transport.TNonblockingTransport transport) throws 
org.apache.thrift.TException {
+        super(client, protocolFactory, transport, resultHandler, false);
+        this.resourceJobManagerId = resourceJobManagerId;
+      }
+
+      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws 
org.apache.thrift.TException {
+        prot.writeMessageBegin(new 
org.apache.thrift.protocol.TMessage("getResourceJobManager", 
org.apache.thrift.protocol.TMessageType.CALL, 0));
+        getResourceJobManager_args args = new getResourceJobManager_args();
+        args.setResourceJobManagerId(resourceJobManagerId);
+        args.write(prot);
+        prot.writeMessageEnd();
+      }
+
+      public 
org.apache.airavata.model.appcatalog.computeresource.ResourceJobManager 
getResult() throws org.apache.airavata.model.error.InvalidRequestException, 
org.apache.airavata.model.error.AiravataClientException, 
org.apache.airavata.model.error.AiravataSystemException, 
org.apache.thrift.TException {
+        if (getState() != 
org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+          throw new IllegalStateException("Method call not finished!");
+        }
+        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = 
new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+        org.apache.thrift.protocol.TProtocol prot = 
client.getProtocolFactory().getProtocol(memoryTransport);
+        return (new Client(prot)).recv_getResourceJobManager();
+      }
+    }
+
+    public void deleteResourceJobManager(String resourceJobManagerId, 
org.apache.thrift.async.AsyncMethodCallback resultHandler) throws 
org.apache.thrift.TException {
+      checkReady();
+      deleteResourceJobManager_call method_call = new 
deleteResourceJobManager_call(resourceJobManagerId, resultHandler, this, 
___protocolFactory, ___transport);
+      this.___currentMethod = method_call;
+      ___manager.call(method_call);
+    }
+
+    public static class deleteResourceJobManager_call extends 
org.apache.thrift.async.TAsyncMethodCall {
+      private String resourceJobManagerId;
+      public deleteResourceJobManager_call(String resourceJobManagerId, 
org.apache.thrift.async.AsyncMethodCallback resultHandler, 
org.apache.thrift.async.TAsyncClient client, 
org.apache.thrift.protocol.TProtocolFactory protocolFactory, 
org.apache.thrift.transport.TNonblockingTransport transport) throws 
org.apache.thrift.TException {
+        super(client, protocolFactory, transport, resultHandler, false);
+        this.resourceJobManagerId = resourceJobManagerId;
+      }
+
+      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws 
org.apache.thrift.TException {
+        prot.writeMessageBegin(new 
org.apache.thrift.protocol.TMessage("deleteResourceJobManager", 
org.apache.thrift.protocol.TMessageType.CALL, 0));
+        deleteResourceJobManager_args args = new 
deleteResourceJobManager_args();
+        args.setResourceJobManagerId(resourceJobManagerId);
+        args.write(prot);
+        prot.writeMessageEnd();
+      }
+
+      public boolean getResult() throws 
org.apache.airavata.model.error.InvalidRequestException, 
org.apache.airavata.model.error.AiravataClientException, 
org.apache.airavata.model.error.AiravataSystemException, 
org.apache.thrift.TException {
+        if (getState() != 
org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+          throw new IllegalStateException("Method call not finished!");
+        }
+        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = 
new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+        org.apache.thrift.protocol.TProtocol prot = 
client.getProtocolFactory().getProtocol(memoryTransport);
+        return (new Client(prot)).recv_deleteResourceJobManager();
+      }
+    }
+
     public void 
registerGatewayResourceProfile(org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile
 gatewayResourceProfile, org.apache.thrift.async.AsyncMethodCallback 
resultHandler) throws org.apache.thrift.TException {
       checkReady();
       registerGatewayResourceProfile_call method_call = new 
registerGatewayResourceProfile_call(gatewayResourceProfile, resultHandler, 
this, ___protocolFactory, ___transport);
@@ -7364,6 +7640,10 @@ import org.slf4j.LoggerFactory;
       processMap.put("changeDataMovementPriorities", new 
changeDataMovementPriorities());
       processMap.put("deleteJobSubmissionInterface", new 
deleteJobSubmissionInterface());
       processMap.put("deleteDataMovementInterface", new 
deleteDataMovementInterface());
+      processMap.put("registerResourceJobManager", new 
registerResourceJobManager());
+      processMap.put("updateResourceJobManager", new 
updateResourceJobManager());
+      processMap.put("getResourceJobManager", new getResourceJobManager());
+      processMap.put("deleteResourceJobManager", new 
deleteResourceJobManager());
       processMap.put("registerGatewayResourceProfile", new 
registerGatewayResourceProfile());
       processMap.put("getGatewayResourceProfile", new 
getGatewayResourceProfile());
       processMap.put("updateGatewayResourceProfile", new 
updateGatewayResourceProfile());
@@ -9567,6 +9847,120 @@ import org.slf4j.LoggerFactory;
       }
     }
 
+    public static class registerResourceJobManager<I extends Iface> extends 
org.apache.thrift.ProcessFunction<I, registerResourceJobManager_args> {
+      public registerResourceJobManager() {
+        super("registerResourceJobManager");
+      }
+
+      public registerResourceJobManager_args getEmptyArgsInstance() {
+        return new registerResourceJobManager_args();
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public registerResourceJobManager_result getResult(I iface, 
registerResourceJobManager_args args) throws org.apache.thrift.TException {
+        registerResourceJobManager_result result = new 
registerResourceJobManager_result();
+        try {
+          result.success = 
iface.registerResourceJobManager(args.resourceJobManager);
+        } catch (org.apache.airavata.model.error.InvalidRequestException ire) {
+          result.ire = ire;
+        } catch (org.apache.airavata.model.error.AiravataClientException ace) {
+          result.ace = ace;
+        } catch (org.apache.airavata.model.error.AiravataSystemException ase) {
+          result.ase = ase;
+        }
+        return result;
+      }
+    }
+
+    public static class updateResourceJobManager<I extends Iface> extends 
org.apache.thrift.ProcessFunction<I, updateResourceJobManager_args> {
+      public updateResourceJobManager() {
+        super("updateResourceJobManager");
+      }
+
+      public updateResourceJobManager_args getEmptyArgsInstance() {
+        return new updateResourceJobManager_args();
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public updateResourceJobManager_result getResult(I iface, 
updateResourceJobManager_args args) throws org.apache.thrift.TException {
+        updateResourceJobManager_result result = new 
updateResourceJobManager_result();
+        try {
+          result.success = 
iface.updateResourceJobManager(args.resourceJobManagerId, 
args.updatedResourceJobManager);
+          result.setSuccessIsSet(true);
+        } catch (org.apache.airavata.model.error.InvalidRequestException ire) {
+          result.ire = ire;
+        } catch (org.apache.airavata.model.error.AiravataClientException ace) {
+          result.ace = ace;
+        } catch (org.apache.airavata.model.error.AiravataSystemException ase) {
+          result.ase = ase;
+        }
+        return result;
+      }
+    }
+
+    public static class getResourceJobManager<I extends Iface> extends 
org.apache.thrift.ProcessFunction<I, getResourceJobManager_args> {
+      public getResourceJobManager() {
+        super("getResourceJobManager");
+      }
+
+      public getResourceJobManager_args getEmptyArgsInstance() {
+        return new getResourceJobManager_args();
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public getResourceJobManager_result getResult(I iface, 
getResourceJobManager_args args) throws org.apache.thrift.TException {
+        getResourceJobManager_result result = new 
getResourceJobManager_result();
+        try {
+          result.success = 
iface.getResourceJobManager(args.resourceJobManagerId);
+        } catch (org.apache.airavata.model.error.InvalidRequestException ire) {
+          result.ire = ire;
+        } catch (org.apache.airavata.model.error.AiravataClientException ace) {
+          result.ace = ace;
+        } catch (org.apache.airavata.model.error.AiravataSystemException ase) {
+          result.ase = ase;
+        }
+        return result;
+      }
+    }
+
+    public static class deleteResourceJobManager<I extends Iface> extends 
org.apache.thrift.ProcessFunction<I, deleteResourceJobManager_args> {
+      public deleteResourceJobManager() {
+        super("deleteResourceJobManager");
+      }
+
+      public deleteResourceJobManager_args getEmptyArgsInstance() {
+        return new deleteResourceJobManager_args();
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public deleteResourceJobManager_result getResult(I iface, 
deleteResourceJobManager_args args) throws org.apache.thrift.TException {
+        deleteResourceJobManager_result result = new 
deleteResourceJobManager_result();
+        try {
+          result.success = 
iface.deleteResourceJobManager(args.resourceJobManagerId);
+          result.setSuccessIsSet(true);
+        } catch (org.apache.airavata.model.error.InvalidRequestException ire) {
+          result.ire = ire;
+        } catch (org.apache.airavata.model.error.AiravataClientException ace) {
+          result.ace = ace;
+        } catch (org.apache.airavata.model.error.AiravataSystemException ase) {
+          result.ase = ase;
+        }
+        return result;
+      }
+    }
+
     public static class registerGatewayResourceProfile<I extends Iface> 
extends org.apache.thrift.ProcessFunction<I, 
registerGatewayResourceProfile_args> {
       public registerGatewayResourceProfile() {
         super("registerGatewayResourceProfile");
@@ -9914,6 +10308,10 @@ import org.slf4j.LoggerFactory;
       processMap.put("changeDataMovementPriorities", new 
changeDataMovementPriorities());
       processMap.put("deleteJobSubmissionInterface", new 
deleteJobSubmissionInterface());
       processMap.put("deleteDataMovementInterface", new 
deleteDataMovementInterface());
+      processMap.put("registerResourceJobManager", new 
registerResourceJobManager());
+      processMap.put("updateResourceJobManager", new 
updateResourceJobManager());
+      processMap.put("getResourceJobManager", new getResourceJobManager());
+      processMap.put("deleteResourceJobManager", new 
deleteResourceJobManager());
       processMap.put("registerGatewayResourceProfile", new 
registerGatewayResourceProfile());
       processMap.put("getGatewayResourceProfile", new 
getGatewayResourceProfile());
       processMap.put("updateGatewayResourceProfile", new 
updateGatewayResourceProfile());
@@ -15143,20 +15541,20 @@ import org.slf4j.LoggerFactory;
       }
     }
 
-    public static class registerGatewayResourceProfile<I extends AsyncIface> 
extends org.apache.thrift.AsyncProcessFunction<I, 
registerGatewayResourceProfile_args, String> {
-      public registerGatewayResourceProfile() {
-        super("registerGatewayResourceProfile");
+    public static class registerResourceJobManager<I extends AsyncIface> 
extends org.apache.thrift.AsyncProcessFunction<I, 
registerResourceJobManager_args, String> {
+      public registerResourceJobManager() {
+        super("registerResourceJobManager");
       }
 
-      public registerGatewayResourceProfile_args getEmptyArgsInstance() {
-        return new registerGatewayResourceProfile_args();
+      public registerResourceJobManager_args getEmptyArgsInstance() {
+        return new registerResourceJobManager_args();
       }
 
       public AsyncMethodCallback<String> getResultHandler(final 
AsyncFrameBuffer fb, final int seqid) {
         final org.apache.thrift.AsyncProcessFunction fcall = this;
         return new AsyncMethodCallback<String>() { 
           public void onComplete(String o) {
-            registerGatewayResourceProfile_result result = new 
registerGatewayResourceProfile_result();
+            registerResourceJobManager_result result = new 
registerResourceJobManager_result();
             result.success = o;
             try {
               fcall.sendResponse(fb,result, 
org.apache.thrift.protocol.TMessageType.REPLY,seqid);
@@ -15169,7 +15567,7 @@ import org.slf4j.LoggerFactory;
           public void onError(Exception e) {
             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
             org.apache.thrift.TBase msg;
-            registerGatewayResourceProfile_result result = new 
registerGatewayResourceProfile_result();
+            registerResourceJobManager_result result = new 
registerResourceJobManager_result();
             if (e instanceof 
org.apache.airavata.model.error.InvalidRequestException) {
                         result.ire = 
(org.apache.airavata.model.error.InvalidRequestException) e;
                         result.setIreIsSet(true);
@@ -15205,26 +15603,27 @@ import org.slf4j.LoggerFactory;
         return false;
       }
 
-      public void start(I iface, registerGatewayResourceProfile_args args, 
org.apache.thrift.async.AsyncMethodCallback<String> resultHandler) throws 
TException {
-        
iface.registerGatewayResourceProfile(args.gatewayResourceProfile,resultHandler);
+      public void start(I iface, registerResourceJobManager_args args, 
org.apache.thrift.async.AsyncMethodCallback<String> resultHandler) throws 
TException {
+        
iface.registerResourceJobManager(args.resourceJobManager,resultHandler);
       }
     }
 
-    public static class getGatewayResourceProfile<I extends AsyncIface> 
extends org.apache.thrift.AsyncProcessFunction<I, 
getGatewayResourceProfile_args, 
org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile> {
-      public getGatewayResourceProfile() {
-        super("getGatewayResourceProfile");
+    public static class updateResourceJobManager<I extends AsyncIface> extends 
org.apache.thrift.AsyncProcessFunction<I, updateResourceJobManager_args, 
Boolean> {
+      public updateResourceJobManager() {
+        super("updateResourceJobManager");
       }
 
-      public getGatewayResourceProfile_args getEmptyArgsInstance() {
-        return new getGatewayResourceProfile_args();
+      public updateResourceJobManager_args getEmptyArgsInstance() {
+        return new updateResourceJobManager_args();
       }
 
-      public 
AsyncMethodCallback<org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile>
 getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+      public AsyncMethodCallback<Boolean> getResultHandler(final 
AsyncFrameBuffer fb, final int seqid) {
         final org.apache.thrift.AsyncProcessFunction fcall = this;
-        return new 
AsyncMethodCallback<org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile>()
 { 
-          public void 
onComplete(org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile
 o) {
-            getGatewayResourceProfile_result result = new 
getGatewayResourceProfile_result();
+        return new AsyncMethodCallback<Boolean>() { 
+          public void onComplete(Boolean o) {
+            updateResourceJobManager_result result = new 
updateResourceJobManager_result();
             result.success = o;
+            result.setSuccessIsSet(true);
             try {
               fcall.sendResponse(fb,result, 
org.apache.thrift.protocol.TMessageType.REPLY,seqid);
               return;
@@ -15236,7 +15635,7 @@ import org.slf4j.LoggerFactory;
           public void onError(Exception e) {
             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
             org.apache.thrift.TBase msg;
-            getGatewayResourceProfile_result result = new 
getGatewayResourceProfile_result();
+            updateResourceJobManager_result result = new 
updateResourceJobManager_result();
             if (e instanceof 
org.apache.airavata.model.error.InvalidRequestException) {
                         result.ire = 
(org.apache.airavata.model.error.InvalidRequestException) e;
                         result.setIreIsSet(true);
@@ -15272,27 +15671,26 @@ import org.slf4j.LoggerFactory;
         return false;
       }
 
-      public void start(I iface, getGatewayResourceProfile_args args, 
org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile>
 resultHandler) throws TException {
-        iface.getGatewayResourceProfile(args.gatewayID,resultHandler);
+      public void start(I iface, updateResourceJobManager_args args, 
org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws 
TException {
+        iface.updateResourceJobManager(args.resourceJobManagerId, 
args.updatedResourceJobManager,resultHandler);
       }
     }
 
-    public static class updateGatewayResourceProfile<I extends AsyncIface> 
extends org.apache.thrift.AsyncProcessFunction<I, 
updateGatewayResourceProfile_args, Boolean> {
-      public updateGatewayResourceProfile() {
-        super("updateGatewayResourceProfile");
+    public static class getResourceJobManager<I extends AsyncIface> extends 
org.apache.thrift.AsyncProcessFunction<I, getResourceJobManager_args, 
org.apache.airavata.model.appcatalog.computeresource.ResourceJobManager> {
+      public getResourceJobManager() {
+        super("getResourceJobManager");
       }
 
-      public updateGatewayResourceProfile_args getEmptyArgsInstance() {
-        return new updateGatewayResourceProfile_args();
+      public getResourceJobManager_args getEmptyArgsInstance() {
+        return new getResourceJobManager_args();
       }
 
-      public AsyncMethodCallback<Boolean> getResultHandler(final 
AsyncFrameBuffer fb, final int seqid) {
+      public 
AsyncMethodCallback<org.apache.airavata.model.appcatalog.computeresource.ResourceJobManager>
 getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
         final org.apache.thrift.AsyncProcessFunction fcall = this;
-        return new AsyncMethodCallback<Boolean>() { 
-          public void onComplete(Boolean o) {
-            updateGatewayResourceProfile_result result = new 
updateGatewayResourceProfile_result();
+        return new 
AsyncMethodCallback<org.apache.airavata.model.appcatalog.computeresource.ResourceJobManager>()
 { 
+          public void 
onComplete(org.apache.airavata.model.appcatalog.computeresource.ResourceJobManager
 o) {
+            getResourceJobManager_result result = new 
getResourceJobManager_result();
             result.success = o;
-            result.setSuccessIsSet(true);
             try {
               fcall.sendResponse(fb,result, 
org.apache.thrift.protocol.TMessageType.REPLY,seqid);
               return;
@@ -15304,7 +15702,7 @@ import org.slf4j.LoggerFactory;
           public void onError(Exception e) {
             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
             org.apache.thrift.TBase msg;
-            updateGatewayResourceProfile_result result = new 
updateGatewayResourceProfile_result();
+            getResourceJobManager_result result = new 
getResourceJobManager_result();
             if (e instanceof 
org.apache.airavata.model.error.InvalidRequestException) {
                         result.ire = 
(org.apache.airavata.model.error.InvalidRequestException) e;
                         result.setIreIsSet(true);
@@ -15340,25 +15738,25 @@ import org.slf4j.LoggerFactory;
         return false;
       }
 
-      public void start(I iface, updateGatewayResourceProfile_args args, 
org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws 
TException {
-        iface.updateGatewayResourceProfile(args.gatewayID, 
args.gatewayResourceProfile,resultHandler);
+      public void start(I iface, getResourceJobManager_args args, 
org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.appcatalog.computeresource.ResourceJobManager>
 resultHandler) throws TException {
+        iface.getResourceJobManager(args.resourceJobManagerId,resultHandler);
       }
     }
 
-    public static class deleteGatewayResourceProfile<I extends AsyncIface> 
extends org.apache.thrift.AsyncProcessFunction<I, 
deleteGatewayResourceProfile_args, Boolean> {
-      public deleteGatewayResourceProfile() {
-        super("deleteGatewayResourceProfile");
+    public static class deleteResourceJobManager<I extends AsyncIface> extends 
org.apache.thrift.AsyncProcessFunction<I, deleteResourceJobManager_args, 
Boolean> {
+      public deleteResourceJobManager() {
+        super("deleteResourceJobManager");
       }
 
-      public deleteGatewayResourceProfile_args getEmptyArgsInstance() {
-        return new deleteGatewayResourceProfile_args();
+      public deleteResourceJobManager_args getEmptyArgsInstance() {
+        return new deleteResourceJobManager_args();
       }
 
       public AsyncMethodCallback<Boolean> getResultHandler(final 
AsyncFrameBuffer fb, final int seqid) {
         final org.apache.thrift.AsyncProcessFunction fcall = this;
         return new AsyncMethodCallback<Boolean>() { 
           public void onComplete(Boolean o) {
-            deleteGatewayResourceProfile_result result = new 
deleteGatewayResourceProfile_result();
+            deleteResourceJobManager_result result = new 
deleteResourceJobManager_result();
             result.success = o;
             result.setSuccessIsSet(true);
             try {
@@ -15372,7 +15770,7 @@ import org.slf4j.LoggerFactory;
           public void onError(Exception e) {
             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
             org.apache.thrift.TBase msg;
-            deleteGatewayResourceProfile_result result = new 
deleteGatewayResourceProfile_result();
+            deleteResourceJobManager_result result = new 
deleteResourceJobManager_result();
             if (e instanceof 
org.apache.airavata.model.error.InvalidRequestException) {
                         result.ire = 
(org.apache.airavata.model.error.InvalidRequestException) e;
                         result.setIreIsSet(true);
@@ -15408,27 +15806,26 @@ import org.slf4j.LoggerFactory;
         return false;
       }
 
-      public void start(I iface, deleteGatewayResourceProfile_args args, 
org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws 
TException {
-        iface.deleteGatewayResourceProfile(args.gatewayID,resultHandler);
+      public void start(I iface, deleteResourceJobManager_args args, 
org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws 
TException {
+        
iface.deleteResourceJobManager(args.resourceJobManagerId,resultHandler);
       }
     }
 
-    public static class addGatewayComputeResourcePreference<I extends 
AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, 
addGatewayComputeResourcePreference_args, Boolean> {
-      public addGatewayComputeResourcePreference() {
-        super("addGatewayComputeResourcePreference");
+    public static class registerGatewayResourceProfile<I extends AsyncIface> 
extends org.apache.thrift.AsyncProcessFunction<I, 
registerGatewayResourceProfile_args, String> {
+      public registerGatewayResourceProfile() {
+        super("registerGatewayResourceProfile");
       }
 
-      public addGatewayComputeResourcePreference_args getEmptyArgsInstance() {
-        return new addGatewayComputeResourcePreference_args();
+      public registerGatewayResourceProfile_args getEmptyArgsInstance() {
+        return new registerGatewayResourceProfile_args();
       }
 
-      public AsyncMethodCallback<Boolean> getResultHandler(final 
AsyncFrameBuffer fb, final int seqid) {
+      public AsyncMethodCallback<String> getResultHandler(final 
AsyncFrameBuffer fb, final int seqid) {
         final org.apache.thrift.AsyncProcessFunction fcall = this;
-        return new AsyncMethodCallback<Boolean>() { 
-          public void onComplete(Boolean o) {
-            addGatewayComputeResourcePreference_result result = new 
addGatewayComputeResourcePreference_result();
+        return new AsyncMethodCallback<String>() { 
+          public void onComplete(String o) {
+            registerGatewayResourceProfile_result result = new 
registerGatewayResourceProfile_result();
             result.success = o;
-            result.setSuccessIsSet(true);
             try {
               fcall.sendResponse(fb,result, 
org.apache.thrift.protocol.TMessageType.REPLY,seqid);
               return;
@@ -15440,7 +15837,7 @@ import org.slf4j.LoggerFactory;
           public void onError(Exception e) {
             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
             org.apache.thrift.TBase msg;
-            addGatewayComputeResourcePreference_result result = new 
addGatewayComputeResourcePreference_result();
+            registerGatewayResourceProfile_result result = new 
registerGatewayResourceProfile_result();
             if (e instanceof 
org.apache.airavata.model.error.InvalidRequestException) {
                         result.ire = 
(org.apache.airavata.model.error.InvalidRequestException) e;
                         result.setIreIsSet(true);
@@ -15476,25 +15873,25 @@ import org.slf4j.LoggerFactory;
         return false;
       }
 
-      public void start(I iface, addGatewayComputeResourcePreference_args 
args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) 
throws TException {
-        iface.addGatewayComputeResourcePreference(args.gatewayID, 
args.computeResourceId, args.computeResourcePreference,resultHandler);
+      public void start(I iface, registerGatewayResourceProfile_args args, 
org.apache.thrift.async.AsyncMethodCallback<String> resultHandler) throws 
TException {
+        
iface.registerGatewayResourceProfile(args.gatewayResourceProfile,resultHandler);
       }
     }
 
-    public static class getGatewayComputeResourcePreference<I extends 
AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, 
getGatewayComputeResourcePreference_args, 
org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference> {
-      public getGatewayComputeResourcePreference() {
-        super("getGatewayComputeResourcePreference");
+    public static class getGatewayResourceProfile<I extends AsyncIface> 
extends org.apache.thrift.AsyncProcessFunction<I, 
getGatewayResourceProfile_args, 
org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile> {
+      public getGatewayResourceProfile() {
+        super("getGatewayResourceProfile");
       }
 
-      public getGatewayComputeResourcePreference_args getEmptyArgsInstance() {
-        return new getGatewayComputeResourcePreference_args();
+      public getGatewayResourceProfile_args getEmptyArgsInstance() {
+        return new getGatewayResourceProfile_args();
       }
 
-      public 
AsyncMethodCallback<org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference>
 getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+      public 
AsyncMethodCallback<org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile>
 getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
         final org.apache.thrift.AsyncProcessFunction fcall = this;
-        return new 
AsyncMethodCallback<org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference>()
 { 
-          public void 
onComplete(org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference
 o) {
-            getGatewayComputeResourcePreference_result result = new 
getGatewayComputeResourcePreference_result();
+        return new 
AsyncMethodCallback<org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile>()
 { 
+          public void 
onComplete(org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile
 o) {
+            getGatewayResourceProfile_result result = new 
getGatewayResourceProfile_result();
             result.success = o;
             try {
               fcall.sendResponse(fb,result, 
org.apache.thrift.protocol.TMessageType.REPLY,seqid);
@@ -15507,7 +15904,7 @@ import org.slf4j.LoggerFactory;
           public void onError(Exception e) {
             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
             org.apache.thrift.TBase msg;
-            getGatewayComputeResourcePreference_result result = new 
getGatewayComputeResourcePreference_result();
+            getGatewayResourceProfile_result result = new 
getGatewayResourceProfile_result();
             if (e instanceof 
org.apache.airavata.model.error.InvalidRequestException) {
                         result.ire = 
(org.apache.airavata.model.error.InvalidRequestException) e;
                         result.setIreIsSet(true);
@@ -15543,26 +15940,27 @@ import org.slf4j.LoggerFactory;
         return false;
       }
 
-      public void start(I iface, getGatewayComputeResourcePreference_args 
args, 
org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference>
 resultHandler) throws TException {
-        iface.getGatewayComputeResourcePreference(args.gatewayID, 
args.computeResourceId,resultHandler);
+      public void start(I iface, getGatewayResourceProfile_args args, 
org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile>
 resultHandler) throws TException {
+        iface.getGatewayResourceProfile(args.gatewayID,resultHandler);
       }
     }
 
-    public static class getAllGatewayComputeResourcePreferences<I extends 
AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, 
getAllGatewayComputeResourcePreferences_args, 
List<org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference>>
 {
-      public getAllGatewayComputeResourcePreferences() {
-        super("getAllGatewayComputeResourcePreferences");
+    public static class updateGatewayResourceProfile<I extends AsyncIface> 
extends org.apache.thrift.AsyncProcessFunction<I, 
updateGatewayResourceProfile_args, Boolean> {
+      public updateGatewayResourceProfile() {
+        super("updateGatewayResourceProfile");
       }
 
-      public getAllGatewayComputeResourcePreferences_args 
getEmptyArgsInstance() {
-        return new getAllGatewayComputeResourcePreferences_args();
+      public updateGatewayResourceProfile_args getEmptyArgsInstance() {
+        return new updateGatewayResourceProfile_args();
       }
 
-      public 
AsyncMethodCallback<List<org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference>>
 getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+      public AsyncMethodCallback<Boolean> getResultHandler(final 
AsyncFrameBuffer fb, final int seqid) {
         final org.apache.thrift.AsyncProcessFunction fcall = this;
-        return new 
AsyncMethodCallback<List<org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference>>()
 { 
-          public void 
onComplete(List<org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference>
 o) {
-            getAllGatewayComputeResourcePreferences_result result = new 
getAllGatewayComputeResourcePreferences_result();
+        return new AsyncMethodCallback<Boolean>() { 
+          public void onComplete(Boolean o) {
+            updateGatewayResourceProfile_result result = new 
updateGatewayResourceProfile_result();
             result.success = o;
+            result.setSuccessIsSet(true);
             try {
               fcall.sendResponse(fb,result, 
org.apache.thrift.protocol.TMessageType.REPLY,seqid);
               return;
@@ -15574,7 +15972,7 @@ import org.slf4j.LoggerFactory;
           public void onError(Exception e) {
             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
             org.apache.thrift.TBase msg;
-            getAllGatewayComputeResourcePreferences_result result = new 
getAllGatewayComputeResourcePreferences_result();
+            updateGatewayResourceProfile_result result = new 
updateGatewayResourceProfile_result();
             if (e instanceof 
org.apache.airavata.model.error.InvalidRequestException) {
                         result.ire = 
(org.apache.airavata.model.error.InvalidRequestException) e;
                         result.setIreIsSet(true);
@@ -15610,25 +16008,25 @@ import org.slf4j.LoggerFactory;
         return false;
       }
 
-      public void start(I iface, getAllGatewayComputeResourcePreferences_args 
args, 
org.apache.thrift.async.AsyncMethodCallback<List<org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference>>
 resultHandler) throws TException {
-        
iface.getAllGatewayComputeResourcePreferences(args.gatewayID,resultHandler);
+      public void start(I iface, updateGatewayResourceProfile_args args, 
org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws 
TException {
+        iface.updateGatewayResourceProfile(args.gatewayID, 
args.gatewayResourceProfile,resultHandler);
       }
     }
 
-    public static class updateGatewayComputeResourcePreference<I extends 
AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, 
updateGatewayComputeResourcePreference_args, Boolean> {
-      public updateGatewayComputeResourcePreference() {
-        super("updateGatewayComputeResourcePreference");
+    public static class deleteGatewayResourceProfile<I extends AsyncIface> 
extends org.apache.thrift.AsyncProcessFunction<I, 
deleteGatewayResourceProfile_args, Boolean> {
+      public deleteGatewayResourceProfile() {
+        super("deleteGatewayResourceProfile");
       }
 
-      public updateGatewayComputeResourcePreference_args 
getEmptyArgsInstance() {
-        return new updateGatewayComputeResourcePreference_args();
+      public deleteGatewayResourceProfile_args getEmptyArgsInstance() {
+        return new deleteGatewayResourceProfile_args();
       }
 
       public AsyncMethodCallback<Boolean> getResultHandler(final 
AsyncFrameBuffer fb, final int seqid) {
         final org.apache.thrift.AsyncProcessFunction fcall = this;
         return new AsyncMethodCallback<Boolean>() { 
           public void onComplete(Boolean o) {
-            updateGatewayComputeResourcePreference_result result = new 
updateGatewayComputeResourcePreference_result();
+            deleteGatewayResourceProfile_result result = new 
deleteGatewayResourceProfile_result();
             result.success = o;
             result.setSuccessIsSet(true);
             try {
@@ -15642,7 +16040,7 @@ import org.slf4j.LoggerFactory;
           public void onError(Exception e) {
             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
             org.apache.thrift.TBase msg;
-            updateGatewayComputeResourcePreference_result result = new 
updateGatewayComputeResourcePreference_result();
+            deleteGatewayResourceProfile_result result = new 
deleteGatewayResourceProfile_result();
             if (e instanceof 
org.apache.airavata.model.error.InvalidRequestException) {
                         result.ire = 
(org.apache.airavata.model.error.InvalidRequestException) e;
                         result.setIreIsSet(true);
@@ -15678,25 +16076,25 @@ import org.slf4j.LoggerFactory;
         return false;
       }
 
-      public void start(I iface, updateGatewayComputeResourcePreference_args 
args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) 
throws TException {
-        iface.updateGatewayComputeResourcePreference(args.gatewayID, 
args.computeResourceId, args.computeResourcePreference,resultHandler);
+      public void start(I iface, deleteGatewayResourceProfile_args args, 
org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws 
TException {
+        iface.deleteGatewayResourceProfile(args.gatewayID,resultHandler);
       }
     }
 
-    public static class deleteGatewayComputeResourcePreference<I extends 
AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, 
deleteGatewayComputeResourcePreference_args, Boolean> {
-      public deleteGatewayComputeResourcePreference() {
-        super("deleteGatewayComputeResourcePreference");
+    public static class addGatewayComputeResourcePreference<I extends 
AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, 
addGatewayComputeResourcePreference_args, Boolean> {
+      public addGatewayComputeResourcePreference() {
+        super("addGatewayComputeResourcePreference");
       }
 
-      public deleteGatewayComputeResourcePreference_args 
getEmptyArgsInstance() {
-        return new deleteGatewayComputeResourcePreference_args();
+      public addGatewayComputeResourcePreference_args getEmptyArgsInstance() {
+        return new addGatewayComputeResourcePreference_args();
       }
 
       public AsyncMethodCallback<Boolean> getResultHandler(final 
AsyncFrameBuffer fb, final int seqid) {
         final org.apache.thrift.AsyncProcessFunction fcall = this;
         return new AsyncMethodCallback<Boolean>() { 
           public void onComplete(Boolean o) {
-            deleteGatewayComputeResourcePreference_result result = new 
deleteGatewayComputeResourcePreference_result();
+            addGatewayComputeResourcePreference_result result = new 
addGatewayComputeResourcePreference_result();
             result.success = o;
             result.setSuccessIsSet(true);
             try {
@@ -15710,7 +16108,277 @@ import org.slf4j.LoggerFactory;
           public void onError(Exception e) {
             byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
             org.apache.thrift.TBase msg;
-            deleteGatewayComputeResourcePreference_result result = new 
deleteGatewayComputeResourcePreference_result();
+            addGatewayComputeResourcePreference_result result = new 
addGatewayComputeResourcePreference_result();
+            if (e instanceof 
org.apache.airavata.model.error.InvalidRequestException) {
+                        result.ire = 
(org.apache.airavata.model.error.InvalidRequestException) e;
+                        result.setIreIsSet(true);
+                        msg = result;
+            }
+            else             if (e instanceof 
org.apache.airavata.model.error.AiravataClientException) {
+                        result.ace = 
(org.apache.airavata.model.error.AiravataClientException) e;
+                        result.setAceIsSet(true);
+                        msg = result;
+            }
+            else             if (e instanceof 
org.apache.airavata.model.error.AiravataSystemException) {
+                        result.ase = 
(org.apache.airavata.model.error.AiravataSystemException) e;
+                        result.setAseIsSet(true);
+                        msg = result;
+            }
+             else 
+            {
+              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+              msg = (org.apache.thrift.TBase)new 
org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR,
 e.getMessage());
+            }
+            try {
+              fcall.sendResponse(fb,msg,msgType,seqid);
+              return;
+            } catch (Exception ex) {
+              LOGGER.error("Exception writing to internal frame buffer", ex);
+            }
+            fb.close();
+          }
+        };
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public void start(I iface, addGatewayComputeResourcePreference_args 
args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) 
throws TException {
+        iface.addGatewayComputeResourcePreference(args.gatewayID, 
args.computeResourceId, args.computeResourcePreference,resultHandler);
+      }
+    }
+
+    public static class getGatewayComputeResourcePreference<I extends 
AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, 
getGatewayComputeResourcePreference_args, 
org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference> {
+      public getGatewayComputeResourcePreference() {
+        super("getGatewayComputeResourcePreference");
+      }
+
+      public getGatewayComputeResourcePreference_args getEmptyArgsInstance() {
+        return new getGatewayComputeResourcePreference_args();
+      }
+
+      public 
AsyncMethodCallback<org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference>
 getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new 
AsyncMethodCallback<org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference>()
 { 
+          public void 
onComplete(org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference
 o) {
+            getGatewayComputeResourcePreference_result result = new 
getGatewayComputeResourcePreference_result();
+            result.success = o;
+            try {
+              fcall.sendResponse(fb,result, 
org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+              return;
+            } catch (Exception e) {
+              LOGGER.error("Exception writing to internal frame buffer", e);
+            }
+            fb.close();
+          }
+          public void onError(Exception e) {
+            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+            org.apache.thrift.TBase msg;
+            getGatewayComputeResourcePreference_result result = new 
getGatewayComputeResourcePreference_result();
+            if (e instanceof 
org.apache.airavata.model.error.InvalidRequestException) {
+                        result.ire = 
(org.apache.airavata.model.error.InvalidRequestException) e;
+                        result.setIreIsSet(true);
+                        msg = result;
+            }
+            else             if (e instanceof 
org.apache.airavata.model.error.AiravataClientException) {
+                        result.ace = 
(org.apache.airavata.model.error.AiravataClientException) e;
+                        result.setAceIsSet(true);
+                        msg = result;
+            }
+            else             if (e instanceof 
org.apache.airavata.model.error.AiravataSystemException) {
+                        result.ase = 
(org.apache.airavata.model.error.AiravataSystemException) e;
+                        result.setAseIsSet(true);
+                        msg = result;
+            }
+             else 
+            {
+              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+              msg = (org.apache.thrift.TBase)new 
org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR,
 e.getMessage());
+            }
+            try {
+              fcall.sendResponse(fb,msg,msgType,seqid);
+              return;
+            } catch (Exception ex) {
+              LOGGER.error("Exception writing to internal frame buffer", ex);
+            }
+            fb.close();
+          }
+        };
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public void start(I iface, getGatewayComputeResourcePreference_args 
args, 
org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference>
 resultHandler) throws TException {
+        iface.getGatewayComputeResourcePreference(args.gatewayID, 
args.computeResourceId,resultHandler);
+      }
+    }
+
+    public static class getAllGatewayComputeResourcePreferences<I extends 
AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, 
getAllGatewayComputeResourcePreferences_args, 
List<org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference>>
 {
+      public getAllGatewayComputeResourcePreferences() {
+        super("getAllGatewayComputeResourcePreferences");
+      }
+
+      public getAllGatewayComputeResourcePreferences_args 
getEmptyArgsInstance() {
+        return new getAllGatewayComputeResourcePreferences_args();
+      }
+
+      public 
AsyncMethodCallback<List<org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference>>
 getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new 
AsyncMethodCallback<List<org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference>>()
 { 
+          public void 
onComplete(List<org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference>
 o) {
+            getAllGatewayComputeResourcePreferences_result result = new 
getAllGatewayComputeResourcePreferences_result();
+            result.success = o;
+            try {
+              fcall.sendResponse(fb,result, 
org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+              return;
+            } catch (Exception e) {
+              LOGGER.error("Exception writing to internal frame buffer", e);
+            }
+            fb.close();
+          }
+          public void onError(Exception e) {
+            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+            org.apache.thrift.TBase msg;
+            getAllGatewayComputeResourcePreferences_result result = new 
getAllGatewayComputeResourcePreferences_result();
+            if (e instanceof 
org.apache.airavata.model.error.InvalidRequestException) {
+                        result.ire = 
(org.apache.airavata.model.error.InvalidRequestException) e;
+                        result.setIreIsSet(true);
+                        msg = result;
+            }
+            else             if (e instanceof 
org.apache.airavata.model.error.AiravataClientException) {
+                        result.ace = 
(org.apache.airavata.model.error.AiravataClientException) e;
+                        result.setAceIsSet(true);
+                        msg = result;
+            }
+            else             if (e instanceof 
org.apache.airavata.model.error.AiravataSystemException) {
+                        result.ase = 
(org.apache.airavata.model.error.AiravataSystemException) e;
+                        result.setAseIsSet(true);
+                        msg = result;
+            }
+             else 
+            {
+              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+              msg = (org.apache.thrift.TBase)new 
org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR,
 e.getMessage());
+            }
+            try {
+              fcall.sendResponse(fb,msg,msgType,seqid);
+              return;
+            } catch (Exception ex) {
+              LOGGER.error("Exception writing to internal frame buffer", ex);
+            }
+            fb.close();
+          }
+        };
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public void start(I iface, getAllGatewayComputeResourcePreferences_args 
args, 
org.apache.thrift.async.AsyncMethodCallback<List<org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference>>
 resultHandler) throws TException {
+        
iface.getAllGatewayComputeResourcePreferences(args.gatewayID,resultHandler);
+      }
+    }
+
+    public static class updateGatewayComputeResourcePreference<I extends 
AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, 
updateGatewayComputeResourcePreference_args, Boolean> {
+      public updateGatewayComputeResourcePreference() {
+        super("updateGatewayComputeResourcePreference");
+      }
+
+      public updateGatewayComputeResourcePreference_args 
getEmptyArgsInstance() {
+        return new updateGatewayComputeResourcePreference_args();
+      }
+
+      public AsyncMethodCallback<Boolean> getResultHandler(final 
AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<Boolean>() { 
+          public void onComplete(Boolean o) {
+            updateGatewayComputeResourcePreference_result result = new 
updateGatewayComputeResourcePreference_result();
+            result.success = o;
+            result.setSuccessIsSet(true);
+            try {
+              fcall.sendResponse(fb,result, 
org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+              return;
+            } catch (Exception e) {
+              LOGGER.error("Exception writing to internal frame buffer", e);
+            }
+            fb.close();
+          }
+          public void onError(Exception e) {
+            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+            org.apache.thrift.TBase msg;
+            updateGatewayComputeResourcePreference_result result = new 
updateGatewayComputeResourcePreference_result();
+            if (e instanceof 
org.apache.airavata.model.error.InvalidRequestException) {
+                        result.ire = 
(org.apache.airavata.model.error.InvalidRequestException) e;
+                        result.setIreIsSet(true);
+                        msg = result;
+            }
+            else             if (e instanceof 
org.apache.airavata.model.error.AiravataClientException) {
+                        result.ace = 
(org.apache.airavata.model.error.AiravataClientException) e;
+                        result.setAceIsSet(true);
+                        msg = result;
+            }
+            else             if (e instanceof 
org.apache.airavata.model.error.AiravataSystemException) {
+                        result.ase = 
(org.apache.airavata.model.error.AiravataSystemException) e;
+                        result.setAseIsSet(true);
+                        msg = result;
+            }
+             else 
+            {
+              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+              msg = (org.apache.thrift.TBase)new 
org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR,
 e.getMessage());
+            }
+            try {
+              fcall.sendResponse(fb,msg,msgType,seqid);
+              return;
+            } catch (Exception ex) {
+              LOGGER.error("Exception writing to internal frame buffer", ex);
+            }
+            fb.close();
+          }
+        };
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public void start(I iface, updateGatewayComputeResourcePreference_args 
args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) 
throws TException {
+        iface.updateGatewayComputeResourcePreference(args.gatewayID, 
args.computeResourceId, args.computeResourcePreference,resultHandler);
+      }
+    }
+
+    public static class deleteGatewayComputeResourcePreference<I extends 
AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, 
deleteGatewayComputeResourcePreference_args, Boolean> {
+      public deleteGatewayComputeResourcePreference() {
+        super("deleteGatewayComputeResourcePreference");
+      }
+
+      public deleteGatewayComputeResourcePreference_args 
getEmptyArgsInstance() {
+        return new deleteGatewayComputeResourcePreference_args();
+      }
+
+      public AsyncMethodCallback<Boolean> getResultHandler(final 
AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<Boolean>() { 
+          public void onComplete(Boolean o) {
+            deleteGatewayComputeResourcePreference_result result = new 
deleteGatewayComputeResourcePreference_result();
+            result.success = o;
+            result.setSuccessIsSet(true);
+            try {
+              fcall.sendResponse(fb,result, 
org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+              return;
+            } catch (Exception e) {
+              LOGGER.error("Exception writing to internal frame buffer", e);
+            }
+            fb.close();
+          }
+          public void onError(Exception e) {
+            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+            org.apache.thrift.TBase msg;
+            deleteGatewayComputeResourcePreference_result result = new 
deleteGatewayComputeResourcePreference_result();
             if (e instanceof 
org.apache.airavata.model.error.InvalidRequestException) {
                         result.ire = 
(org.apache.airavata.model.error.InvalidRequestException) e;
                         result.setIreIsSet(true);
@@ -36448,13 +37116,4606 @@ import org.slf4j.LoggerFactory;
     }
 
     // isset id assignments
-    private static final int __SUCCESS_ISSET_ID = 0;
-    private byte __isset_bitfield = 0;
+    private static final int __SUCCESS_ISSET_ID = 0;
+    private byte __isset_bitfield = 0;
+    public static final Map<_Fields, 
org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+    static {
+      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 
EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+      tmpMap.put(_Fields.SUCCESS, new 
org.apache.thrift.meta_data.FieldMetaData("success", 
org.apache.thrift.TFieldRequirementType.DEFAULT, 
+          new 
org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
+      tmpMap.put(_Fields.IRE, new 
org.apache.thrift.meta_data.FieldMetaData("ire", 
org.apache.thrift.TFieldRequirementType.DEFAULT, 
+          new 
org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
+      tmpMap.put(_Fields.ENF, new 
org.apache.thrift.meta_data.FieldMetaData("enf", 
org.apache.thrift.TFieldRequirementType.DEFAULT, 
+          new 
org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
+      tmpMap.put(_Fields.ACE, new 
org.apache.thrift.meta_data.FieldMetaData("ace", 
org.apache.thrift.TFieldRequirementType.DEFAULT, 
+          new 
org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
+      tmpMap.put(_Fields.ASE, new 
org.apache.thrift.meta_data.FieldMetaData("ase", 
org.apache.thrift.TFieldRequirementType.DEFAULT, 
+          new 
org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
+      metaDataMap = Collections.unmodifiableMap(tmpMap);
+      
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateExperiment_result.class,
 metaDataMap);
+    }
+
+    public validateExperiment_result() {
+    }
+
+    public validateExperiment_result(
+      boolean success,
+      org.apache.airavata.model.error.InvalidRequestException ire,
+      org.apache.airavata.model.error.ExperimentNotFoundException enf,
+      org.apache.airavata.model.error.AiravataClientException ace,
+      org.apache.airavata.model.error.AiravataSystemException ase)
+    {
+      this();
+      this.success = success;
+      setSuccessIsSet(true);
+      this.ire = ire;
+      this.enf = enf;
+      this.ace = ace;
+      this.ase = ase;
+    }
+
+    /**
+     * Performs a deep copy on <i>other</i>.
+     */
+    public validateExperiment_result(validateExperiment_result other) {
+      __isset_bitfield = other.__isset_bitfield;
+      this.success = other.success;
+      if (other.isSetIre()) {
+        this.ire = new 
org.apache.airavata.model.error.InvalidRequestException(other.ire);
+      }
+      if (other.isSetEnf()) {
+        this.enf = new 
org.apache.airavata.model.error.ExperimentNotFoundException(other.enf);
+      }
+      if (other.isSetAce()) {
+        this.ace = new 
org.apache.airavata.model.error.AiravataClientException(other.ace);
+      }
+      if (other.isSetAse()) {
+        this.ase = new 
org.apache.airavata.model.error.AiravataSystemException(other.ase);
+      }
+    }
+
+    public validateExperiment_result deepCopy() {
+      return new validateExperiment_result(this);
+    }
+
+    @Override
+    public void clear() {
+      setSuccessIsSet(false);
+      this.success = false;
+      this.ire = null;
+      this.enf = null;
+      this.ace = null;
+      this.ase = null;
+    }
+
+    public boolean isSuccess() {
+      return this.success;
+    }
+
+    public validateExperiment_result setSuccess(boolean success) {
+      this.success = success;
+      setSuccessIsSet(true);
+      return this;
+    }
+
+    public void unsetSuccess() {
+      __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, 
__SUCCESS_ISSET_ID);
+    }
+
+    /** Returns true if field success is set (has been assigned a value) and 
false otherwise */
+    public boolean isSetSuccess() {
+      return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
+    }
+
+    public void setSuccessIsSet(boolean value) {
+      __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, 
__SUCCESS_ISSET_ID, value);
+    }
+
+    public org.apache.airavata.model.error.InvalidRequestException getIre() {
+      return this.ire;
+    }
+
+    public validateExperiment_result 
setIre(org.apache.airavata.model.error.InvalidRequestException ire) {
+      this.ire = ire;
+      return this;
+    }
+
+    public void unsetIre() {
+      this.ire = null;
+    }
+
+    /** Returns true if field ire is set (has been assigned a value) and false 
otherwise */
+    public boolean isSetIre() {
+      return this.ire != null;
+    }
+
+    public void setIreIsSet(boolean value) {
+      if (!value) {
+        this.ire = null;
+      }
+    }
+
+    public org.apache.airavata.model.error.ExperimentNotFoundException 
getEnf() {
+      return this.enf;
+    }
+
+    public validateExperiment_result 
setEnf(org.apache.airavata.model.error.ExperimentNotFoundException enf) {
+      this.enf = enf;
+      return this;
+    }
+
+    public void unsetEnf() {
+      this.enf = null;
+    }
+
+    /** Returns true if field enf is set (has been assigned a value) and false 
otherwise */
+    public boolean isSetEnf() {
+      return this.enf != null;
+    }
+
+    public void setEnfIsSet(boolean value) {
+      if (!value) {
+        this.enf = null;
+      }
+    }
+
+    public org.apache.airavata.model.error.AiravataClientException getAce() {
+      return this.ace;
+    }
+
+    public validateExperiment_result 
setAce(org.apache.airavata.model.error.AiravataClientException ace) {
+      this.ace = ace;
+      return this;
+    }
+
+    public void unsetAce() {
+      this.ace = null;
+    }
+
+    /** Returns true if field ace is set (has been assigned a value) and false 
otherwise */
+    public boolean isSetAce() {
+      return this.ace != null;
+    }
+
+    public void setAceIsSet(boolean value) {
+      if (!value) {
+        this.ace = null;
+      }
+    }
+
+    public org.apache.airavata.model.error.AiravataSystemException getAse() {
+      return this.ase;
+    }
+
+    public validateExperiment_result 
setAse(org.apache.airavata.model.error.AiravataSystemException ase) {
+      this.ase = ase;
+      return this;
+    }
+
+    public void unsetAse() {
+      this.ase = null;
+    }
+
+    /** Returns true if field ase is set (has been assigned a value) and false 
otherwise */
+    public boolean isSetAse() {
+      return this.ase != null;
+    }
+
+    public void setAseIsSet(boolean value) {
+      if (!value) {
+        this.ase = null;
+      }
+    }
+
+    public void setFieldValue(_Fields field, Object value) {
+      switch (field) {
+      case SUCCESS:
+        if (value == null) {
+          unsetSuccess();
+        } else {
+          setSuccess((Boolean)value);
+        }
+        break;
+
+      case IRE:
+        if (value == null) {
+          unsetIre();
+        } else {
+          
setIre((org.apache.airavata.model.error.InvalidRequestException)value);
+        }
+        break;
+
+      case ENF:
+        if (value == null) {
+          unsetEnf();
+        } else {
+          
setEnf((org.apache.airavata.model.error.ExperimentNotFoundException)value);
+        }
+        break;
+
+      case ACE:
+        if (value == null) {
+          unsetAce();
+        } else {
+          
setAce((org.apache.airavata.model.error.AiravataClientException)value);
+        }
+        break;
+
+      case ASE:
+        if (value == null) {
+          unsetAse();
+        } else {
+          
setAse((org.apache.airavata.model.error.AiravataSystemException)value);
+        }
+        break;
+
+      }
+    }
+
+    public Object getFieldValue(_Fields field) {
+      switch (field) {
+      case SUCCESS:
+        return Boolean.valueOf(isSuccess());
+
+      case IRE:
+        return getIre();
+
+      case ENF:
+        return getEnf();
+
+      case ACE:
+        return getAce();
+
+      case ASE:
+        return getAse();
+
+      }
+      throw new IllegalStateException();
+    }
+
+    /** Returns true if field corresponding to fieldID is set (has been 
assigned a value) and false otherwise */
+    public boolean isSet(_Fields field) {
+      if (field == null) {
+        throw new IllegalArgumentException();
+      }
+
+      switch (field) {
+      case SUCCESS:
+        return isSetSuccess();
+      case IRE:
+        return isSetIre();
+      case ENF:
+        return isSetEnf();
+      case ACE:
+        return isSetAce();
+      case ASE:
+        return isSetAse();
+      }
+      throw new IllegalStateException();
+    }
+
+    @Override
+    public boolean equals(Object that) {
+      if (that == null)
+        return false;
+      if (that instanceof validateExperiment_result)
+        return this.equals((validateExperiment_result)that);
+      return false;
+    }
+
+    public boolean equals(validateExperiment_result that) {
+      if (that == null)
+        return false;
+
+      boolean this_present_success = true;
+      boolean that_present_success = true;
+      if (this_present_success || that_present_success) {
+        if (!(this_present_success && that_present_success))
+          return false;
+        if (this.success != that.success)
+          return false;
+      }
+
+      boolean this_present_ire = true && this.isSetIre();
+      boolean that_present_ire = true && that.isSetIre();
+      if (this_present_ire || that_present_ire) {
+        if (!(this_present_ire && that_present_ire))
+          return false;
+        if (!this.ire.equals(that.ire))
+          return false;
+      }
+
+      boolean this_present_enf = true && this.isSetEnf();
+      boolean that_present_enf = true && that.isSetEnf();
+      if (this_present_enf || that_present_enf) {
+        if (!(this_present_enf && that_present_enf))
+          return false;
+        if (!this.enf.equals(that.enf))
+          return false;
+      }
+
+      boolean this_present_ace = true && this.isSetAce();
+      boolean that_present_ace = true && that.isSetAce();
+      if (this_present_ace || that_present_ace) {
+        if (!(this_present_ace && that_present_ace))
+          return false;
+        if (!this.ace.equals(that.ace))
+          return false;
+      }
+
+      boolean this_present_ase = true && this.isSetAse();
+      boolean that_present_ase = true && that.isSetAse();
+      if (this_present_ase || that_present_ase) {
+        if (!(this_present_ase && that_present_ase))
+          return false;
+        if (!this.ase.equals(that.ase))
+          return false;
+      }
+
+      return true;
+    }
+
+    @Override
+    public int hashCode() {
+      return 0;
+    }
+
+    @Override
+    public int compareTo(validateExperiment_result other) {
+      if (!getClass().equals(other.getClass())) {
+        return getClass().getName().compareTo(other.getClass().getName());
+      }
+
+      int lastComparison = 0;
+
+      lastComparison = 
Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+      if (isSetSuccess()) {
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, 
other.success);
+        if (lastComparison != 0) {
+          return lastComparison;
+        }
+      }
+      lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre());
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+      if (isSetIre()) {
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, 
other.ire);
+        if (lastComparison != 0) {
+          return lastComparison;
+        }
+      }
+      lastComparison = Boolean.valueOf(isSetEnf()).compareTo(other.isSetEnf());
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+      if (isSetEnf()) {
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.enf, 
other.enf);
+        if (lastComparison != 0) {
+          return lastComparison;
+        }
+      }
+      lastComparison = Boolean.valueOf(isSetAce()).compareTo(other.isSetAce());
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+      if (isSetAce()) {
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ace, 
other.ace);
+        if (lastComparison != 0) {
+          return lastComparison;
+        }
+      }
+      lastComparison = Boolean.valueOf(isSetAse()).compareTo(other.isSetAse());
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+      if (isSetAse()) {
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ase, 
other.ase);
+        if (lastComparison != 0) {
+          return lastComparison;
+        }
+      }
+      return 0;
+    }
+
+    public _Fields fieldForId(int fieldId) {
+      return _Fields.findByThriftId(fieldId);
+    }
+
+    public void read(org.apache.thrift.protocol.TProtocol iprot) throws 
org.apache.thrift.TException {
+      schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+    }
+
+    public void write(org.apache.thrift.protocol.TProtocol oprot) throws 
org.apache.thrift.TException {
+      schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+      }
+
+    @Override
+    public String toString() {
+      StringBuilder sb = new StringBuilder("validateExperiment_result(");
+      boolean first = true;
+
+      sb.append("success:");
+      sb.append(this.success);
+      first = false;
+      if (!first) sb.append(", ");
+      sb.append("ire:");
+      if (this.ire == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.ire);
+      }
+      first = false;
+      if (!first) sb.append(", ");
+      sb.append("enf:");
+      if (this.enf == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.enf);
+      }
+      first = false;
+      if (!first) sb.append(", ");
+      sb.append("ace:");
+      if (this.ace == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.ace);
+      }
+      first = false;
+      if (!first) sb.append(", ");
+      sb.append("ase:");
+      if (this.ase == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.ase);
+      }
+      first = false;
+      sb.append(")");
+      return sb.toString();
+    }
+
+    public void validate() throws org.apache.thrift.TException {
+      // check for required fields
+      // check for sub-struct validity
+    }
+
+    private void writeObject(java.io.ObjectOutputStream out) throws 
java.io.IOException {
+      try {
+        write(new org.apache.thrift.protocol.TCompactProtocol(new 
org.apache.thrift.transport.TIOStreamTransport(out)));
+      } catch (org.apache.thrift.TException te) {
+        throw new java.io.IOException(te);
+      }
+    }
+
+    private void readObject(java.io.ObjectInputStream in) throws 
java.io.IOException, ClassNotFoundException {
+      try {
+        // it doesn't seem like you should have to do this, but java 
serialization is wacky, and doesn't call the default constructor.
+        __isset_bitfield = 0;
+        read(new org.apache.thrift.protocol.TCompactProtocol(new 
org.apache.thrift.transport.TIOStreamTransport(in)));
+      } catch (org.apache.thrift.TException te) {
+        throw new java.io.IOException(te);
+      }
+    }
+
+    private static class validateExperiment_resultStandardSchemeFactory 
implements SchemeFactory {
+      public validateExperiment_resultStandardScheme getScheme() {
+        return new validateExperiment_resultStandardScheme();
+      }
+    }
+
+    private static class validateExperiment_resultStandardScheme extends 
StandardScheme<validateExperiment_result> {
+
+      public void read(org.apache.thrift.protocol.TProtocol iprot, 
validateExperiment_result struct) throws org.apache.thrift.TException {
+        org.apache.thrift.protocol.TField schemeField;
+        iprot.readStructBegin();
+        while (true)
+        {
+          schemeField = iprot.readFieldBegin();
+          if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
+            break;
+          }
+          switch (schemeField.id) {
+            case 0: // SUCCESS
+              if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
+                struct.success = iprot.readBool();
+                struct.setSuccessIsSet(true);
+              } else { 
+                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, 
schemeField.type);
+              }
+              break;
+            case 1: // IRE
+              if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) 
{
+                struct.ire = new 
org.apache.airavata.model.error.InvalidRequestException();
+                struct.ire.read(iprot);
+                struct.setIreIsSet(true);
+              } else { 
+                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, 
schemeField.type);
+              }
+              break;
+            case 2: // ENF
+              if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) 
{
+                struct.enf = new 
org.apache.airavata.model.error.ExperimentNotFoundException();
+                struct.enf.read(iprot);
+                struct.setEnfIsSet(true);
+              } else { 
+                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, 
schemeField.type);
+              }
+              break;
+            case 3: // ACE
+              if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) 
{
+                struct.ace = new 
org.apache.airavata.model.error.AiravataClientException();
+                struct.ace.read(iprot);
+                struct.setAceIsSet(true);
+              } else { 
+                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, 
schemeField.type);
+              }
+              break;
+            case 4: // ASE
+              if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) 
{
+                struct.ase = new 
org.apache.airavata.model.error.AiravataSystemException();
+                struct.ase.read(iprot);
+                struct.setAseIsSet(true);
+              } else { 
+                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, 
schemeField.type);
+              }
+              break;
+            default:
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, 
schemeField.type);
+          }
+          iprot.readFieldEnd();
+        }
+        iprot.readStructEnd();
+
+        // check for required fields of primitive type, which can't be checked 
in the validate method
+        struct.validate();
+      }
+
+      public void write(org.apache.thrift.protocol.TProtocol oprot, 
validateExperiment_result struct) throws org.apache.thrift.TException {
+        struct.validate();
+
+        oprot.writeStructBegin(STRUCT_DESC);
+        if (struct.isSetSuccess()) {
+          oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
+          opro

<TRUNCATED>

Reply via email to