Package org.apache.sirona

Examples of org.apache.sirona.SironaException


                    .childHandler(new Initializer())
                    .bind(host, port).addListener(new ChannelFutureListener() {
                        @Override
                        public void operationComplete(final ChannelFuture future) throws Exception {
                            if (!future.isSuccess()) {
                                throw new SironaException("bind failed");
                            }
                        }
                    }).sync();
            } catch (final InterruptedException e) {
                throw new SironaException(e);
            }

            return this;
        }
View Full Code Here


            charset = "UTF-8";
        }
        try {
            return new Graphite(SocketFactory.getDefault(), address, port, Charset.forName(charset));
        } catch (final IOException e) {
            throw new SironaException(e);
        }
    }
View Full Code Here

            try {
                final SSLContext sslContext = SSLContext.getInstance("SSL");
                sslContext.init(keyManagers, trustManagers, new java.security.SecureRandom());
                socketFactory = sslContext.getSocketFactory();
            } catch (final Exception e) {
                throw new SironaException(e);
            }
        } else {
            socketFactory = null;
        }
View Full Code Here

            }
            TrustManagerFactory tmf = TrustManagerFactory.getInstance(null == sslTrustStoreProvider ? TrustManagerFactory.getDefaultAlgorithm() : sslTrustStoreProvider);
            tmf.init(ks);
            return tmf.getTrustManagers();
        } catch (final Exception e) {
            throw new SironaException(e);
        }
    }
View Full Code Here

            }
            KeyManagerFactory kmf = KeyManagerFactory.getInstance(null == sslKeyStoreProvider ? KeyManagerFactory.getDefaultAlgorithm() : sslKeyStoreProvider);
            kmf.init(ks, pwd);
            return kmf.getKeyManagers();
        } catch (final Exception e) {
            throw new SironaException(e);
        }
    }
View Full Code Here

                    if (agents != null) {
                        for (final String url : agents.split(",")) {
                            try {
                                registerNode(url.trim());
                            } catch (final MalformedURLException e) {
                                throw new SironaException(e);
                            }
                        }
                    }
                }
            }
View Full Code Here

                    }
                    final NodeStatus status = new NodeStatus(results.toArray(new ValidationResult[results.size()]), statusDate);
                    statusDataStore.store((String) events[0].getData().get("marker"), status);
                }
            } catch (final Exception e) {
                throw new SironaException(e);
            }
        }
    }
View Full Code Here

    public void clear(final HttpServletRequest request, final HttpServletResponse response) {
        Repository.INSTANCE.clearCounters();
        try {
            response.sendRedirect(request.getRequestURI().substring(0, request.getRequestURI().length() - "/clear".length()));
        } catch (final IOException e) {
            throw new SironaException(e);
        }
    }
View Full Code Here

                            }
                        }
                        declaring = declaring.getSuperclass();
                    }
                } catch (final ClassNotFoundException e) {
                    throw new SironaException(e);
                }
            }
            return realMethod;
        }
View Full Code Here

            try {
                final SSLContext sslContext = SSLContext.getInstance("SSL");
                sslContext.init(keyManagers, trustManagers, new java.security.SecureRandom());
                socketFactory = sslContext.getSocketFactory();
            } catch (final Exception e) {
                throw new SironaException(e);
            }
        } else {
            socketFactory = null;
        }
View Full Code Here

TOP

Related Classes of org.apache.sirona.SironaException

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.