|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of Config in org.apache.sling.discovery.impl.cluster.voting |
---|
Methods in org.apache.sling.discovery.impl.cluster.voting with parameters of type Config | |
---|---|
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 |
VotingHelper.getYesVotingOf(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). |
boolean |
VotingView.isOngoingVoting(Config config)
Checks whether this voting is still ongoing - that is, whether a valid votingStart is set and whether that's within the heartbeat timeout configured |
boolean |
VotingView.isTimedoutVoting(Config config)
Checks whether this voting has timed out - that is, whether there is a valid votingStart set and whether that has timed out |
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 |
boolean |
VotingView.matchesLiveView(Config config)
Checks if this voting matches the current live view |
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. |
Uses of Config in org.apache.sling.discovery.impl.common |
---|
Methods in org.apache.sling.discovery.impl.common with parameters of type Config | |
---|---|
static Set<String> |
ViewHelper.determineLiveInstances(org.apache.sling.api.resource.Resource clusterInstancesResource,
Config config)
Return the list of cluster instances that are 'live', ie that have sent a heartbeat within the configured heartbeat timeout |
static boolean |
ViewHelper.establishedViewMatches(org.apache.sling.api.resource.ResourceResolver resourceResolver,
Config config,
Set<String> view)
Check if the established view matches the given set of slingIds |
static View |
ViewHelper.getEstablishedView(org.apache.sling.api.resource.ResourceResolver resourceResolver,
Config config)
Return the currently established cluster view - or null if there is no cluster view established at the moment. |
boolean |
View.matchesLiveView(org.apache.sling.api.resource.Resource clusterInstancesRes,
Config config)
Checks whether this view matches the 'live view' as represented in the clusterInstances resource |
Uses of Config in org.apache.sling.discovery.impl.common.resource |
---|
Constructors in org.apache.sling.discovery.impl.common.resource with parameters of type Config | |
---|---|
EstablishedClusterView(Config config,
View view,
String localId)
Construct a new established cluster view |
Uses of Config in org.apache.sling.discovery.impl.topology.connector |
---|
Constructors in org.apache.sling.discovery.impl.topology.connector with parameters of type Config | |
---|---|
TopologyRequestValidator(Config config)
Create a TopologyRequestValidator. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |