Package org.infinispan.xsite.status
Class CacheSiteStatusBuilder
- java.lang.Object
-
- org.infinispan.xsite.status.AbstractSiteStatusBuilder<Address>
-
- org.infinispan.xsite.status.CacheSiteStatusBuilder
-
public class CacheSiteStatusBuilder extends AbstractSiteStatusBuilder<Address>
A per-cacheSiteStatus
builder.It builds a
SiteStatus
based on the number of node with the site online and offline.- Since:
- 8.2
- Author:
- Pedro Ruivo
-
-
Constructor Summary
Constructors Constructor Description CacheSiteStatusBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMember(Address address, boolean online)
Adds a member with an online/offline connection to the server based on theonline
parameter.protected SiteStatus
createMixedStatus(List<Address> onlineElements, List<Address> offlineElements)
-
-
-
Method Detail
-
addMember
public void addMember(Address address, boolean online)
Adds a member with an online/offline connection to the server based on theonline
parameter.- Parameters:
address
- The memberAddress
.online
-true
if the member has online connection,false
otherwise.
-
createMixedStatus
protected SiteStatus createMixedStatus(List<Address> onlineElements, List<Address> offlineElements)
- Specified by:
createMixedStatus
in classAbstractSiteStatusBuilder<Address>
-
-