Package com.yahoo.config
Class ConfigInstance
- java.lang.Object
-
- com.yahoo.config.Node
-
- com.yahoo.config.InnerNode
-
- com.yahoo.config.ConfigInstance
-
public abstract class ConfigInstance extends InnerNode
Represents an instance of an application config with a specific configId.An instance of this class contains all values (represented by Nodes) for the config object as it is the superclass of the generated config class used by the client.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ConfigInstance.Builder
static interface
ConfigInstance.Producer
-
Constructor Summary
Constructors Constructor Description ConfigInstance()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getConfigMd5()
static java.lang.String
getDefName(java.lang.Class<?> type)
Gets the name of the given config instancestatic java.lang.String
getDefNamespace(java.lang.Class<?> type)
Gets the namespace of the given config instancestatic java.util.List<java.lang.String>
serialize(InnerNode node)
Returns the serialized representation of the given node.static void
serialize(InnerNode node, Serializer serializer)
void
setConfigMd5(java.lang.String configMd5)
-
Methods inherited from class com.yahoo.config.InnerNode
equals, getAllDescendantLeafNodes, getChildren, getChildrenWithVectorsFlattened, hashCode, postInitialize, toString
-
-
-
-
Method Detail
-
getDefName
public static java.lang.String getDefName(java.lang.Class<?> type)
Gets the name of the given config instance
-
getDefNamespace
public static java.lang.String getDefNamespace(java.lang.Class<?> type)
Gets the namespace of the given config instance
-
serialize
public static java.util.List<java.lang.String> serialize(InnerNode node)
Returns the serialized representation of the given node.Declared static, instead of InnerNode member, to avoid a public 0-arg method with a commonly used name.
- Parameters:
node
- The inner node- Returns:
- a list of strings, containing the serialized representation of this config
-
serialize
public static void serialize(InnerNode node, Serializer serializer)
-
getConfigMd5
public java.lang.String getConfigMd5()
-
setConfigMd5
public void setConfigMd5(java.lang.String configMd5)
-
-