Examples of begin()


Examples of com.orientechnologies.orient.core.storage.impl.local.paginated.wal.ODiskWriteAheadLog.begin()

  }

  private void restoreDataFromWAL() throws IOException {
    ODiskWriteAheadLog log = new ODiskWriteAheadLog(4, -1, 10 * 1024L * OWALPage.PAGE_SIZE, 100L * 1024 * 1024 * 1024,
        actualStorage);
    OLogSequenceNumber lsn = log.begin();

    List<OWALRecord> atomicUnit = new ArrayList<OWALRecord>();

    boolean atomicChangeIsProcessed = false;
    while (lsn != null) {
View Full Code Here

Examples of com.orientechnologies.orient.object.db.OObjectDatabaseTx.begin()

  public void iteratorShouldTerminate() {
    OObjectDatabaseTx db = OObjectDatabasePool.global().acquire(url, "admin", "admin");
    try {
      db.getEntityManager().registerEntityClass(Profile.class);

      db.begin();
      Profile person = new Profile();
      person.setNick("Guy1");
      person.setName("Guy");
      person.setSurname("Ritchie");
      person = db.save(person);
View Full Code Here

Examples of com.persistit.Transaction.begin()

        Preconditions.checkNotNull(sessionId);
        Transaction tx = db.getTransaction();
        assert sessionId == tx.getSessionId();

        try {
            tx.begin();
        } catch (PersistitException ex) {
            throw new PermanentStorageException(ex);
        }
    }
View Full Code Here

Examples of com.ponysdk.core.stm.Txn.begin()

        if (UIContext.get() == null) {
            begin();
            try {
                if (listenerCollection.isEmpty()) return;
                final Txn txn = Txn.get();
                txn.begin(txnContext);
                try {
                    for (final Object data : collection) {
                        for (final DataListener listener : listenerCollection) {
                            listener.onData(data);
                        }
View Full Code Here

Examples of com.sun.enterprise.ee.synchronization.tx.TransactionManager.begin()

                assert(reqs.length != 0);
                assert(_dpr != null);

                // begin a transaction for the synchronization
                Transaction tx = txMgr.begin(reqs.length);

                // requests from the meta data
                RequestMediator[] mReqs=new RequestMediator[reqs.length];

                // total synchronization request threads
View Full Code Here

Examples of com.sun.jts.jta.TransactionManagerImpl.begin()

        return result;
    }

    public void beginJTS(int timeout) throws NotSupportedException, SystemException {
        TransactionManagerImpl tm = (TransactionManagerImpl)tmLocal.get();
        tm.begin(timeout);
        ((JavaEETransactionManagerSimplified)javaEETM).monitorTxBegin(tm.getTransaction());
    }

    public boolean supportsXAResource() {
        return true;
View Full Code Here

Examples of com.sun.speech.freetts.audio.AudioPlayer.begin()

            totalSize = utterance.getInt("mbrolaAudioLength");
        } catch (NullPointerException npe) {
            totalSize = 0;
        }

        audioPlayer.begin(totalSize);

        for (Iterator it = audioData.iterator(); it.hasNext();) {
            byte[] bytes = (byte[]) it.next();
            if (!audioPlayer.write(bytes)) {
                throw new ProcessException
View Full Code Here

Examples of com.sun.tools.javadoc.Start.begin()

    public Boolean call() {
        if (!used.getAndSet(true)) {
            initContext();
            Start jdoc = new Start(context);
            try {
                return jdoc.begin(docletClass, options, fileObjects);
            } catch (ClientCodeException e) {
                throw new RuntimeException(e.getCause());
            }
        } else {
            throw new IllegalStateException("multiple calls to method 'call'");
View Full Code Here

Examples of com.taobao.metamorphosis.client.transaction.TransactionContext.begin()

    protected void beforeSendMessageFirstTime(final String serverUrl) throws MetaClientException, XAException {
        final TransactionContext tx = this.getTx();
        // ������������Ҫ����serverUrl��begin
        if (tx.getTransactionId() == null) {
            tx.setServerUrl(serverUrl);
            tx.begin();
        }
    }


    /**
 
View Full Code Here

Examples of com.totsp.gwittir.client.util.HistoryTokenizer.begin()

    } else {
      states.set(currentState, event);
    }
    if(appendHistory){
      HistoryTokenizer tok = new HistoryTokenizer();
      tok.begin();
      tok.setToken("s", Integer.toString(currentState));
      tok.commit();
    }
  }
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.