Package de.hybris.platform.hac.facade
Class ThreadDumpCollector
- java.lang.Object
-
- de.hybris.platform.hac.facade.ThreadDumpCollector
-
- All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.InitializingBean
public class ThreadDumpCollector extends java.lang.Object implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBeanCollects thread dumps for a period of time and returns them as zip file.
-
-
Constructor Summary
Constructors Constructor Description ThreadDumpCollector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()voiddestroy()java.nio.file.PathgetResult()booleanisCollecting()booleanisDumpAvailable()voidstartCollecting(long interval)interval in millisecondsjava.nio.file.PathstopCollecting()
-
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
java.lang.Exception
-
startCollecting
public void startCollecting(long interval)
interval in milliseconds
-
isDumpAvailable
public boolean isDumpAvailable()
-
stopCollecting
public java.nio.file.Path stopCollecting() throws DumpNotAvailableException- Throws:
DumpNotAvailableException
-
getResult
public java.nio.file.Path getResult()
-
isCollecting
public boolean isCollecting()
-
destroy
public void destroy() throws java.lang.Exception- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean- Throws:
java.lang.Exception
-
-