Package org.infinispan.xsite.status
Class ContainerSiteStatusBuilder
java.lang.Object
org.infinispan.xsite.status.AbstractSiteStatusBuilder<String>
org.infinispan.xsite.status.ContainerSiteStatusBuilder
A per-container
SiteStatus
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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
protected boolean
isOnline()
void
Adds the cache with an mixed connection to the site.Methods inherited from class org.infinispan.xsite.status.AbstractSiteStatusBuilder
build, offlineOn, onlineOn
-
Constructor Details
-
ContainerSiteStatusBuilder
public ContainerSiteStatusBuilder()
-
-
Method Details
-
mixedOn
Adds the cache with an mixed connection to the site.- Parameters:
cacheName
- The cache name.
-
addCacheName
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
- Specified by:
createMixedStatus
in classAbstractSiteStatusBuilder<String>
-