Class MBeanStartupListener
java.lang.Object
org.apache.sling.launchpad.base.impl.MBeanStartupListener
- All Implemented Interfaces:
org.apache.sling.launchpad.api.StartupListener
public class MBeanStartupListener
extends Object
implements org.apache.sling.launchpad.api.StartupListener
The startup listener is listening for startup events.
It notifies a JMX MBean when the startup is completed and about the
progress.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
inform
(org.apache.sling.launchpad.api.StartupMode mode, boolean finished) void
startupFinished
(org.apache.sling.launchpad.api.StartupMode mode) void
startupProgress
(float ratio)
-
Constructor Details
-
MBeanStartupListener
Create a new MBean helper.- Throws:
MalformedObjectNameException
- if the format of the object name does not correspond to a valid ObjectName.
-
-
Method Details
-
inform
public void inform(org.apache.sling.launchpad.api.StartupMode mode, boolean finished) - Specified by:
inform
in interfaceorg.apache.sling.launchpad.api.StartupListener
- See Also:
-
startupFinished
public void startupFinished(org.apache.sling.launchpad.api.StartupMode mode) - Specified by:
startupFinished
in interfaceorg.apache.sling.launchpad.api.StartupListener
- See Also:
-
startupProgress
public void startupProgress(float ratio) - Specified by:
startupProgress
in interfaceorg.apache.sling.launchpad.api.StartupListener
- See Also:
-