Package org.wso2.carbon.cep.admin.internal.exception

Examples of org.wso2.carbon.cep.admin.internal.exception.CEPAdminException


        try {
            return cepServiceInterface.editQuery(bucketName, adaptQuery(queryDTO));
        } catch (CEPConfigurationException e) {
            String errorMessage = "Error in editing the queryDTO :" + queryDTO.getName();
            log.error(errorMessage, e);
            throw new CEPAdminException(errorMessage, e);
        }
    }
View Full Code Here


            return queriesArray;
        } catch (CEPConfigurationException e) {
            String errorMessage = "Error in reading queries from back end ";
            log.error(errorMessage, e);
            throw new CEPAdminException(errorMessage, e);
        }
    }
View Full Code Here

            Bucket bucket = cepServiceInterface.getBucket(bucketName);
            return bucket.getQueries().size();
        } catch (CEPConfigurationException e) {
            String errorMessage = "Error in getting all query count for the bucket :" + bucketName;
            log.error(errorMessage, e);
            throw new CEPAdminException(errorMessage, e);
        }
    }
View Full Code Here

            return inputsArray;
        } catch (CEPConfigurationException e) {
            String errorMessage = "Error in reading inputs from back end ";
            log.error(errorMessage, e);
            throw new CEPAdminException(errorMessage, e);
        }
    }
View Full Code Here

            Bucket bucket = cepServiceInterface.getBucket(bucketName);
            return bucket.getInputs().size();
        } catch (CEPConfigurationException e) {
            String errorMessage = "Error in getting all query count for the bucket :" + bucketName;
            log.error(errorMessage, e);
            throw new CEPAdminException(errorMessage, e);
        }
    }
View Full Code Here

        try {
            return cepServiceInterface.removeInput(bucketName, inputTopic);
        } catch (CEPConfigurationException e) {
            String errorMessage = "Error in removing input " + inputTopic + " from bucket :" + bucketName;
            log.error(errorMessage, e);
            throw new CEPAdminException(errorMessage, e);
        }
    }
View Full Code Here

        try {
            return cepServiceInterface.removeAllInputs(bucketName);
        } catch (CEPConfigurationException e) {
            String errorMessage = "Error in removing all inputs from bucket :" + bucketName;
            log.error(errorMessage, e);
            throw new CEPAdminException(errorMessage, e);
        }
    }
View Full Code Here

        }

        public void run() {
            try {
                MessageContext msgCtx = ((Axis2MessageContext) synCtx).getAxis2MessageContext();
                Event<MessageContext> event = new Event(msgCtx);
                subscriptions = subscriptionManager.getMatchingSubscriptions(event);
            } catch (EventException e) {
                handleException("Matching subscriptions fetching error", e);
            }
View Full Code Here

     * @throws EventException event
     */
    private void processGetStatusRequest(MessageContext mc,
                                         ResponseMessageBuilder messageBuilder)
            throws AxisFault, EventException {
        Subscription subscription =
                SubscriptionMessageBuilder.createGetStatusMessage(mc);
        if (log.isDebugEnabled()) {
            log.debug("GetStatus request recived for SynapseSubscription ID : " +
                    subscription.getId());
        }
        subscription = subscriptionManager.getSubscription(subscription.getId());
        if (subscription != null) {
            if (log.isDebugEnabled()) {
                log.debug("Sending GetStatus responce for SynapseSubscription ID : " +
                        subscription.getId());
            }
            //send the responce
            SOAPEnvelope soapEnvelope = messageBuilder.genGetStatusResponse(subscription);
            dispatchResponse(soapEnvelope, EventingConstants.WSE_GET_STATUS_RESPONSE,
                    mc, false);
View Full Code Here


    public SynapseSubscription() {
        this.setId(UIDGenerator.generateURNString());
        this.setDeliveryMode(EventingConstants.WSE_DEFAULT_DELIVERY_MODE);
        SubscriptionData subscriptionData = new SubscriptionData();
        subscriptionData.setProperty(SynapseEventingConstants.STATIC_ENTRY, "false");
        this.setSubscriptionData(subscriptionData);
    }
View Full Code Here

TOP

Related Classes of org.wso2.carbon.cep.admin.internal.exception.CEPAdminException

Copyright © 2018 www.massapicom. 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.