Package org.infinispan.xsite.status
Class ContainerSiteStatusBuilder
- java.lang.Object
-
- org.infinispan.xsite.status.AbstractSiteStatusBuilder<String>
-
- org.infinispan.xsite.status.ContainerSiteStatusBuilder
-
public class ContainerSiteStatusBuilder extends AbstractSiteStatusBuilder<String>
A per-containerSiteStatus
builder.It builds a
SiteStatus
based on the caches which have the site online, offline or mixed status.- Since:
- 8.2
- Author:
- Pedro Ruivo
-
-
Constructor Summary
Constructors Constructor Description ContainerSiteStatusBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCacheName(String cacheName, SiteStatus status)
Adds the cache with theSiteStatus
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.-
Methods inherited from class org.infinispan.xsite.status.AbstractSiteStatusBuilder
build, offlineOn, onlineOn
-
-
-
-
Method Detail
-
mixedOn
public void mixedOn(String cacheName)
Adds the cache with an mixed connection to the site.- Parameters:
cacheName
- The cache name.
-
addCacheName
public void addCacheName(String cacheName, SiteStatus status)
Adds the cache with theSiteStatus
connection to the site.- Parameters:
cacheName
- The cache name.status
-SiteStatus
of the site.
-
isOnline
protected boolean isOnline()
- Overrides:
isOnline
in classAbstractSiteStatusBuilder<String>
-
isOffline
protected boolean isOffline()
- Overrides:
isOffline
in classAbstractSiteStatusBuilder<String>
-
createMixedStatus
protected SiteStatus createMixedStatus(List<String> onlineElements, List<String> offlineElements)
- Specified by:
createMixedStatus
in classAbstractSiteStatusBuilder<String>
-
-