public class VmStatusChangeNotifier extends Object
VmStatusListener
registered as OSGi Services
about VM status changes: VmStatusListener.Status#VM_STARTED
and
VmStatusListener.Status#VM_STOPPED
.
Any listeners registered after a VmStatusListener.Status#VM_STARTED
was delivered receive a VmStatusListener.Status#VM_ACTIVE
event
instead as an indication that a VM was started at some unknown point
previously.
Constructor and Description |
---|
VmStatusChangeNotifier(org.osgi.framework.BundleContext bundleContext) |
Modifier and Type | Method and Description |
---|---|
void |
notifyVmStatusChange(VmStatusListener.Status newStatus,
int pid)
Notify all registered listeners about a Vm status change.
|
void |
start() |
void |
stop() |
public VmStatusChangeNotifier(org.osgi.framework.BundleContext bundleContext)
public void start()
public void stop()
public void notifyVmStatusChange(VmStatusListener.Status newStatus, int pid)
newStatus
- either VmStatusListener.Status#VM_STARTED
or
VmStatusListener.Status#VM_STOPPED
pid
- Copyright © 2013. All rights reserved.