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.InstanceDescriptionpublic boolean isLeader()
isLeader in interface org.apache.sling.discovery.InstanceDescriptionpublic boolean isLocal()
isLocal in interface org.apache.sling.discovery.InstanceDescriptionpublic String getSlingId()
getSlingId in interface org.apache.sling.discovery.InstanceDescriptionpublic String getProperty(String name)
getProperty in interface org.apache.sling.discovery.InstanceDescriptionpublic Map<String,String> getProperties()
getProperties in interface org.apache.sling.discovery.InstanceDescriptionprotected void setProperties(Map<String,String> properties)
properties - Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.