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 Object implements EntityResourceAction.ReadById<Probe>
An implementation of an Entity Resource for Probes.
-
-
Constructor Summary
Constructors Constructor Description ProbeEntityResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
doCheckOrNothing(boolean isLiveProbe)
Probe
readById(String name, Parameters parameters)
Returns a status code of 200 for okay.DiscoveryApiWebscript
setDiscovery(DiscoveryApiWebscript discovery)
-
-
-
Field Detail
-
LIVE
public static final String LIVE
- See Also:
- Constant Field Values
-
READY
public static final 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(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 String doCheckOrNothing(boolean isLiveProbe)
-
-