public class FileReadinessProbe extends AbstractBasicReadinessProbe
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
DEFAULT_ERROR_FILENAME |
protected static java.lang.String |
DEFAULT_READINESS_DIRECTORY |
protected static java.lang.String |
DEFAULT_READINESS_FILENAME |
protected static java.lang.String |
ERROR_FILENAME_PROP |
protected static java.lang.String |
READINESS_DIRECTORY_PROP |
protected static java.lang.String |
READINESS_FILENAME_PROP |
Constructor and Description |
---|
FileReadinessProbe() |
Modifier and Type | Method and Description |
---|---|
void |
removeReadinessProbe()
Remove the readiness probe (call at application init)
|
void |
setErrorProbe(java.lang.String message)
Set the error probe when the application is not correctly started
|
void |
setReadinessProbe()
Set the readiness probe when the application is correctly started
|
protected static final java.lang.String READINESS_DIRECTORY_PROP
protected static final java.lang.String READINESS_FILENAME_PROP
protected static final java.lang.String ERROR_FILENAME_PROP
protected static final java.lang.String DEFAULT_READINESS_DIRECTORY
protected static final java.lang.String DEFAULT_READINESS_FILENAME
protected static final java.lang.String DEFAULT_ERROR_FILENAME
public void removeReadinessProbe() throws java.lang.Exception
ReadinessProbeInterface
removeReadinessProbe
in interface ReadinessProbeInterface
removeReadinessProbe
in class AbstractBasicReadinessProbe
java.lang.Exception
- if the probe cannot be executed correctlypublic void setReadinessProbe() throws java.lang.Exception
ReadinessProbeInterface
setReadinessProbe
in interface ReadinessProbeInterface
setReadinessProbe
in class AbstractBasicReadinessProbe
java.lang.Exception
- if the probe cannot be executed correctlypublic void setErrorProbe(java.lang.String message) throws java.lang.Exception
ReadinessProbeInterface
setErrorProbe
in interface ReadinessProbeInterface
setErrorProbe
in class AbstractBasicReadinessProbe
message
- an error messagejava.lang.Exception
- if the probe cannot be executed correctlyCopyright © 2001-2019 Jalios SA. All Rights Reserved.