Package org.apache.karaf.cellar.bundle

Examples of org.apache.karaf.cellar.bundle.RemoteBundleEvent


        } finally {
            Thread.currentThread().setContextClassLoader(originalClassLoader);
        }

        // broadcast the event
        RemoteBundleEvent event = new RemoteBundleEvent(symbolicName, version, null, BundleEvent.STARTED);
        event.setSourceGroup(group);
        eventProducer.produce(event);
    }
View Full Code Here


        } finally {
            Thread.currentThread().setContextClassLoader(originalClassLoader);
        }

        // broadcast the event
        RemoteBundleEvent event = new RemoteBundleEvent(symbolicName, version, null, BundleEvent.STOPPED);
        event.setForce(true);
        event.setSourceGroup(group);
        eventProducer.produce(event);
    }
View Full Code Here

        } finally {
            Thread.currentThread().setContextClassLoader(originalClassLoader);
        }

        // broadcast the cluster event
        RemoteBundleEvent event = new RemoteBundleEvent(name, version, location, BundleEvent.UNINSTALLED);
        event.setSourceGroup(group);
        eventProducer.produce(event);

        return null;
    }
View Full Code Here

                } finally {
                    Thread.currentThread().setContextClassLoader(originalClassLoader);
                }

                // broadcast the cluster event
                RemoteBundleEvent event = new RemoteBundleEvent(name, version, url, BundleEvent.INSTALLED);
                event.setSourceGroup(group);
                eventProducer.produce(event);
            } else {
                System.err.println("Bundle location " + url + " is blocked outbound");
            }
        }
View Full Code Here

        } finally {
            Thread.currentThread().setContextClassLoader(originalClassLoader);
        }

        // broadcast the cluster event
        RemoteBundleEvent event = new RemoteBundleEvent(name, version, location, BundleEvent.STOPPED);
        event.setSourceGroup(group);
        eventProducer.produce(event);

        return null;
    }
View Full Code Here

        } finally {
            Thread.currentThread().setContextClassLoader(originalClassLoader);
        }

        // broadcast the cluster event
        RemoteBundleEvent event = new RemoteBundleEvent(name, version, location, BundleEvent.STARTED);
        event.setSourceGroup(group);
        eventProducer.produce(event);

        return null;
    }
View Full Code Here

TOP

Related Classes of org.apache.karaf.cellar.bundle.RemoteBundleEvent

Copyright © 2018 www.massapicom. 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.