Package org.alfresco.rest.api.probes
Class ProbeEntityResource
- java.lang.Object
-
- org.alfresco.rest.api.probes.ProbeEntityResource
-
- All Implemented Interfaces:
EntityResourceAction.ReadById<Probe>
,ResourceAction
@EntityResource(name="probes", title="Probes") public class ProbeEntityResource extends java.lang.Object implements EntityResourceAction.ReadById<Probe>
An implementation of an Entity Resource for Probes.
-
-
Field Summary
Fields Modifier and Type Field Description static long
CHECK_PERIOD
static java.lang.String
LIVE
protected static org.apache.commons.logging.Log
logger
static java.lang.String
READY
-
Constructor Summary
Constructors Constructor Description ProbeEntityResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
doCheckOrNothing(boolean isLiveProbe)
Probe
readById(java.lang.String name, Parameters parameters)
Returns a status code of 200 for okay.DiscoveryApiWebscript
setDiscovery(DiscoveryApiWebscript discovery)
-
-
-
Field Detail
-
LIVE
public static final java.lang.String LIVE
- See Also:
- Constant Field Values
-
READY
public static final java.lang.String READY
- See Also:
- Constant Field Values
-
CHECK_PERIOD
public static final long CHECK_PERIOD
- See Also:
- Constant Field Values
-
logger
protected static org.apache.commons.logging.Log logger
-
-
Method Detail
-
setDiscovery
public DiscoveryApiWebscript setDiscovery(DiscoveryApiWebscript discovery)
-
readById
@WebApiNoAuth public Probe readById(java.lang.String name, Parameters parameters)
Returns a status code of 200 for okay. The probe contains little information for security reasons. Note: does *not* require authenticated access, so limits the amount of work performed to avoid a DDOS.- Specified by:
readById
in interfaceEntityResourceAction.ReadById<Probe>
-
doCheckOrNothing
public java.lang.String doCheckOrNothing(boolean isLiveProbe)
-
-