Examples of RestAPIException


Examples of org.apache.stratos.rest.endpoint.exception.RestAPIException

      try {
        autoscalerServiceClient
            .deployDeploymentPolicy(deploymentPolicy);
      } catch (RemoteException e) {
        log.error(e.getMessage(), e);
        throw new RestAPIException(e.getMessage(), e);
      } catch (AutoScalerServiceInvalidPolicyExceptionException e) {
        String message = e.getFaultMessage().getInvalidPolicyException().getMessage();
        log.error(message, e);
        throw new RestAPIException(message, e);
      }

        }

        StratosAdminResponse stratosAdminResponse = new StratosAdminResponse();
View Full Code Here

Examples of org.apache.stratos.rest.endpoint.exception.RestAPIException

        } catch (AxisFault axisFault) {
            String errorMsg = "Error while getting CloudControllerServiceClient instance to connect to the "
                + "Cloud Controller. Cause: "+axisFault.getMessage();
            log.error(errorMsg, axisFault);
            throw new RestAPIException(errorMsg, axisFault);
        }
    }
View Full Code Here

Examples of org.apache.stratos.rest.endpoint.exception.RestAPIException

                partitions = autoscalerServiceClient.getAvailablePartitions();

            } catch (RemoteException e) {
                String errorMsg = "Error while getting available partitions. Cause : " + e.getMessage();
                log.error(errorMsg, e);
                throw new RestAPIException(errorMsg, e);
            }
        }

        return PojoConverter.populatePartitionPojos(partitions);
    }
View Full Code Here

Examples of org.apache.stratos.rest.endpoint.exception.RestAPIException

            } catch (RemoteException e) {
                String errorMsg = "Error while getting available partitions for deployment policy id " +
                    deploymentPolicyId+". Cause: "+e.getMessage();
                log.error(errorMsg, e);
                throw new RestAPIException(errorMsg, e);
            }
        }

        return PojoConverter.populatePartitionPojos(partitions);
    }
View Full Code Here

Examples of org.apache.stratos.rest.endpoint.exception.RestAPIException

            } catch (RemoteException e) {
                String errorMsg = "Error while getting available partitions for deployment policy id " + deploymentPolicyId +
                        ", group id " + groupId+". Cause: "+e.getMessage();
                log.error(errorMsg, e);
                throw new RestAPIException(errorMsg, e);
            }
        }

        return PojoConverter.populatePartitionPojos(partitions);
    }
View Full Code Here

Examples of org.apache.stratos.rest.endpoint.exception.RestAPIException

                partition = autoscalerServiceClient.getPartition(partitionId);

            } catch (RemoteException e) {
                String errorMsg = "Error while getting partition for id " + partitionId+". Cause: "+e.getMessage();
                log.error(errorMsg, e);
                throw new RestAPIException(errorMsg, e);
            }
        }

        return PojoConverter.populatePartitionPojo(partition);
    }
View Full Code Here

Examples of org.apache.stratos.rest.endpoint.exception.RestAPIException

        } catch (AxisFault axisFault) {
            String errorMsg = "Error while getting AutoscalerServiceClient instance to connect to the "
                + "Autoscaler. Cause: "+axisFault.getMessage();
            log.error(errorMsg, axisFault);
            throw new RestAPIException(errorMsg, axisFault);
        }
    }
View Full Code Here

Examples of org.apache.stratos.rest.endpoint.exception.RestAPIException

                autoscalePolicies = autoscalerServiceClient.getAutoScalePolicies();

            } catch (RemoteException e) {
                String errorMsg = "Error while getting available autoscaling policies. Cause : " + e.getMessage();
                log.error(errorMsg, e);
                throw new RestAPIException(errorMsg, e);
            }
        }
        return PojoConverter.populateAutoscalePojos(autoscalePolicies);
    }
View Full Code Here

Examples of org.apache.stratos.rest.endpoint.exception.RestAPIException

            } catch (RemoteException e) {
                String errorMsg = "Error while getting information for autoscaling policy with id " +
                    autoscalePolicyId+".  Cause: "+e.getMessage();
                log.error(errorMsg, e);
                throw new RestAPIException(errorMsg, e);
            }
        }

        return PojoConverter.populateAutoscalePojo(autoscalePolicy);
    }
View Full Code Here

Examples of org.apache.stratos.rest.endpoint.exception.RestAPIException

            try {
                deploymentPolicies = autoscalerServiceClient.getDeploymentPolicies();
            } catch (RemoteException e) {
                String errorMsg = "Error getting available deployment policies. Cause : " + e.getMessage();
                log.error(errorMsg, e);
                throw new RestAPIException(errorMsg, e);
            }
        }
       

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.