public abstract class AbstractMixedSiteStatus<E> extends Object implements SiteStatus
SiteStatus
.
Mixed SiteStatus
are status in which some considers the site to be online and other to be offline.
Modifier and Type | Field and Description |
---|---|
protected List<E> |
offline |
protected List<E> |
online |
Modifier | Constructor and Description |
---|---|
protected |
AbstractMixedSiteStatus(Collection<E> online,
Collection<E> offline) |
Modifier and Type | Method and Description |
---|---|
List<E> |
getOffline() |
List<E> |
getOnline() |
boolean |
isOffline() |
boolean |
isOnline() |
protected static <E> List<E> |
toImmutable(Collection<E> collection) |
protected AbstractMixedSiteStatus(Collection<E> online, Collection<E> offline)
protected static <E> List<E> toImmutable(Collection<E> collection)
public final boolean isOnline()
isOnline
in interface SiteStatus
true
if the site is online.public final boolean isOffline()
isOffline
in interface SiteStatus
true
if the site is offline.Copyright © 2021 JBoss by Red Hat. All rights reserved.