Package | Description |
---|---|
org.apache.sling.discovery.commons |
Provides commons utility for users for the Discovery API.
|
Modifier and Type | Method and Description |
---|---|
InstancesDiff.InstanceCollection |
InstancesDiff.added()
Returns the
InstanceCollection collection containing the InstanceDescription instances that are
contained in the new collection but not in the old collection. |
InstancesDiff.InstanceCollection |
InstancesDiff.all(boolean retainFromNewCollection)
Returns the
InstanceSet set containing the InstanceDescription instances that are
contained in either the old or the new collection. |
InstancesDiff.InstanceCollection |
InstancesDiff.InstanceCollection.filterWith(InstanceFilter filter)
Filter the instances with a custom
InstanceFilter filter. |
InstancesDiff.InstanceCollection |
InstancesDiff.InstanceCollection.isInClusterView(ClusterView clusterView)
Keep only the instances that are contained in the same
ClusterView cluster view
as the one provided. |
InstancesDiff.InstanceCollection |
InstancesDiff.InstanceCollection.isLeader()
Keep only the leader instances (see
InstanceDescription.isLeader() . |
InstancesDiff.InstanceCollection |
InstancesDiff.InstanceCollection.isLocal()
Keep only the local instance (see
InstanceDescription.isLocal() . |
InstancesDiff.InstanceCollection |
InstancesDiff.InstanceCollection.isNotInClusterView(ClusterView clusterView)
Filter out the instances that are contained in the same
ClusterView cluster view
as the one provided. |
InstancesDiff.InstanceCollection |
InstancesDiff.InstanceCollection.isNotLeader()
Filter out the leader instances (see
InstanceDescription.isLeader() . |
InstancesDiff.InstanceCollection |
InstancesDiff.InstanceCollection.isNotLocal()
Filter out the local instances (see
InstanceDescription.isLocal() . |
InstancesDiff.InstanceCollection |
InstancesDiff.removed()
Returns the
InstanceCollection collection containing the InstanceDescription instances that are
contained in the old collection but not in the new collection. |
InstancesDiff.InstanceCollection |
InstancesDiff.retained(boolean retainFromNewCollection)
Returns the
InstanceSet collection containing the InstanceDescription instances that are
contained in both the old collection and the new collection. |
InstancesDiff.InstanceCollection |
InstancesDiff.retained(boolean retainFromNewCollection,
boolean propertyChanged)
Returns the
InstanceCollection collection containing the InstanceDescription instances that are
contained in both the old and the new collections. |
Copyright © 2017 The Apache Software Foundation. All rights reserved.