Examples of synchronize()


Examples of net.sf.logsaw.index.IIndexService.synchronize()

  public void testAllQuery() {
    try {
      IIndexService indexService = IndexPlugin.getDefault().getIndexService();
      loadLogFile("sample-1.log.xml");
      createLogResourceWithPK("UTF-8", Locale.getDefault(), getTimeZone());
      indexService.synchronize(getLogResource(), null);
      IQueryContext ctx = indexService.createQueryContext(getLogResource());
      try {
        ResultPage p = indexService.query(ctx, new LinkedList<ARestriction<?>>(), 0, 1000);
        assertEquals(5, p.getItems().size());
        assertEquals(5, p.getTotalHits());
View Full Code Here

Examples of net.sf.logsaw.index.IIndexService.synchronize()

  public void testPagination() {
    try {
      IIndexService indexService = IndexPlugin.getDefault().getIndexService();
      loadLogFile("sample-1.log.xml");
      createLogResourceWithPK("UTF-8", Locale.getDefault(), getTimeZone());
      indexService.synchronize(getLogResource(), null);
      IQueryContext ctx = indexService.createQueryContext(getLogResource());
      try {
        ResultPage p = indexService.query(ctx, new LinkedList<ARestriction<?>>(), 2, 2);
        assertEquals(2, p.getItems().size());
        assertEquals("Setting up property manager MBean and JMX layer", p.getItems().get(0).get(Log4JFieldProvider.FIELD_MESSAGE));
View Full Code Here

Examples of net.sf.logsaw.ui.ILogResourceManager.synchronize()

      assertTrue(getLogResource().getPK() != null);
      assertEquals(size + 1, mgr.getAll().length);
     
      final SynchronizationResult[] result = new SynchronizationResult[1];
      final CountDownLatch countDown = new CountDownLatch(1);
      mgr.synchronize(getLogResource(), new IGenericCallback<SynchronizationResult>() {
        /* (non-Javadoc)
         * @see net.sf.logsaw.ui.IGenericCallback#doCallback(java.lang.Object)
         */
        @Override
        public void doCallback(SynchronizationResult payload) {
View Full Code Here

Examples of net.tomp2p.synchronization.PeerSync.synchronize()

      Data test2 = new Data(oldValue.getBytes());

      sender.put(locationKey).data(test1).start().awaitUninterruptibly();
      receiver.put(locationKey).data(test2).start().awaitUninterruptibly();

      FutureDone<SyncStat> future = senderSync.synchronize(receiver.peerAddress()).key(key)
              .start();
      future.awaitUninterruptibly();

      System.err.println(future.object().toString());
      Data data = receiver.storageLayer()
View Full Code Here

Examples of org.apache.felix.sigil.common.repository.IResolution.synchronize()

            markProblems(resolution);

            // pull remote bundles from repositories to be added to classpath
            if (!resolution.isSynchronized())
            {
                resolution.synchronize(new ProgressAdapter(progress.newChild(80)));
            }
        }
        catch (ResolutionException e)
        {
            throw SigilCore.newCoreException("Failed to resolve dependencies", e);
View Full Code Here

Examples of org.eclipse.ui.texteditor.IDocumentProviderExtension.synchronize()

   * @see org.eclipse.ui.texteditor.IDocumentProviderExtension#synchronize(java.lang.Object)
   */
  public void synchronize(Object element) throws CoreException {
    if (fParentProvider instanceof IDocumentProviderExtension) {
      IDocumentProviderExtension extension= (IDocumentProviderExtension)fParentProvider;
      extension.synchronize(element);
    }
  }

  /*
   * @see org.eclipse.ui.texteditor.IDocumentProviderExtension2#setProgressMonitor(org.eclipse.core.runtime.IProgressMonitor)
View Full Code Here

Examples of org.geoserver.security.AuthenticationKeyMapper.synchronize()

                   
                    getSecurityManager().saveFilter(config);
                    AuthenticationKeyMapper mapper = (AuthenticationKeyMapper) GeoServerExtensions.bean(config.getAuthKeyMapperName());
                    mapper.setSecurityManager(getSecurityManager());
                    mapper.setUserGroupServiceName(config.getUserGroupServiceName());
                    int numberOfNewKeys=mapper.synchronize();
                    info(new StringResourceModel("synchronizeSuccessful",AuthenticationKeyFilterPanel.this, null,new Object[] {numberOfNewKeys}).getObject());
                }
                catch(Exception e) {
                    error(e);                   
                    LOGGER.log(Level.WARNING, "Authentication key  error ", e);
View Full Code Here

Examples of org.ggf.drmaa.Session.synchronize()

         while (i.hasNext()) {
            System.out.println("Your job has been submitted with id " + i.next());
         }
        
         session.deleteJobTemplate(jt);
         session.synchronize(Collections.singletonList(Session.JOB_IDS_SESSION_ALL),
               Session.TIMEOUT_WAIT_FOREVER, true);
        
         System.out.println("All jobs have finished.");
        
         session.exit();
View Full Code Here

Examples of org.ggf.drmaa.Session.synchronize()

         while (i.hasNext()) {
            System.out.println("Your job has been submitted with id " + i.next());
         }
        
         session.deleteJobTemplate(jt);
         session.synchronize(Collections.singletonList(Session.JOB_IDS_SESSION_ALL),
               Session.TIMEOUT_WAIT_FOREVER, false);
        
         for (int count = start; count < end; count += step) {
            JobInfo info = session.wait(Session.JOB_IDS_SESSION_ANY,
                  Session.TIMEOUT_WAIT_FOREVER);
View Full Code Here

Examples of org.nasutekds.quicksetup.util.FileManager.synchronize()

          return !Utils.isDescendant(f, oldConfigUpgradeDir)
              && !Utils.isDescendant(f, oldConfigSchemaDir);
        }
      };

      fm.synchronize(oldInstallConfigDir, newInstallConfigDir, filter);
    }

    {
      final File oldConfigUpgradeDir =
        new File(oldInstanceConfigDir, "upgrade");
View Full Code Here
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.