/** * Nothing to do here. */ @Override public void create( DeploymentInfo di ) throws DeploymentException { if( logger.isDebugEnabled() ) logger.debug( "Method create called for " + di.url ); super.create( di ); }
public void destroy(DeploymentInfo di) throws DeploymentException { // FIXME: If the put() is obsolete above, this is obsolete, too deployments.remove(di.url); super.destroy(di); }
public void start(DeploymentInfo di) throws DeploymentException { PortalDeploymentInfoContext pdiCtx = (PortalDeploymentInfoContext)infoContexts.get(di.url); pdiCtx.start(); // super.start(di); }
public void stop(DeploymentInfo di) throws DeploymentException { PortalDeploymentInfoContext pdiCtx = (PortalDeploymentInfoContext)infoContexts.get(di.url); pdiCtx.stop(); // super.stop(di); }
/** * Method for processing nested deployments. */ @Override protected void processNestedDeployments( DeploymentInfo di ) throws DeploymentException { if( logger.isDebugEnabled() ) logger.debug( "Method processNestedDeployments called for " + di.url ); // We'd like some to pass (mar with DUs inside.. we'll check it at accept). super.processNestedDeployments( di ); }
/** * This method stops all SLEE deployments */ protected void stopService() throws Exception { for( Iterator modules = deployments.values().iterator(); modules.hasNext(); ) { DeploymentInfo di = (DeploymentInfo) modules.next(); stop(di); } // avoid concurrent modification exception for( Iterator modules = new ArrayList(deployments.values()).iterator(); modules.hasNext(); ) { DeploymentInfo di = (DeploymentInfo) modules.next(); destroy(di); } deployments.clear(); // deregister with MainDeployer super.stopService(); serviceController = null; }
return super.isDeployable(name, url) || isServiceXML;
/** * Get a reference to the ServiceController */ protected void startService() throws Exception { serviceController = (ServiceControllerMBean) MBeanProxyExt.create(ServiceControllerMBean.class, ServiceControllerMBean.OBJECT_NAME, server); sleeManagementMBean = (SleeManagementMBeanImplMBean) MBeanProxyExt.create(SleeManagementMBeanImplMBean.class, sleeManagementMBeanName, server); sleeDeploymentMBean = (DeploymentMBean) MBeanProxyExt.create(DeploymentMBean.class, sleeManagementMBean.getDeploymentMBean(), server); resourceManagementMBean = (ResourceManagementMBean) MBeanProxyExt.create(ResourceManagementMBean.class, sleeManagementMBean.getResourceManagementMBean(), server); serviceManagementMBean = (ServiceManagementMBean) MBeanProxyExt.create(ServiceManagementMBean.class, sleeManagementMBean.getServiceManagementMBean(), server); // register with MainDeployer super.startService(); }
public void stop(DeploymentInfo di) throws DeploymentException { log.info( "Undeploying: " + di.url ); try { DeployableUnitID did = (DeployableUnitID)di.metaData; // if the start failed did would be null if (did == null) return; DeployableUnitDescriptor dud = sleeDeploymentMBean.getDescriptor(did); deactivateComponents( dud.getComponents() ); sleeDeploymentMBean.uninstall(did); } catch (Exception e) { throw new DeploymentException( "problem stopping SLEE module: " + di.url, e ); } super.stop(di); }
super.init( di );
/** * This is where the fun begins. Time to deploy! */ @Override public void start( DeploymentInfo di ) throws DeploymentException { if( logger.isDebugEnabled() ) logger.debug( "Method start called for " + di.url ); try { // Get the deployable unit object DeployableUnit du = deployableUnits.get( di.shortName ); // If it exists, install it. if( du != null) dm.installDeployableUnit( du ); } catch (Exception e) { logger.error( "", e ); } super.start( di ); }
public void create(DeploymentInfo di) throws DeploymentException { PortalDeploymentInfoContext pdiCtx = (PortalDeploymentInfoContext)infoContexts.get(di.url); pdiCtx.create(); // super.create(di); }
public void destroy(DeploymentInfo di) throws DeploymentException { PortalDeploymentInfoContext pdiCtx = (PortalDeploymentInfoContext)infoContexts.get(di.url); pdiCtx.destroy(); // super.destroy(di); }