Examples of pushCleanupDelegate()


Examples of com.cloud.cluster.dao.StackMaidDao.pushCleanupDelegate()

    public void testMaid() {
        Transaction txn = Transaction.open(Transaction.CLOUD_DB);

        StackMaidDao dao = new StackMaidDaoImpl();
        dao.pushCleanupDelegate(1L, 0, "delegate1", "Hello, world");
        dao.pushCleanupDelegate(1L, 1, "delegate2", new Long(100));
        dao.pushCleanupDelegate(1L, 2, "delegate3", null);

        CheckPointVO item = dao.popCleanupDelegate(1L);
        Assert.assertTrue(item.getDelegate().equals("delegate3"));
        Assert.assertTrue(item.getContext() == null);
View Full Code Here

Examples of com.cloud.cluster.dao.StackMaidDao.pushCleanupDelegate()

        Transaction txn = Transaction.open(Transaction.CLOUD_DB);

        StackMaidDao dao = new StackMaidDaoImpl();
        dao.pushCleanupDelegate(1L, 0, "delegate1", "Hello, world");
        dao.pushCleanupDelegate(1L, 1, "delegate2", new Long(100));
        dao.pushCleanupDelegate(1L, 2, "delegate3", null);

        CheckPointVO item = dao.popCleanupDelegate(1L);
        Assert.assertTrue(item.getDelegate().equals("delegate3"));
        Assert.assertTrue(item.getContext() == null);
View Full Code Here

Examples of com.cloud.cluster.dao.StackMaidDao.pushCleanupDelegate()

    public void testMaidClear() {
        Transaction txn = Transaction.open(Transaction.CLOUD_DB);

        StackMaidDao dao = new StackMaidDaoImpl();
        dao.pushCleanupDelegate(1L, 0, "delegate1", "Hello, world");
        dao.pushCleanupDelegate(1L, 1, "delegate2", new Long(100));
        dao.pushCleanupDelegate(1L, 2, "delegate3", null);

        dao.clearStack(1L);
        Assert.assertTrue(dao.popCleanupDelegate(1L) == null);
View Full Code Here

Examples of com.cloud.cluster.dao.StackMaidDao.pushCleanupDelegate()

    public void testMaidClear() {
        Transaction txn = Transaction.open(Transaction.CLOUD_DB);

        StackMaidDao dao = new StackMaidDaoImpl();
        dao.pushCleanupDelegate(1L, 0, "delegate1", "Hello, world");
        dao.pushCleanupDelegate(1L, 1, "delegate2", new Long(100));
        dao.pushCleanupDelegate(1L, 2, "delegate3", null);

        dao.clearStack(1L);
        Assert.assertTrue(dao.popCleanupDelegate(1L) == null);
        txn.close();
View Full Code Here

Examples of com.cloud.cluster.dao.StackMaidDao.pushCleanupDelegate()

        Transaction txn = Transaction.open(Transaction.CLOUD_DB);

        StackMaidDao dao = new StackMaidDaoImpl();
        dao.pushCleanupDelegate(1L, 0, "delegate1", "Hello, world");
        dao.pushCleanupDelegate(1L, 1, "delegate2", new Long(100));
        dao.pushCleanupDelegate(1L, 2, "delegate3", null);

        dao.clearStack(1L);
        Assert.assertTrue(dao.popCleanupDelegate(1L) == null);
        txn.close();
    }
View Full Code Here

Examples of com.cloud.cluster.dao.StackMaidDao.pushCleanupDelegate()

                @Override
                public void run() {
                    Transaction txn = Transaction.open(Transaction.CLOUD_DB);

                    StackMaidDao dao = new StackMaidDaoImpl();
                    dao.pushCleanupDelegate(1L, 0, "delegate-" + threadNum, "Hello, world");
                    dao.pushCleanupDelegate(1L, 1, "delegate-" + threadNum, new Long(100));
                    dao.pushCleanupDelegate(1L, 2, "delegate-" + threadNum, null);

                    txn.close();
                }
View Full Code Here

Examples of com.cloud.cluster.dao.StackMaidDao.pushCleanupDelegate()

                public void run() {
                    Transaction txn = Transaction.open(Transaction.CLOUD_DB);

                    StackMaidDao dao = new StackMaidDaoImpl();
                    dao.pushCleanupDelegate(1L, 0, "delegate-" + threadNum, "Hello, world");
                    dao.pushCleanupDelegate(1L, 1, "delegate-" + threadNum, new Long(100));
                    dao.pushCleanupDelegate(1L, 2, "delegate-" + threadNum, null);

                    txn.close();
                }
            });
View Full Code Here

Examples of com.cloud.cluster.dao.StackMaidDao.pushCleanupDelegate()

                    Transaction txn = Transaction.open(Transaction.CLOUD_DB);

                    StackMaidDao dao = new StackMaidDaoImpl();
                    dao.pushCleanupDelegate(1L, 0, "delegate-" + threadNum, "Hello, world");
                    dao.pushCleanupDelegate(1L, 1, "delegate-" + threadNum, new Long(100));
                    dao.pushCleanupDelegate(1L, 2, "delegate-" + threadNum, null);

                    txn.close();
                }
            });
View Full Code Here

Examples of com.cloud.cluster.dao.StackMaidDaoImpl.pushCleanupDelegate()

 
  public void testMaid() {
    Transaction txn = Transaction.open(Transaction.CLOUD_DB);
   
    StackMaidDao dao = new StackMaidDaoImpl();
    dao.pushCleanupDelegate(1L, 0, "delegate1", "Hello, world");
    dao.pushCleanupDelegate(1L, 1, "delegate2", new Long(100));
    dao.pushCleanupDelegate(1L, 2, "delegate3", null);
   
    CheckPointVO item = dao.popCleanupDelegate(1L);
    Assert.assertTrue(item.getDelegate().equals("delegate3"));
View Full Code Here

Examples of com.cloud.cluster.dao.StackMaidDaoImpl.pushCleanupDelegate()

  public void testMaid() {
    Transaction txn = Transaction.open(Transaction.CLOUD_DB);
   
    StackMaidDao dao = new StackMaidDaoImpl();
    dao.pushCleanupDelegate(1L, 0, "delegate1", "Hello, world");
    dao.pushCleanupDelegate(1L, 1, "delegate2", new Long(100));
    dao.pushCleanupDelegate(1L, 2, "delegate3", null);
   
    CheckPointVO item = dao.popCleanupDelegate(1L);
    Assert.assertTrue(item.getDelegate().equals("delegate3"));
    Assert.assertTrue(item.getContext() == null);
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.