Package org.sdnplatform.sync.ISyncService

Examples of org.sdnplatform.sync.ISyncService.Scope


                throws Exception {
            if (tokens.length < 3) {
                err.println("Usage: " + syntaxString());
                return false;
            }
            Scope scope = Scope.LOCAL;
            if ("global".equals(tokens[2]))
                scope = Scope.GLOBAL;

            syncClientSettings.storeName = tokens[1];
            syncManager.registerStore(syncClientSettings.storeName, scope);
View Full Code Here


                             new Object[]{getLocalNodeIdString(),
                                          getRemoteNodeIdString(),
                                          request});
            }

            Scope scope = TProtocolUtil.getScope(request.getStore().getScope());
            for (KeyedValues kv : request.getValues()) {
                Iterable<VersionedValue> tvvi = kv.getValues();
                Iterable<Versioned<byte[]>> vs = new TVersionedValueIterable(tvvi);
                syncManager.writeSyncValue(request.getStore().getStoreName(),
                                           scope,
View Full Code Here

    @Override
    protected void handleRegisterRequest(RegisterRequestMessage request,
                                         Channel channel) {
        try {
            Scope scope = TProtocolUtil.getScope(request.store.getScope());
            if (request.store.isPersist())
                syncManager.registerPersistentStore(request.store.storeName,
                                                    scope);
            else
                syncManager.registerStore(request.store.storeName, scope);
View Full Code Here

TOP

Related Classes of org.sdnplatform.sync.ISyncService.Scope

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.