Package com.jalios.jcms.readiness
Class FileReadinessProbe
- java.lang.Object
-
- com.jalios.jcms.readiness.AbstractBasicReadinessProbe
-
- com.jalios.jcms.readiness.FileReadinessProbe
-
- All Implemented Interfaces:
ReadinessProbeInterface
public class FileReadinessProbe extends AbstractBasicReadinessProbe
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringDEFAULT_ERROR_FILENAMEprotected static java.lang.StringDEFAULT_READINESS_DIRECTORYprotected static java.lang.StringDEFAULT_READINESS_FILENAMEprotected static java.lang.StringERROR_FILENAME_PROPprotected static java.lang.StringREADINESS_DIRECTORY_PROPprotected static java.lang.StringREADINESS_FILENAME_PROP
-
Constructor Summary
Constructors Constructor Description FileReadinessProbe()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidremoveReadinessProbe()Remove the readiness probe (call at application init)voidsetErrorProbe(java.lang.String message)Set the error probe when the application is not correctly startedvoidsetReadinessProbe()Set the readiness probe when the application is correctly started
-
-
-
Field Detail
-
READINESS_DIRECTORY_PROP
protected static final java.lang.String READINESS_DIRECTORY_PROP
- See Also:
- Constant Field Values
-
READINESS_FILENAME_PROP
protected static final java.lang.String READINESS_FILENAME_PROP
- See Also:
- Constant Field Values
-
ERROR_FILENAME_PROP
protected static final java.lang.String ERROR_FILENAME_PROP
- See Also:
- Constant Field Values
-
DEFAULT_READINESS_DIRECTORY
protected static final java.lang.String DEFAULT_READINESS_DIRECTORY
- See Also:
- Constant Field Values
-
DEFAULT_READINESS_FILENAME
protected static final java.lang.String DEFAULT_READINESS_FILENAME
- See Also:
- Constant Field Values
-
DEFAULT_ERROR_FILENAME
protected static final java.lang.String DEFAULT_ERROR_FILENAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
removeReadinessProbe
public void removeReadinessProbe() throws java.lang.ExceptionDescription copied from interface:ReadinessProbeInterfaceRemove the readiness probe (call at application init)- Specified by:
removeReadinessProbein interfaceReadinessProbeInterface- Overrides:
removeReadinessProbein classAbstractBasicReadinessProbe- Throws:
java.lang.Exception- if the probe cannot be executed correctly
-
setReadinessProbe
public void setReadinessProbe() throws java.lang.ExceptionDescription copied from interface:ReadinessProbeInterfaceSet the readiness probe when the application is correctly started- Specified by:
setReadinessProbein interfaceReadinessProbeInterface- Overrides:
setReadinessProbein classAbstractBasicReadinessProbe- Throws:
java.lang.Exception- if the probe cannot be executed correctly
-
setErrorProbe
public void setErrorProbe(java.lang.String message) throws java.lang.ExceptionDescription copied from interface:ReadinessProbeInterfaceSet the error probe when the application is not correctly started- Specified by:
setErrorProbein interfaceReadinessProbeInterface- Overrides:
setErrorProbein classAbstractBasicReadinessProbe- Parameters:
message- an error message- Throws:
java.lang.Exception- if the probe cannot be executed correctly
-
-