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