Package org.infinispan.xsite.status
Class AbstractSiteStatusBuilder<E>
java.lang.Object
org.infinispan.xsite.status.AbstractSiteStatusBuilder<E>
- Direct Known Subclasses:
CacheSiteStatusBuilder
,ContainerSiteStatusBuilder
A
SiteStatus
builder based on its online and offline members.- Since:
- 8.2
- Author:
- Pedro Ruivo
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal SiteStatus
build()
protected abstract SiteStatus
createMixedStatus
(List<E> onlineElements, List<E> offlineElements) protected boolean
protected boolean
isOnline()
final void
Adds the member with an offline connection to the site.final void
Adds the element with an online connection to the site.
-
Constructor Details
-
AbstractSiteStatusBuilder
protected AbstractSiteStatusBuilder()
-
-
Method Details
-
onlineOn
Adds the element with an online connection to the site.- Parameters:
member
- The member.
-
offlineOn
Adds the member with an offline connection to the site.- Parameters:
member
- The member.
-
build
- Returns:
SiteStatus
created.
-
isOnline
protected boolean isOnline() -
isOffline
protected boolean isOffline() -
createMixedStatus
-