Examples of Manager


Examples of org.codehaus.wadi.core.manager.Manager

    public void addSessionManager(Object deploymentId, SessionManager sessionManager) {
     
       
        WADISessionManager wadiSessionManager = (WADISessionManager) sessionManager;
       
        Manager manager = wadiSessionManager.getManager();

        deploymentIdToManager.put(deploymentId, manager);
 

        ServiceSpace serviceSpace = wadiSessionManager.getServiceSpace();
View Full Code Here

Examples of org.exoplatform.container.jmx.support.Manager

      assertNotNull(mbm);

      ObjectInstance instance = server.getObjectInstance(new ObjectName("exo:object=ManagedByManager"));

      Manager manager = (Manager)server.getAttribute(instance.getObjectName(), "Reference");

      assertNotNull(manager);

   }
View Full Code Here

Examples of org.jboss.arquillian.core.spi.Manager

   }

   @Test
   public void shouldHandleLifeCycleEvents() throws Exception
   {
      Manager manager = getManager();
      EventTestRunnerAdaptor adaptor = new EventTestRunnerAdaptor(manager);
     
      Class<?> testClass = getClass();
      Method testMethod = testClass.getMethod("shouldHandleLifeCycleEvents");
      Object testInstance = this;
View Full Code Here

Examples of org.jboss.arquillian.impl.core.spi.Manager

   private static List<String> callOrder = new ArrayList<String>();

   @Test
   public void shouldExecuteProducersOnSameEventBeforeConsumers() throws Exception
   {
      Manager manager = ManagerBuilder.from()
                  .extensions(ConsumerOne.class, ProducerOne.class, ProducerTwo.class).create();
     
      manager.fire("test");
     
      Assert.assertEquals("ProducerOne", callOrder.get(0));
      Assert.assertEquals("ProducerTwo", callOrder.get(1));
      Assert.assertEquals("ConsumerOne", callOrder.get(2));
   }
View Full Code Here

Examples of org.jboss.jmx.adaptor.snmp.config.manager.Manager

      log.debug("Found " + managerList.size() + " monitoring managers");       
       
      for (Iterator i = managerList.iterator(); i.hasNext(); )
      {
         // Read the monitoring manager's particulars
         Manager m = (Manager)i.next();

         try
         {
            // Create a record of the manager's interest
            ManagerRecord mr = new ManagerRecord(
                    InetAddress.getByName(m.getAddress()),
                    m.getPort(),
                    toInetAddressWithDefaultBinding(m.getLocalAddress()),
                    m.getLocalPort(),
                    m.getVersion()
                );
               
            // Add the record to the list of monitoring managers. If
            // successfull open the session to the manager as well.
            if (this.managers.add(mr) == false)
View Full Code Here

Examples of org.jboss.seam.core.Manager

    // intended to be used in a footer.
    // If this method starts a conversation
    // it can't be added to the foot of applications that don't
    // expect conversations to already be in progress
    public String getCurrentConversation() {
        Manager m = Manager.instance();
        return m.getCurrentConversationId();
    }
View Full Code Here

Examples of org.jboss.seam.core.Manager

        Manager m = Manager.instance();
        return m.getCurrentConversationId();
    }

    public String getLongRunning() {
        Manager m = Manager.instance();
        return Boolean.toString( m.isLongRunningConversation() );
    }
View Full Code Here

Examples of org.jboss.test.cmp2.fkmapping.ejb.Manager

      throws Exception
   {
      Long long1 = new Long(1);
      String avoka = "Avoka";
      String irene = "Irene";
      Manager manager = ManagerUtil.getHome().create();
      manager.createParent(long1, irene);

      try
      {
         manager.createChild(long1, avoka);
         fail("Should have filed as the foreign key field can't be null.");
      }
      catch(Exception expected){}

      manager.createChild(long1, avoka, long1, irene);
      manager.createChild(new Long(2), "Ataka", long1, irene);

      manager.assertChildHasMother(long1, long1, irene);
      manager.assertChildHasMother(new Long(2), long1, irene);
   }
View Full Code Here

Examples of org.nimbustools.api.services.rm.Manager

    // -----------------------------------------------------------------------------------------

    @Test
    @DirtiesContext
    public void simpleBackfillTest() throws Exception {
        Manager rm = this.locator.getManager();
        Caller superuser = this.populator().getSuperuserCaller();

        logger.info(rm.getVMMReport());

        logger.debug("Submitting backfill requests..");

        AsyncCreateRequest backfill1 = this.populator().getBackfillRequest("backfill1", 3);
        RequestInfo backfill1Result = rm.addBackfillRequest(backfill1, superuser);
        AsyncCreateRequest backfill2 = this.populator().getBackfillRequest("backfill2", 5);
        RequestInfo backfill2Result = rm.addBackfillRequest(backfill2, superuser);

        logger.debug("Waiting 2 seconds for resources to be allocated.");
        Thread.sleep(2000);

        // Check backfill request state
        RequestInfo[] backfillRequestsByCaller = rm.getBackfillRequestsByCaller(superuser);
        assertEquals(2, backfillRequestsByCaller.length);

        logger.info(rm.getVMMReport());
    }
View Full Code Here

Examples of org.objectweb.jorm.metainfo.api.Manager

    public void process() throws SpeedoException {
        if (scp.getXmldescriptor().isEmpty()) {
          return;
        }
        if (logger.isLoggable(BasicLevel.DEBUG)) {
            Manager m = jormcompiler.getMIManager();
            for (Iterator it = m.getClasses().iterator(); it.hasNext();) {
                logger.log(BasicLevel.DEBUG, "Class : "
                        + ((Class) it.next()).getFQName());
            }
            for (Iterator it = m.getCompositeNames().iterator(); it.hasNext();) {
                logger.log(BasicLevel.DEBUG, "CompositeName : "
                        + ((CompositeName) it.next()).getFQName());
            }
        }
      try {
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.