Package org.structr.cloud

Examples of org.structr.cloud.WebsocketProgressListener


        for (final SchemaRelationship rel : app.relationshipQuery(SchemaRelationship.class).getAsList()) {
          tms.getExportSet().add(rel);
        }

        // push schema
        CloudService.doRemote(tms, new WebsocketProgressListener(getWebSocket(), key));

        tx.success();

      } catch (FrameworkException fex) {
View Full Code Here


    if (host != null && port != null && username != null && password != null && key != null) {

      final App app    = StructrApp.getInstance();
      try (final Tx tx = app.tx()) {

        final List<SyncableInfo> syncables = CloudService.doRemote(new SingleTransmission<>(new ListSyncables(type), username, password, host, port.intValue()), new WebsocketProgressListener(getWebSocket(), key));
        final StructrWebSocket webSocket   = getWebSocket();
        if (syncables != null) {

          final List<GraphObject> result = new LinkedList<>();
          for (final SyncableInfo info : syncables) {
View Full Code Here

            if (recursiveSource != null) {

              recursive = "true".equals(recursiveSource.toString());
            }

            CloudService.doRemote(new PushTransmission((Syncable)root, recursive, username, password, host, port.intValue()), new WebsocketProgressListener(getWebSocket(), key));

          } else {

            getWebSocket().send(MessageBuilder.status().code(400).message("Entity with ID " + sourceId + " cannot be synced.").build(), true);
          }
View Full Code Here

        if (recursiveSource != null) {

          recursive = "true".equals(recursiveSource.toString());
        }

        CloudService.doRemote(new PullTransmission(sourceId, recursive, username, password, host, port.intValue()), new WebsocketProgressListener(getWebSocket(), key));

        // send finished event
        getWebSocket().send(MessageBuilder.finished().build(), true);

      } catch (FrameworkException fex) {
View Full Code Here

TOP

Related Classes of org.structr.cloud.WebsocketProgressListener

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.