Package org.infinispan.xsite.status
Class CacheSiteStatusBuilder
java.lang.Object
org.infinispan.xsite.status.AbstractSiteStatusBuilder<Address>
org.infinispan.xsite.status.CacheSiteStatusBuilder
A per-cache
SiteStatus
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a member with an online/offline connection to the server based on theonline
parameter.protected SiteStatus
createMixedStatus
(List<Address> onlineElements, List<Address> offlineElements)
-
Constructor Details
-
CacheSiteStatusBuilder
public CacheSiteStatusBuilder()
-
-
Method Details
-
addMember
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
- Specified by:
createMixedStatus
in classAbstractSiteStatusBuilder<Address>
-