Package | Description |
---|---|
org.apache.sling.discovery.impl.cluster.voting |
Modifier and Type | Method and Description |
---|---|
static VotingView |
VotingHelper.getWinningVoting(org.apache.sling.api.resource.ResourceResolver resourceResolver,
Config config)
Return the still valid (ongoing) and winning (received a yes vote
from everybody) voting
|
static VotingView |
VotingView.newVoting(org.apache.sling.api.resource.ResourceResolver resourceResolver,
Config config,
String newViewId,
String initiatorId,
Set<String> liveInstances)
Create a new voting with the given list of instances, the given
voting/view id and the given slingid of the initiator.
|
Modifier and Type | Method and Description |
---|---|
Map<VotingView,VotingHandler.VotingDetail> |
VotingHandler.analyzeVotings(org.apache.sling.api.resource.ResourceResolver resourceResolver)
Analyze any ongoing voting in the repository.
|
static List<VotingView> |
VotingHelper.getYesVotingsOf(org.apache.sling.api.resource.ResourceResolver resourceResolver,
Config config,
String slingId)
Returns the voting for which the given slingId has vote yes or was the
initiator (which is equal to yes).
|
static List<VotingView> |
VotingHelper.listOpenNonWinningVotings(org.apache.sling.api.resource.ResourceResolver resourceResolver,
Config config)
List all the votings that are currently 'open' but 'not winning'.
|
static List<VotingView> |
VotingHelper.listTimedoutVotings(org.apache.sling.api.resource.ResourceResolver resourceResolver,
Config config)
List all the votings that have timed out
|
static List<VotingView> |
VotingHelper.listVotings(org.apache.sling.api.resource.ResourceResolver resourceResolver,
Config config) |
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.