Package org.apache.hedwig.protocol.PubSubProtocol

Examples of org.apache.hedwig.protocol.PubSubProtocol.ManagerMeta


    }

    private void writeFactoryLayout(ServerConfiguration conf, String managerCls,
                                    int managerVersion)
        throws Exception {
        ManagerMeta managerMeta = ManagerMeta.newBuilder()
                                             .setManagerImpl(managerCls)
                                             .setManagerVersion(managerVersion)
                                             .build();
        FactoryLayout layout = new FactoryLayout(managerMeta);
        layout.store(zk, conf);
View Full Code Here


    private void writeFactoryLayout(ServerConfiguration conf,
                                    String factoryCls,
                                    int factoryVersion)
        throws Exception {
        ManagerMeta meta = ManagerMeta.newBuilder()
                                      .setManagerImpl(factoryCls)
                                      .setManagerVersion(factoryVersion).build();
        new FactoryLayout(meta).store(zk, conf);
    }
View Full Code Here

        try {
            managerFactory = ReflectionUtils.newInstance(factoryClass);
        } catch (Throwable t) {
            throw new IOException("Fail to instantiate metadata manager factory : " + factoryClass, t);
        }
        ManagerMeta managerMeta = ManagerMeta.newBuilder()
                                  .setManagerImpl(factoryClass.getName())
                                  .setManagerVersion(managerFactory.getCurrentVersion())
                                  .build();
        FactoryLayout layout = new FactoryLayout(managerMeta);
        try {
View Full Code Here

        } catch (KeeperException.NoNodeException nne) {
            return null;
        } catch (InterruptedException ie) {
            throw new IOException(ie);
        }
        ManagerMeta meta;
        try {
            BufferedReader reader = new BufferedReader(
                new StringReader(new String(layoutData)));
            ManagerMeta.Builder metaBuilder = ManagerMeta.newBuilder();
            TextFormat.merge(reader, metaBuilder);
View Full Code Here

TOP

Related Classes of org.apache.hedwig.protocol.PubSubProtocol.ManagerMeta

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.