Examples of BrokerManagerAdminServiceException


Examples of org.wso2.carbon.brokermanager.admin.internal.exception.BrokerManagerAdminServiceException

            for (int index = 0; index < brokerNames.length; index++) {
                brokerNames[index] = brokerTypeDtoList.get(index).getName();
            }
            return brokerNames;
        }
        throw new BrokerManagerAdminServiceException("No Broker Names are received.");
    }
View Full Code Here

Examples of org.wso2.carbon.brokermanager.admin.internal.exception.BrokerManagerAdminServiceException

                    brokerPropertyArray[index].setDisplayName(property.getDisplayName());
                }
                return brokerPropertyArray;
            }
        }
        throw new BrokerManagerAdminServiceException("No Broker Properties are received.");
    }
View Full Code Here

Examples of org.wso2.carbon.brokermanager.admin.internal.exception.BrokerManagerAdminServiceException

        // add broker configuration
        try {
            brokerManager.getBrokerManagerService().addBrokerConfiguration(brokerConfiguration, tenantId);
            testBrokerConfiguration(brokerName);
        } catch (BMConfigurationException e) {
            throw new BrokerManagerAdminServiceException("Error in adding broker Configuration", e);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.brokermanager.admin.internal.exception.BrokerManagerAdminServiceException

        BrokerManagerHolder brokerManager = BrokerManagerHolder.getInstance();
        int tenantId = CarbonContext.getCurrentContext().getTenantId();
        try {
            brokerManager.getBrokerManagerService().removeBrokerConfiguration(brokerName, tenantId);
        } catch (BMConfigurationException e) {
            throw new BrokerManagerAdminServiceException("Error in removing broker configurations" + e);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.brokermanager.admin.internal.exception.BrokerManagerAdminServiceException

                }

            }
            return brokerConfigurationDetailsArray;
        } else {
            throw new BrokerManagerAdminServiceException("No Broker Configurations received.");
        }

    }
View Full Code Here

Examples of org.wso2.carbon.brokermanager.admin.internal.exception.BrokerManagerAdminServiceException

                brokerPropertyArray[index].setDisplayName(property.getDisplayName());
                index++;
            }
            return brokerPropertyArray;
        } else {
            throw new BrokerManagerAdminServiceException("No such broker exists.");
        }
    }
View Full Code Here

Examples of org.wso2.carbon.brokermanager.admin.internal.exception.BrokerManagerAdminServiceException

            reader1 = StAXUtils.createXMLStreamReader(new ByteArrayInputStream(testMessage.getBytes()));
            StAXOMBuilder builder1 = new StAXOMBuilder(reader1);
            brokerHolder.getBrokerService().publish(configuration, "test", builder1.getDocumentElement());
        } catch (XMLStreamException e) {
            removeBrokerConfiguration(brokerName);
            throw new BrokerManagerAdminServiceException("Failed to prepare test message to " +
                                                         "publish to broker:" + brokerName, e);
        } catch (BrokerEventProcessingException e) {
            removeBrokerConfiguration(brokerName);
            throw new BrokerManagerAdminServiceException("Error at testing broker configuration" +
                                                         " due to " + e.getMessage(), 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.