Examples of revert()


Examples of com.vmware.vim.binding.vim.vm.Snapshot.revert()

      // revert to snapshot: host=null, suppressPowerOn=false
      VcTask task = VcContext.getTaskMgr().execute(new IVcTaskBody() {
         @Override
         public VcTask body() throws Exception {
            final Snapshot snap = getManagedObject();
            return new VcTask(TaskType.RevertSanp, snap.revert(null, false), callback);
         }
      });
      return task;
   }
View Full Code Here

Examples of com.volantis.mcs.xdime.ElementOutputState.revert()

        dataHandlingStrategy.stopHandlingData(context);

        stylingStrategy.endElement(
                getStylingEngine(context), getNamespace(), getTagName());

        state.revert();

        return XDIMEResult.CONTINUE_PROCESSING;
    }

    /**
 
View Full Code Here

Examples of com.webobjects.eocontrol.EOEditingContext.revert()

          }
      } finally {
        if( shouldRevert ) {
          ec.lock();
          try {
            ec.revert();
          } finally {
            ec.unlock();
          }
        }
      }
View Full Code Here

Examples of lineage2.gameserver.model.base.TeamType.revert()

        allDead = false;
      }
    }
    if (allDead)
    {
      _winner = team.revert();
      stopEvent();
    }
  }
 
  /**
 
View Full Code Here

Examples of org.apache.ace.repository.ext.CachedRepository.revert()

        m_cachedRepository.writeLocal(new ByteArrayInputStream(newTestContent));
        input = m_cachedRepository.getLocal(false);
        byte[] inputBytes = AdminTestUtil.copy(input);
        assert AdminTestUtil.byteArraysEqual(inputBytes, newTestContent) : "We got something different than 'new' from getLocal: " + new String(inputBytes);

        m_cachedRepository.revert();
        input = m_cachedRepository.getLocal(false);
        inputBytes = AdminTestUtil.copy(input);
        assert AdminTestUtil.byteArraysEqual(inputBytes, testContent) : "We got something different than 'initial' from getLocal: " + new String(inputBytes);
    }
}
View Full Code Here

Examples of org.apache.ace.repository.ext.impl.CachedRepositoryImpl.revert()

        m_cachedRepository.writeLocal(new ByteArrayInputStream(newTestContent));
        input = m_cachedRepository.getLocal(false);
        byte[] inputBytes = AdminTestUtil.copy(input);
        assert AdminTestUtil.byteArraysEqual(inputBytes, newTestContent) : "We got something different than 'new' from getLocal: " + new String(inputBytes);

        m_cachedRepository.revert();
        input = m_cachedRepository.getLocal(false);
        inputBytes = AdminTestUtil.copy(input);
        assert AdminTestUtil.byteArraysEqual(inputBytes, testContent) : "We got something different than 'initial' from getLocal: " + new String(inputBytes);
    }
}
View Full Code Here

Examples of org.apache.archiva.metadata.repository.RepositorySession.revert()

            repositorySession.save();
        }
        catch ( MetadataRepositoryException e )
        {
            log.warn( "Error occurred persisting metadata for artifact: " + path + "; message: " + e.getMessage(), e );
            repositorySession.revert();
        }
        finally
        {
            repositorySession.close();
        }
View Full Code Here

Examples of org.apache.archiva.metadata.repository.RepositorySession.revert()

        catch ( MetadataRepositoryException e )
        {
            log.warn(
                "Error occurred persisting metadata for artifact:{} (repository:{}); message: {}" ,
                path, repoId, e.getMessage(), e );
            repositorySession.revert();
        }
        catch ( RepositoryStorageRuntimeException e )
        {
            log.warn(
                "Error occurred persisting metadata for artifact:{} (repository:{}); message: {}",
View Full Code Here

Examples of org.apache.archiva.metadata.repository.RepositorySession.revert()

        catch ( RepositoryStorageRuntimeException e )
        {
            log.warn(
                "Error occurred persisting metadata for artifact:{} (repository:{}); message: {}",
                path, repoId, e.getMessage(), e );
            repositorySession.revert();
        }
        finally
        {
            repositorySession.close();
        }
View Full Code Here

Examples of org.apache.directory.server.core.api.DirectoryService.revert()

                        finally
                        {
                            if ( directoryService.getChangeLog().getCurrentRevision() > tag.getRevision() )
                            {
                                LOG.debug( "Reverting to tag: {}", tag );
                                directoryService.revert( tag.getRevision() );
                            }
                            else
                            {
                                LOG.debug( "No changes made, nothing to revert" );
                            }
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.