Examples of commit()


Examples of com.sun.grid.jgdi.EventClient.commit()

                evc.subscribe(EventTypeEnum.CheckpointAdd);
                evc.subscribe(EventTypeEnum.CheckpointMod);
                evc.subscribe(EventTypeEnum.CheckpointDel);

                evc.commit();

                evc.addEventListener(new EventListener() {

                    public void eventOccured(Event evt) {
                        System.out.println("got event " + evt);

Examples of com.sun.grizzly.http.SocketChannelOutputBuffer.commit()

             */
            outputBuffer.getOutputStream().write(
                LoadBalancerProxyConstants.SERVICE_UNAVAILABLE_BYTES);
            outputBuffer.endRequest();
            outputBuffer.flush();
            outputBuffer.commit();
        } catch (IOException ex) {
            _logger.log(Level.SEVERE, "clb.proxy.http.handler_error_response");                 
        }       
    }
   

Examples of com.sun.media.util.Registry.commit()

            message("Setting cache directory to " + tempDir);
            Registry r = new Registry();
            try {
                r.set("secure.cacheDir", tempDir);
                r.commit();

                message("Updated registry");
            }
            catch (Exception e) {
                message("Couldn't update registry!");

Examples of com.sun.security.auth.module.KeyStoreLoginModule.commit()

        options.put(O_KPASS_URL, KPASS_URL);
        m.initialize(s, null, null, options);

        // login first
        m.login();
        m.commit();
        System.out.println("test " + testnum++ + " passed");

        // test regular logout
        m.logout();
        if (s.getPrincipals().size() != 0) {

Examples of com.sun.security.auth.module.Krb5LoginModule.commit()

        Krb5LoginModule login = new Krb5LoginModule();
        login.initialize(subject, null, state, option);
       
        if(login.login()){
            login.commit();
        }
    }
   
    private static void help(){
        System.out.println("Add arguments in the order of:");

Examples of com.sun.sgs.impl.service.transaction.TransactionHandle.commit()

                    // cause of a failure, so we'll check for that first,
                    // re-throwing the root cause in that case
                    if (transaction.isAborted()) {
                        throw transaction.getAbortCause();
                    }
                    handle.commit();

                    // the task completed successfully, so we're done
                    profileCollectorHandle.finishTask(task.getTryCount());
                    task.setDone(null);
                    return true;

Examples of com.sun.sgs.service.TransactionParticipant.commit()

      if (detailMap != null) {
    detail = detailMap.get(participant.getTypeName());
    startTime = System.currentTimeMillis();
      }
      try {
    participant.commit(this);
    if (detail != null) {
        detail.setCommitted(System.currentTimeMillis() -
          startTime);
        collectorHandle.addParticipant(detail);
    }

Examples of com.sun.sgs.service.store.db.DbTransaction.commit()

      useAllocationBlockPlaceholders =
    env.useAllocationBlockPlaceholders();
      freeObjectIds = new FreeObjectIds(useAllocationBlockPlaceholders);
      removeUnusedAllocationPlaceholders(dbTxn);
      done = true;
      dbTxn.commit();
  } catch (RuntimeException e) {
      throw handleException(
    null, Level.SEVERE, e, "DataStore initialization");
  } catch (Error e) {
      logger.logThrow(

Examples of com.sun.sgs.test.util.DummyTransaction.commit()

      };
  DummyTransaction txn = new DummyTransaction(
      DummyTransaction.UsePrepareAndCommit.NO);
  txnProxy.setCurrentTransaction(txn);
  contextFactory.joinTransaction();
  txn.commit();
  txn = new DummyTransaction();
  txnProxy.setCurrentTransaction(txn);
  contextFactory.joinTransaction();
  txn.commit();
    }

Examples of com.sun.star.embed.XOLESimpleStorage.commit()

                    m_aTestHelper.Message ( "Substream " + i + " inserted." );
                }
            }
           
            //commit the storage and close it
            xOLESimpleStorage.commit ();
            m_aTestHelper.Message ( "Storage commited." );
            xOLESimpleStorage.dispose ();
            for ( int i = 0; i < pStreamCnt; ++i )
            {
                xTempStream[i].setRemoveFile ( true );
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.