Examples of Manager


Examples of org.apache.catalina.Manager

   private boolean isManagerStopped(Session session)
   {
      boolean stopped = false;
     
      Manager manager = session.getManager();
     
      if (manager instanceof ManagerBase)
      {
         ObjectName mgrName = ((ManagerBase)manager).getObjectName();
         stopped = (!activeManagers.contains(mgrName));
View Full Code Here

Examples of org.apache.catalina.Manager

      }

      // If we made a change, track the manager and notify any cluster
      if (added)
      {
         Manager manager = session.getManager();
        
         // Prefer to cache an ObjectName to avoid risk of leaking a manager,
         // so if the manager exposes one, use it
         Object mgrKey = null;
         if (manager instanceof ManagerBase)
View Full Code Here

Examples of org.apache.catalina.Manager

            }

            // Context/Manager
            if (contextMetaData.getManager() != null)
            {
               Manager manager = initManager(contextMetaData.getManager());
              
               if (contextMetaData.getManager().getStore() != null)
               {
                  org.apache.catalina.Store store = (org.apache.catalina.Store)TomcatService.getInstance
                     (contextMetaData.getManager().getStore(), null);
View Full Code Here

Examples of org.apache.catalina.Manager

   {
      JBossWebMetaData webMetaData = metaDataLocal.get();
     
      String defaultManagerClass = webMetaData.getDistributable() == null
            ? StandardManager.class.getName() : JBossCacheManager.class.getName();     
      Manager manager = (Manager)TomcatService.getInstance(managerMetaData, defaultManagerClass);
     
      if (manager instanceof AbstractJBossManager)
      {
         // TODO next 10+ lines just to create a 'name' that the AbstractJBossManager
         // impls don't even use
View Full Code Here

Examples of org.apache.catalina.Manager

   }
  
   private Session createAndUseSession(JBossCacheManager<?> manager, String id, boolean canCreate, boolean access) throws Exception
   {
      //    Shift to Manager interface when we simulate Tomcat
      Manager mgr = manager;
      Session sess = mgr.findSession(id);
      assertNull("session does not exist", sess);
      try
      {
         sess = mgr.createSession(id);
         if (!canCreate)
            fail("Could not create session" + id);
      }
      catch (IllegalStateException ise)
      {
View Full Code Here

Examples of org.apache.catalina.Manager

   }
  
   private void useSession(JBossCacheManager<?> manager, String id) throws Exception
   {
      //    Shift to Manager interface when we simulate Tomcat
      Manager mgr = manager;
      Session sess = mgr.findSession(id);
      assertNotNull("session exists", sess);
     
      sess.access();
      sess.getSession().setAttribute("test", "test");
     
View Full Code Here

Examples of org.apache.catalina.Manager

   private Session createAndUseSession(DataSourcePersistentManager dspm, String id,
                           boolean canCreate, boolean access)
         throws Exception
   {
      //    Shift to Manager interface when we simulate Tomcat
      Manager mgr = dspm;
      Session sess = mgr.findSession(id);
      assertNull("session does not exist", sess);
      try
      {
         sess = mgr.createSession(id);
         if (!canCreate)
            fail("Could not create session" + id);
      }
      catch (IllegalStateException ise)
      {
View Full Code Here

Examples of org.apache.catalina.Manager

  
   private Session useSession(DataSourcePersistentManager dspm, String id)
         throws Exception
   {
      //    Shift to Manager interface when we simulate Tomcat
      Manager mgr = dspm;
      Session sess = mgr.findSession(id);
      assertNotNull("session exists", sess);
     
      sess.access();
      sess.getSession().setAttribute("test", "test");
     
View Full Code Here

Examples of org.apache.catalina.Manager

   }
  
   private Session createAndUseSession(JBossCacheManager<?> manager, String id, boolean canCreate, boolean access) throws Exception
   {
      //    Shift to Manager interface when we simulate Tomcat
      Manager mgr = manager;
      Session sess = mgr.findSession(id);
      assertNull("session does not exist", sess);
      try
      {
         sess = mgr.createSession(id);
         if (!canCreate)
            fail("Could not create session" + id);
      }
      catch (IllegalStateException ise)
      {
View Full Code Here

Examples of org.apache.catalina.Manager

               SecurityAssociationActions.pushRunAsIdentity(runAsIdentity);
            }
            userPrincipal.set(caller);

            // If there is a session, get the tomcat session for the principal
            Manager manager = container.getManager();
            if (manager != null && hsession != null)
            {
               try
               {
                  session = manager.findSession(hsession.getId());
               }
               catch (IOException ignore)
               {
               }
            }
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.