Examples of move()


Examples of org.apache.hadoop.hbase.client.Admin.move()

      HRegionServer targetServer = cluster.getRegionServer(targetServerNum);
      assertFalse(originServer.equals(targetServer));

      TEST_UTIL.waitUntilAllRegionsAssigned(table.getName());
      Log.info("Moving " + regionInfo.getEncodedName() + " to " + targetServer.getServerName());
      hbaseAdmin.move(regionInfo.getEncodedNameAsBytes(),
          Bytes.toBytes(targetServer.getServerName().getServerName()));
      do {
        Thread.sleep(1);
      } while (cluster.getServerWith(regionInfo.getRegionName()) == originServerNum);

Examples of org.apache.hadoop.hbase.client.HBaseAdmin.move()

      final Map.Entry<HRegionInfo, ServerName> firstRegion = regions.entrySet()
          .iterator().next();

      PrivilegedExceptionAction moveAction = new PrivilegedExceptionAction() {
        public Object run() throws Exception {
          admin.move(firstRegion.getKey().getEncodedNameAsBytes(),
              Bytes.toBytes(newRs.getServerName().getServerName()));
          return null;
        }
      };
      SUPERUSER.runAs(moveAction);

Examples of org.apache.hadoop.hbase.master.HMaster.move()

        break;
      }
    }
    assertTrue("Found server", found);
    LOG.info("Found " + destName);
    master.move(firstGoodPair.getKey().getEncodedNameAsBytes(),
      Bytes.toBytes(destName));
    assertTrue("Coprocessor should have been called on region move",
      cp.wasMoveCalled());

    // make sure balancer is on

Examples of org.apache.isis.viewer.dnd.Location.move()

  private TimePeriod calculate(InternalDrag drag) {
    // TODO this fails when the layout decorator is itself decorated (e.g. by a WindowBorder!
    ScheduleLayout layout = (ScheduleLayout) getParent().getSpecification();
        
    Location location = drag.getLocation();
    location.move(0, -getView().getLocation().getY());
    int top = drag.getOverlay().getLocation().getY() - location.getY();
         int bottom = top + drag.getOverlay().getSize().getHeight();
        
         LOG.debug(top + " " + bottom);
        

Examples of org.apache.isis.viewer.dnd.drawing.Location.move()

            boolean forView = viewer.viewAreaType(new Location(click.getLocation())) == ViewAreaType.VIEW;
            forView = click.isAlt() ^ forView;
            final boolean includeExploration = click.isCtrl();
            final boolean includeDebug = click.isShift();
            final Location at = click.getLocation();
            at.move(-14, -10);
            viewer.popupMenu(identifiedView, at, forView, includeExploration, includeDebug);
        }
    }

    private void fireClick(final Click click, final int clickCount) {

Examples of org.apache.jackrabbit.core.SessionImpl.move()

        // give 'add_child_nodes' and 'nt-management' privilege
        // -> not sufficient privileges for a move
        givePrivileges(path, privilegesFromNames(new String[] {Privilege.JCR_ADD_CHILD_NODES, Privilege.JCR_NODE_TYPE_MANAGEMENT}), getRestrictions(superuser, path));
        try {
            testSession.move(childNPath, destPath);
            testSession.save();
            fail("Move requires add and remove permission.");
        } catch (AccessDeniedException e) {
            // success.
        }

Examples of org.apache.jackrabbit.oak.api.Root.move()

        Tree y = tree.getChild("y");
        Tree x = tree.getChild("x");
        assertTrue(x.exists());

        assertFalse(root.hasPendingChanges());
        root.move("/x", "/y/xx");
        assertTrue(root.hasPendingChanges());
        assertFalse(tree.hasChild("x"));
        assertTrue(y.hasChild("xx"));
        assertEquals("/y/xx", x.getPath());

Examples of org.apache.jackrabbit.oak.jcr.state.TransientNodeState.move()

        TransientNodeState sourceParent = nodeStateProvider.getNodeState(sourcePath.getParent());
        if (sourceParent == null) {
            throw new PathNotFoundException(srcAbsPath);
        }

        sourceParent.move(sourcePath.getName(), Path.create(sessionContext.getWorkspaceName(), destAbsPath));
    }

    //------------------------------------------------------------< state >---

    @Override

Examples of org.apache.jackrabbit.oak.spi.state.NodeStoreBranch.move()

        assertEquals(1, diff.added.size());
        assertEquals("child-new", diff.added.get(0));

        base = store.getRoot();
        branch = store.branch();
        branch.move("/parent/child-new", "/parent/child-moved");
        branch.merge(EmptyHook.INSTANCE);

        diff = new Diff();
        store.getRoot().compareAgainstBaseState(base, diff);

Examples of org.apache.jackrabbit.ocm.manager.ObjectContentManager.move()

          ocm.save();
     
      // --------------------------------------------------------------------------------
      // Copy the object
      // --------------------------------------------------------------------------------
          ocm.move("/source", "/result");
            ocm.save();

      // --------------------------------------------------------------------------------
      // Get the object
      // --------------------------------------------------------------------------------
TOP
Copyright © 2018 www.massapi.com. 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.