public class CacheSiteStatusBuilder extends AbstractSiteStatusBuilder<Address>
SiteStatus
builder.
It builds a SiteStatus
based on the number of node with the site online and offline.
Constructor and Description |
---|
CacheSiteStatusBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
addMember(Address address,
boolean online)
Adds a member with an online/offline connection to the server based on the
online parameter. |
protected SiteStatus |
createMixedStatus(List<Address> onlineElements,
List<Address> offlineElements) |
public void addMember(Address address, boolean online)
online
parameter.address
- The member Address
.online
- true
if the member has online connection, false
otherwise.protected SiteStatus createMixedStatus(List<Address> onlineElements, List<Address> offlineElements)
createMixedStatus
in class AbstractSiteStatusBuilder<Address>
Copyright © 2021 JBoss by Red Hat. All rights reserved.