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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a member with an online/offline connection to the server based on theonlineparameter.protected SiteStatuscreateMixedStatus(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 theonlineparameter.- Parameters:
address- The memberAddress.online-trueif the member has online connection,falseotherwise.
-
createMixedStatus
- Specified by:
createMixedStatusin classAbstractSiteStatusBuilder<Address>
-