Package com.taobao.metamorphosis.exception

Examples of com.taobao.metamorphosis.exception.NetworkException


        }
        catch (final InterruptedException e) {
            throw e;
        }
        catch (final Exception e) {
            throw new NetworkException("failed to query offset form " + masterServerUrl + ",topic=" + topic
                + ",partition=" + partition.getPartition(), e);
        }
    }
View Full Code Here


            this.remotingClient.awaitReadyInterrupt(serverUrl, 5000);
            // 5�������Ӳ�������Ϊ�����û����
            // ,��ϲ�ѯ
        }
        catch (final NotifyRemotingException e) {
            throw new NetworkException("Connect to " + serverUrl + " failed", e);
        }
        catch (final InterruptedException e) {
            throw e;
        }
    }
View Full Code Here

            clientConfig.setMaxScheduleWrittenBytes(MAX_SCHEDULE_WRITTEN_BYTES);
            try {
                this.remotingClient = new RemotingClientWrapper(RemotingFactory.connect(clientConfig));
            }
            catch (final NotifyRemotingException e) {
                throw new NetworkException("Create remoting client failed", e);
            }
            // ��������ã���ʹ�����õ�url�����ӣ�����ʹ��zk���ַ�����
            if (this.metaClientConfig.getServerUrl() != null) {
                this.connectServer(this.metaClientConfig);
            }
View Full Code Here

        try {
            this.remotingClient.connect(metaClientConfig.getServerUrl());
            this.remotingClient.awaitReadyInterrupt(metaClientConfig.getServerUrl());
        }
        catch (final NotifyRemotingException e) {
            throw new NetworkException("Connect to " + metaClientConfig.getServerUrl() + " failed", e);
        }
        catch (final InterruptedException e) {
            Thread.currentThread().interrupt();
        }
    }
View Full Code Here

            if (this.remotingClient != null) {
                this.remotingClient.stop();
            }
        }
        catch (final NotifyRemotingException e) {
            throw new NetworkException("Stop remoting client failed", e);
        }
        if (this.zkClient != null) {
            this.zkClient.close();
        }
        if (!this.isHutdownHookCalled && this.shutdownHook != null) {
View Full Code Here

TOP

Related Classes of com.taobao.metamorphosis.exception.NetworkException

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.