public class DefaultInstanceDescription extends Object implements org.apache.sling.discovery.InstanceDescription
Allows creation of the object with clusterview and/or properties null - to be set later but before usage!
Constructor and Description |
---|
DefaultInstanceDescription(DefaultClusterView clusterView,
boolean isLeader,
boolean isOwn,
String slingId,
Map<String,String> properties) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
org.apache.sling.discovery.ClusterView |
getClusterView() |
Map<String,String> |
getProperties() |
String |
getProperty(String name) |
String |
getSlingId() |
int |
hashCode() |
boolean |
isLeader() |
boolean |
isLocal() |
protected void |
setProperties(Map<String,String> properties)
Sets the properties of this instance
|
void |
setProperty(String key,
String value)
for testing only!
|
String |
toString() |
public DefaultInstanceDescription(DefaultClusterView clusterView, boolean isLeader, boolean isOwn, String slingId, Map<String,String> properties)
public org.apache.sling.discovery.ClusterView getClusterView()
getClusterView
in interface org.apache.sling.discovery.InstanceDescription
public boolean isLeader()
isLeader
in interface org.apache.sling.discovery.InstanceDescription
public boolean isLocal()
isLocal
in interface org.apache.sling.discovery.InstanceDescription
public String getSlingId()
getSlingId
in interface org.apache.sling.discovery.InstanceDescription
public String getProperty(String name)
getProperty
in interface org.apache.sling.discovery.InstanceDescription
public Map<String,String> getProperties()
getProperties
in interface org.apache.sling.discovery.InstanceDescription
protected void setProperties(Map<String,String> properties)
properties
- Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.