public class DeploymentPropertiesUtility
extends java.lang.Object
| Constructor and Description |
|---|
DeploymentPropertiesUtility() |
| Modifier and Type | Method and Description |
|---|---|
static ModuleDeploymentProperties |
createModuleDeploymentProperties(java.util.Map<java.lang.String,java.lang.String> deploymentProperties,
ModuleDescriptor descriptor)
Based on the deployment properties for a
Stream/Job, create an instance of
ModuleDeploymentProperties for a specific module
in the Stream/Job. |
static java.lang.String |
formatDeploymentProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Returns a String representation of deployment properties as a comma separated list of key=value pairs.
|
static java.util.Map<java.lang.String,java.lang.String> |
parseDeploymentProperties(java.lang.String s)
Parses a String comprised of 0 or more comma-delimited key=value pairs where
each key has the format:
module.[modulename].[key]. |
public static ModuleDeploymentProperties createModuleDeploymentProperties(java.util.Map<java.lang.String,java.lang.String> deploymentProperties, ModuleDescriptor descriptor)
Stream/Job, create an instance of
ModuleDeploymentProperties for a specific module
in the Stream/Job.deploymentProperties - deployment properties for a stream/jobdescriptor - descriptor for module in the stream for which to create the propertiespublic static java.util.Map<java.lang.String,java.lang.String> parseDeploymentProperties(java.lang.String s)
module.[modulename].[key].
Values may themselves contain commas, since the split points will be based upon the key pattern.s - the string to parsepublic static java.lang.String formatDeploymentProperties(java.util.Map<java.lang.String,java.lang.String> properties)
properties - the properties to format