Examples of Pool


Examples of com.xensource.xenapi.Pool

    }

    protected Answer execute(final ClusterSyncCommand cmd) {
        Connection conn = getConnection();
        //check if this is master
        Pool pool;
        try {
            pool = Pool.getByUuid(conn, _host.pool);
            Pool.Record poolr = pool.getRecord(conn);

            Host.Record hostr = poolr.master.getRecord(conn);
            if (!_host.uuid.equals(hostr.uuid)) {
                return new Answer(cmd);
            }
View Full Code Here

Examples of etch.bindings.java.support.Pool

    return TransportFactory.getListener( uri, res, new DefaultServerFactory( implFactory )
    {
      public void newServer( DeliveryService d, ValueFactory vf ) throws Exception
      {
        Pool qp = (Pool) res.get( QUEUED_POOL );
        Pool fp = (Pool) res.get( FREE_POOL );
        implFactory.newMyCuaeServer( d, qp, fp, (MyValueFactoryCuae) vf );
      }

      public ValueFactory newValueFactory()
      {
View Full Code Here

Examples of fr.dyade.aaa.common.Pool

  }

  private static Pool pool = null;
 
  public static void initPool(int LogThresholdOperation) {
    pool = new Pool("Transaction$Operation", LogThresholdOperation);
  }
View Full Code Here

Examples of jnipap.Pool

   * @param id Pool ID to search for
   * @return Pool with ID 'id'
   */
  public static OPool getPool(OConnection conn, int id) throws JnipapException {

    Pool p = Pool.get((Connection)conn, new Integer(id));
    return toSQLObj(p);

  }
View Full Code Here

Examples of jnipap.Pool

   * Test adding and getting a pool
   */
  @Test
  public void addGetPool() {

    Pool pool1, pool2;

    pool1 = new Pool();
    pool1.name = "Test pool #1";
    pool1.description = "A first test pool.";
    pool1.default_type = "assignment";
    pool1.ipv4_default_prefix_length = 28;
    pool1.ipv6_default_prefix_length = 64;

    try {
      pool1.save(this.connection);
      pool2 = Pool.get(this.connection, pool1.id);
    } catch (JnipapException e) {
      fail("Operation resulted in " + e.getClass().getName() + " with message \"" + e.getMessage() + "\"");
      return;
    }
View Full Code Here

Examples of org.activiti.bpmn.model.Pool

    String idPool = "idPool";
    String idProcess = "poolProcess";
   
    assertEquals(1, model.getPools().size());
   
    Pool pool = model.getPool(idPool);
    assertEquals(idPool, pool.getId());
    assertEquals(idProcess, pool.getProcessRef());
    assertTrue(pool.isExecutable());
   
    Process process = model.getProcess(idPool);
    assertEquals(idProcess, process.getId());
    assertTrue(process.isExecutable());
    assertEquals(3, process.getLanes().size());
View Full Code Here

Examples of org.apache.avalon.excalibur.pool.Pool

        //  m_pool will be null.  This can be difficult to avoid as there
        //  is no way to query whether or not all workers have actually been
        //  released.  Underlying pool implementations should probably block
        //  on their dispose methods until all outstanding objects have been
        //  returned.
        Pool pool = m_pool;  // Be thread safe
        if ( pool != null )
        {
            pool.put( (SimpleWorkerThread)worker );
        }
    }
View Full Code Here

Examples of org.apache.etch.bindings.java.support.Pool

      public void newServer( TransportMessage t, String uri, Resources r ) throws Exception
      {
        ValueFactory vf = (ValueFactory) r.get( Transport.VALUE_FACTORY );
        MailboxManager x = new PlainMailboxManager( t, uri, r );
        DeliveryService d = new DefaultDeliveryService( x, uri, r );
        Pool qp = (Pool) r.get( QUEUED_POOL );
        Pool fp = (Pool) r.get( FREE_POOL );
        implFactory.newMyCuaeServer( d, qp, fp, (MyValueFactoryCuae) vf );
        d.transportControl( START, null );
      }

      public ValueFactory newValueFactory( String uri )
View Full Code Here

Examples of org.apache.hadoop.mapred.Pool

   * Tests that no Pool object can be created with a null string.
   */
  @Test
  public void testPoolNameNotNull() {
    try {
      Pool pool = new Pool(null, null);
      fail("Pool object got created with a null name somehow.");
    } catch (IllegalArgumentException e) {
      // Pass
    } catch (Exception e) {
      fail("Pool object got created with a null name and failed only later.");
View Full Code Here

Examples of org.apache.openejb.util.Pool

            public Object create() {
                return "";
            }
        });
        Pool pool = builder.build();
        pool.start();
        pool.add("");
        pool.add("");
        pool.add("");
        pool.add("");
        pool.add("");
        pool.add("");

        Map<String, String> map = new HashMap<String, String>();
        map.put("EJBModule", "FooModule");
        map.put("J2EEApplication", "FooApp");
        map.put("J2EEServer", "FooServer");
        map.put("j2eeType", "StatelessSessionBean");
        map.put("name", "Pool");

        ObjectName objectName = new ObjectName("something", new Hashtable(map));
        server.registerMBean(new ManagedMBean(pool), objectName);

//        while ("".equals("")) {
//            object.tick(System.currentTimeMillis() % 1000);
//            Thread.sleep(287);
//        }

//        server.createMBean()
        while (true) {
            List<Pool.Entry> entries = new ArrayList<Pool.Entry>();

            try {
                while (true) {
                    entries.add(pool.pop(1, TimeUnit.SECONDS));
                    snooze();
                }
            } catch (TimeoutException e) {
            }

            for (Pool.Entry entry : entries) {
                pool.push(entry);
                snooze();
            }
        }
//        new CountDownLatch(1).await();
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.