Examples of uninstall()


Examples of org.osgi.service.deploymentadmin.DeploymentPackage.uninstall()

        assertBundleExists(getSymbolicName("bundle3"), "1.0.0");

        System.setProperty("bundle3", "stop");
       
        dp.uninstall(); // should succeed.

        // FELIX-4484: only after a successful uninstall, the DP should be marked as stale...
        assertTrue(dp.isStale());

        awaitRefreshPackagesEvent();
View Full Code Here

Examples of org.osgi.service.deploymentadmin.DeploymentPackage.uninstall()

        assertTrue("One bundle should be started!", getCurrentBundles().size() == 1);

        assertEquals("Expected no deployment package?!", 1, countDeploymentPackages());

        try {
            dp.uninstall();
            fail("Expected uninstall to fail and rollback!");
        }
        catch (DeploymentException exception) {
            // Ok; expected
            assertDeploymentException(CODE_PROCESSOR_NOT_FOUND, exception);
View Full Code Here

Examples of org.osgi.service.deploymentadmin.DeploymentPackage.uninstall()

        assertBundleExists(getSymbolicName("bundle1"), "1.0.0");
        assertBundleExists(getSymbolicName("bundle2"), "1.0.0");

        // Uninstall the deployment package; should yield the original situation again...
        dp2.uninstall();

        awaitRefreshPackagesEvent();

        assertEquals("Expected no deployment package?!", 0, countDeploymentPackages());
View Full Code Here

Examples of org.osgi.service.deploymentadmin.DeploymentPackage.uninstall()

        assertBundleExists(getSymbolicName("bundle1"), "1.0.0");
        assertBundleNotExists(getSymbolicName("bundle2"), "1.0.0");

        // Uninstall the deployment package; should yield the initial situation again...
        dp2.uninstall();

        awaitRefreshPackagesEvent();

        assertEquals("Expected no deployment package?!", 0, countDeploymentPackages());
View Full Code Here

Examples of org.osgi.service.deploymentadmin.DeploymentPackage.uninstall()

        assertBundleExists(getSymbolicName("bundle1"), "1.0.0");
        assertBundleExists(getSymbolicName("bundle2"), "1.0.0");
        assertBundleExists(getSymbolicName("bundle3"), "1.0.0");

        // Uninstall the deployment package; should yield the initial situation again...
        dp3.uninstall();

        awaitRefreshPackagesEvent();

        assertEquals("Expected a single deployment package?!", 1, countDeploymentPackages());
View Full Code Here

Examples of org.osgi.service.deploymentadmin.DeploymentPackage.uninstall()

        ServiceRegistration sreg = m_context.registerService(EventHandler.class, eventHandler, props);

        try
        {
            dp.uninstall();

            assertTrue("Not all events were received in time?!", cdl.await(5, TimeUnit.SECONDS));

            Event event;
            // Verify we've got the expected events...
View Full Code Here

Examples of org.osgi.service.deploymentadmin.DeploymentPackage.uninstall()

        ServiceRegistration sreg = m_context.registerService(EventHandler.class, eventHandler, props);

        try
        {
            dp.uninstall();
            fail("DeploymentException expected!");
        }
        catch (DeploymentException e)
        {
            // Ok, expected...
View Full Code Here

Examples of org.osgi.service.subsystem.Subsystem.uninstall()

        Subsystem subsystem = null;
        try {
            subsystem = this.bundleContext.getService(this.subsystemReference);
            if ( subsystem != null ) {
                subsystem.uninstall();
                ctx.addTaskToCurrentCycle(new ChangeStateTask(this.getResourceGroup(), ResourceState.UNINSTALLED));
                ctx.log("Uninstalled subsystem {}", subsystem);
            } else {
                ctx.log("Unable to uninstall subsystem {}.", tr);
                ctx.addTaskToCurrentCycle(new ChangeStateTask(this.getResourceGroup(), ResourceState.IGNORED));
View Full Code Here

Examples of org.osgi.service.subsystem.Subsystem.uninstall()

        Subsystem subsystem = null;
        try {
            subsystem = this.bundleContext.getService(this.subsystemReference);
            if ( subsystem != null ) {
                subsystem.stop();
                subsystem.uninstall();
                ctx.addTaskToCurrentCycle(new InstallSubsystemTask(this.getResourceGroup(), this.rootSubsystem));
            } else {
                ctx.log("Unable to update subsystem {}.", tr);
                ctx.addTaskToCurrentCycle(new ChangeStateTask(this.getResourceGroup(), ResourceState.IGNORED));
            }
View Full Code Here

Examples of org.rhq.bundle.ant.type.DeploymentUnitType.uninstall()

            break;
        case UPGRADE:
            deploymentUnit.upgrade(revert, clean);
            break;
        case UNINSTALL:
            deploymentUnit.uninstall();
            break;
        }
    }

    @Override
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.