Examples of prepare()


Examples of com.alibaba.jstorm.schedule.default_assign.DefaultTopologyScheduler.prepare()

  public void init(NimbusData nimbusData) {
    this.nimbusData = nimbusData;
    this.schedulers = new HashMap<String, IToplogyScheduler>();

    IToplogyScheduler defaultScheduler = new DefaultTopologyScheduler();
    defaultScheduler.prepare(nimbusData.getConf());

    schedulers.put(DEFAULT_SCHEDULER_NAME, defaultScheduler);

    thread = new Thread(this);
    thread.setName("TopologyAssign");
View Full Code Here

Examples of com.almworks.sqlite4java.SQLiteConnection.prepare()

      if(timeoutThread != null) {
        timeoutThread.startQuery(conn, query);
      }
      // We don't want to cache the statements here so we use "false"
      // Don't use the method without boolean because it will use cached = true!!!
      st = conn.prepare(query, false);
      if(timeoutThread != null) {
        timeoutThread.endQuery(conn);
      }
      List<Map<String, Object>> list = new ArrayList<Map<String, Object>>();
      if(st.step()) {
View Full Code Here

Examples of com.arjuna.ats.internal.jta.transaction.arjunacore.jca.XATerminatorImple.prepare()

        final Xid xid = new XidImple(new Uid());
        final TransactionImple tm = TxImporter.importTransaction(xid);
        final TestSynchronization sync = new TestSynchronization();
        tm.registerSynchronization(sync);
        final XATerminator xaTerminator = new XATerminatorImple();
        assertEquals(XAResource.XA_RDONLY, xaTerminator.prepare(xid));
        // note that unlike the above test we don't call commit - the XA_RDONLY means its finished, per XA semantics.
        assertTrue(sync.isBeforeCompletionDone());
        assertTrue(sync.isAfterCompletionDone());
        assertEquals(javax.transaction.Status.STATUS_COMMITTED, tm.getStatus());
    }
View Full Code Here

Examples of com.arjuna.webservices.wsat.ParticipantInboundEvents.prepare()

        if (participant != null)
        {
            try
            {
                participant.prepare(prepare, addressingContext, arjunaContext) ;
            }
            catch (final Throwable th)
            {
                if (WSTLogger.arjLoggerI18N.isWarnEnabled())
                {
View Full Code Here

Examples of com.arjuna.webservices11.wsat.ParticipantInboundEvents.prepare()

        if (participant != null)
        {
            try
            {
                participant.prepare(prepare, addressingProperties, arjunaContext) ;
            }
            catch (final Throwable th)
            {
                if (WSTLogger.arjLoggerI18N.isWarnEnabled())
                {
View Full Code Here

Examples of com.atomikos.icatch.Participant.prepare()

    {
        Participant part = getParticipant ();
        int ret = 0;
        Boolean result = null;
        try {
            ret = part.prepare ();
            if ( ret == Participant.READ_ONLY )
                result = null;
            else
                result = new Boolean ( true );
        } catch ( HeurHazardException heurh ) {
View Full Code Here

Examples of com.badlogic.gdx.graphics.TextureData.prepare()

   
    @Override
    public boolean isTransparent(int x, int y){
        TextureData data = image.getTexture().getTextureData();
        if (!data.isPrepared()){
            data.prepare();
        }
        int pixel = data.consumePixmap().getPixel(x, y);
        pixel &= 0x000000ff;
        return pixel == 0;
    }
View Full Code Here

Examples of com.cloud.template.TemplateAdapter.prepare()

        userId = (userId == null ? User.UID_SYSTEM : userId);
        AccountVO account = _accountDao.findById(vm.getAccountId());
     
        try {
            TemplateProfile tmplProfile;
            tmplProfile = adapter.prepare(false, userId, cmd.getTemplateName(), cmd.getDisplayText(), cmd.getBits(), false, false, cmd.getUrl(), cmd.isPublic(), cmd.isFeatured(), false,
                    "BareMetal", cmd.getOsTypeId(), pxe.getDataCenterId(), HypervisorType.BareMetal, account.getAccountName(), account.getDomainId(), "0", true, cmd.getDetails());
            if (!_pxeMgr.prepareCreateTemplate(_pxeMgr.getPxeServerType(pxe), pxe.getId(), vm, cmd.getUrl())) {
                throw new Exception("Prepare PXE boot file for host  " + hostId + " failed");
            }
View Full Code Here

Examples of com.esri.gpt.catalog.lucene.stats.StatsRequest.prepare()

      adapter = new LuceneIndexAdapter(context);  
      searcher = adapter.newSearcher();
      IndexReader reader = searcher.getIndexReader();
      StatsRequest statsRequest = new StatsRequest(context);
      statsRequest.setResponseWriter(writer);
      statsRequest.prepare(reader);
      statsRequest.setSortBy(sortBy);
      statsRequest.setResponseFormat(responseFormat);
     
      if (field.length() > 0) {
        int maxRecs = Val.chkInt(this.getParameterValue(request,"max"),-2);
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.teststeps.WsdlTestStep.prepare()

      if( testStep.isDisabled() )
        continue;

      try
      {
        testStep.prepare( this, runContext );
      }
      catch( Exception e )
      {
        setStatus( Status.FAILED );
        SoapUI.logError( e );
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.