public class ContainerSiteStatusBuilder extends AbstractSiteStatusBuilder<String>
SiteStatus
builder.
It builds a SiteStatus
based on the caches which have the site online, offline or mixed status.
Constructor and Description |
---|
ContainerSiteStatusBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
addCacheName(String cacheName,
SiteStatus status)
Adds the cache with the
SiteStatus connection to the site. |
protected SiteStatus |
createMixedStatus(List<String> onlineElements,
List<String> offlineElements) |
protected boolean |
isOffline() |
protected boolean |
isOnline() |
void |
mixedOn(String cacheName)
Adds the cache with an mixed connection to the site.
|
build, offlineOn, onlineOn
public void mixedOn(String cacheName)
cacheName
- The cache name.public void addCacheName(String cacheName, SiteStatus status)
SiteStatus
connection to the site.cacheName
- The cache name.status
- SiteStatus
of the site.protected boolean isOnline()
isOnline
in class AbstractSiteStatusBuilder<String>
protected boolean isOffline()
isOffline
in class AbstractSiteStatusBuilder<String>
protected SiteStatus createMixedStatus(List<String> onlineElements, List<String> offlineElements)
createMixedStatus
in class AbstractSiteStatusBuilder<String>
Copyright © 2021 JBoss by Red Hat. All rights reserved.