Package org.jboss.as.jdr
Class JdrReportService
- java.lang.Object
-
- org.jboss.as.jdr.JdrReportService
-
- All Implemented Interfaces:
JdrReportCollector,org.jboss.msc.Service,org.jboss.msc.service.Service<JdrReportCollector>,org.jboss.msc.value.Value<JdrReportCollector>
public class JdrReportService extends Object implements JdrReportCollector, org.jboss.msc.service.Service<JdrReportCollector>
Service that provides aJdrReportCollector.- Author:
- Brian Stansberry, Mike M. Clark, Jesse Jaggars
-
-
Field Summary
Fields Modifier and Type Field Description static org.jboss.msc.service.ServiceNameSERVICE_NAME
-
Constructor Summary
Constructors Constructor Description JdrReportService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.jboss.msc.service.ServiceController<JdrReportCollector>addService(org.jboss.msc.service.ServiceTarget target)JdrReportcollect()Collect a JDR report.JdrReportServicegetValue()JdrReportstandaloneCollect(org.jboss.as.cli.scriptsupport.CLI cli, String protocol, String host, int port)Collect a JDR report when run outside the Application Server.voidstart(org.jboss.msc.service.StartContext context)voidstop(org.jboss.msc.service.StopContext context)
-
-
-
Method Detail
-
addService
public static org.jboss.msc.service.ServiceController<JdrReportCollector> addService(org.jboss.msc.service.ServiceTarget target)
-
standaloneCollect
public JdrReport standaloneCollect(org.jboss.as.cli.scriptsupport.CLI cli, String protocol, String host, int port) throws org.jboss.as.controller.OperationFailedException
Collect a JDR report when run outside the Application Server.- Parameters:
cli-- Throws:
org.jboss.as.controller.OperationFailedException
-
collect
public JdrReport collect() throws org.jboss.as.controller.OperationFailedException
Collect a JDR report.- Specified by:
collectin interfaceJdrReportCollector- Returns:
- information about the generated report.
- Throws:
org.jboss.as.controller.OperationFailedException
-
start
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException- Specified by:
startin interfaceorg.jboss.msc.Service- Throws:
org.jboss.msc.service.StartException
-
stop
public void stop(org.jboss.msc.service.StopContext context)
- Specified by:
stopin interfaceorg.jboss.msc.Service
-
getValue
public JdrReportService getValue() throws IllegalStateException, IllegalArgumentException
- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<JdrReportCollector>- Throws:
IllegalStateExceptionIllegalArgumentException
-
-