Examples of ResourceManager


Examples of org.glassfish.resources.admin.cli.ResourceManager

            if (desc != null) {
                attrList.put("description", desc);
            }

            try {
                final ResourceManager rm = resourceFactory.getResourceManager(resource);
                if(embedded && isEmbeddedResource(resource, resourcesToRegister)){
                    Resource configBeanResource =
                            rm.createConfigBean(resources, attrList, props, false);
                    resources.getResources().add(configBeanResource);
                    resourceConfigs.add(configBeanResource);
                }else if(!embedded && !isEmbeddedResource(resource, resourcesToRegister)){
                    com.sun.enterprise.config.serverbeans.Resource configBeanResource =
                            rm.createConfigBean(resources, attrList, props, true);
                    resources.getResources().add(configBeanResource);
                    resourceConfigs.add(configBeanResource);
                }
            } catch (Exception e) {
                throw new ResourceException(e);
View Full Code Here

Examples of org.hornetq.core.transaction.ResourceManager

      return server.getHornetQServerControl().listSessions(connectionID);
   }

   public String listPreparedTransactionDetailsAsJSON() throws Exception
   {
      ResourceManager resourceManager = server.getResourceManager();
      Map<Xid, Long> xids = resourceManager.getPreparedTransactionsWithCreationTime();
      if (xids == null || xids.size() == 0)
      {
         return "";
      }

      ArrayList<Entry<Xid, Long>> xidsSortedByCreationTime = new ArrayList<Map.Entry<Xid, Long>>(xids.entrySet());
      Collections.sort(xidsSortedByCreationTime, new Comparator<Entry<Xid, Long>>()
      {
         public int compare(final Entry<Xid, Long> entry1, final Entry<Xid, Long> entry2)
         {
            // sort by creation time, oldest first
            return (int)(entry1.getValue() - entry2.getValue());
         }
      });

      JSONArray txDetailListJson = new JSONArray();
      for (Map.Entry<Xid, Long> entry : xidsSortedByCreationTime)
      {
         Xid xid = entry.getKey();
         Transaction tx = resourceManager.getTransaction(xid);
         if (tx == null)
         {
            continue;
         }
         TransactionDetail detail = new JMSTransactionDetail(xid, tx, entry.getValue());
View Full Code Here

Examples of org.jboss.jms.tx.ResourceManager

        
         ClientConnectionDelegate del = (ClientConnectionDelegate)jbConn.getDelegate();
        
         ConnectionState state = (ConnectionState)del.getState();
        
         ResourceManager rm = state.getResourceManager();
        
         Session session = conn.createSession(true, Session.SESSION_TRANSACTED);
        
        
         for (int i = 0; i < 100; i++)
         {
            assertEquals(1, rm.size());
           
            session.commit();
           
            assertEquals(1, rm.size());
         }                 
        
         assertEquals(1, rm.size());
        
         conn.close();
        
         conn = null;
        
         assertEquals(0, rm.size());

      }
      finally
      {
         if (conn != null)
View Full Code Here

Examples of org.jboss.on.embedded.manager.ResourceManager

        pcConfig.setInsideAgent(false);

        PC.setConfiguration(pcConfig);
        PC.initialize();

        ResourceManager resourceManager = ResourceManagerFactory.resourceManager();
        resourceManager.discoverResources();
        LOG.info("Successfully initialized Plugin Container");
    }
View Full Code Here

Examples of org.jfree.resourceloader.ResourceManager

    this.imageProducer = new ImageProducer(inputRepository, outputRepository, imageService);

    try
    {
      final ResourceManager realResourceManager = getResourceManager();
      styleMapper = StyleMapper.loadInstance(realResourceManager);
    }
    catch (ResourceException e)
    {
      throw new ReportProcessingException("Failed to load style-mapper", e);
View Full Code Here

Examples of org.jnode.system.resource.ResourceManager

        log.info("Using PCI IDE " + (nativeMode ? "Native" : "Compatibility") + " mode [irq=" + irq + "]");

        // Now claim the resources
        IOResource cmdBlock = null;
        IOResource ctrlBlock = null;
        final ResourceManager rm;
        try {
            rm = InitialNaming.lookup(ResourceManager.NAME);
            cmdBlock = claimPorts(rm, device, cmdBlockStart, cmdBlockSize);
            ctrlBlock = claimPorts(rm, device, ctrlBlockStart, ctrlBlockSize);
        } catch (NameNotFoundException ex) {
View Full Code Here

Examples of org.noos.xing.mydoggy.plaf.ui.ResourceManager

    protected void customizeToolWindowManager(MyDoggyToolWindowManager myDoggyToolWindowManager) {
        ToolWindowManagerDescriptor descriptor = myDoggyToolWindowManager.getToolWindowManagerDescriptor();
        descriptor.setShowUnavailableTools(true);

        ResourceManager resourceManager = myDoggyToolWindowManager.getResourceManager();

        // Add customization here. See the page http://mydoggy.sourceforge.net/mydoggy-plaf/resourceManagerUsing.html
        resourceManager.putProperty("dialog.owner.enabled", "false");
/*
        resourceManager.putProperty("dialog.owner.enabled", "false");
        resourceManager.putProperty("ContentManagerDropTarget.enabled", "true");
*/
        resourceManager.putProperty("ContentManagerUI.ContentManagerUiListener.import", "true");
/*
        resourceManager.putProperty("drag.icon.transparency.enabled", "false");
        resourceManager.putProperty("drag.icon.useDefault", "true");
        resourceManager.putBoolean("drag.toolwindow.asTab", true);
*/
 
View Full Code Here

Examples of org.objectweb.celtix.resource.ResourceManager

    private ResourceInjector injector;
       
    public void setUp() {

        ResourceManager resMgr = EasyMock.createMock(ResourceManager.class);
       
        resMgr.resolveResource("resource1", String.class);
        EasyMock.expectLastCall().andReturn(RESOURCE_ONE);
        resMgr.resolveResource("resource2", String.class);
        EasyMock.expectLastCall().andReturn(RESOURCE_TWO);
        EasyMock.replay(resMgr);
       
        injector = new ResourceInjector(resMgr);
    }
View Full Code Here

Examples of org.openengsb.loom.csharp.comon.wsdltodll.test.resources.ResourceManager

    private boolean isWindows;

    @Before
    public void init() throws IOException {
        mockedlogger = Mockito.mock(Log.class);
        resourcesManager = new ResourceManager();
        isWindows = true;
        exampleFile1 = resourcesManager.getWindowsExampleDoamin0();
        exampleFile2 = resourcesManager.getWindowsExampleDoamin1();
        fileComparer =
            new FileComparer(exampleFile1, exampleFile2, mockedlogger,
View Full Code Here

Examples of org.openquark.cal.services.ResourceManager

                ModuleName[] workspaceModuleNames = getWorkspace().getModuleNames();
               
                // loop through each module in the workspace
                for (final ModuleName moduleName : workspaceModuleNames) {
                   
                    ResourceManager metadataResourceManager = getWorkspace().getResourceManager(moduleName, WorkspaceResource.METADATA_RESOURCE_TYPE);
                   
                    MetadataStore metadataStore = (MetadataStore)metadataResourceManager.getResourceStore();
                    if (metadataStore.isWriteable()) {
                        for (Iterator<WorkspaceResource> it = metadataStore.getResourceIterator(moduleName); it.hasNext(); ) {
                            WorkspaceResource metadataResource = it.next();
                            ResourceIdentifier identifier = metadataResource.getIdentifier();
                            CALFeatureName featureName = (CALFeatureName)identifier.getFeatureName();
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.