public class DisabledActivityHealthChecker extends Object implements HealthChecker<DisabledActivity>
Constructor and Description |
---|
DisabledActivityHealthChecker() |
Modifier and Type | Method and Description |
---|---|
boolean |
canVisit(Object o)
The visitor can visit DisabledActivitys.
|
boolean |
isTimeConsuming()
The check is not time consuming as it simply constructs a VisitReport
|
VisitReport |
visit(DisabledActivity o,
List<Object> ancestry)
The result of the visit is simply a VisitReport to state that the service
is not available.
|
public boolean canVisit(Object o)
canVisit
in interface Visitor<DisabledActivity>
o
- The object that might be visitedpublic boolean isTimeConsuming()
isTimeConsuming
in interface Visitor<DisabledActivity>
public VisitReport visit(DisabledActivity o, List<Object> ancestry)
visit
in interface Visitor<DisabledActivity>
o
- The object to visitancestry
- A list of the ancestors of the object with the immediate
parent at the start of the list.Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.