com.zeroturnaround.liverebel.util.managedconf.api
Enum ConfigurationContexts

java.lang.Object
  extended by java.lang.Enum<ConfigurationContexts>
      extended by com.zeroturnaround.liverebel.util.managedconf.api.ConfigurationContexts
All Implemented Interfaces:
Serializable, Comparable<ConfigurationContexts>

public enum ConfigurationContexts
extends Enum<ConfigurationContexts>

Lists different configuration contexts

Author:
Ats Uiboupin

Enum Constant Summary
ENV
          configuration defined for this context is used to set environment properties for application server (and they are inherited to configuration scripts)
EXPAND
          configuration defined for this context is used when expanding properties placeholders inside application archive
JVMOPT
          configuration defined for this context is used to set JVM options for java application server
LIVEREBEL_DAEMON
          configuration defined for this context is used to configure LiveRebel daemon
RUNTIME
          configuration defined for this context can be used by application at runtime to resolve properties that have been sent to the server after latest configuration changes
SCRIPT_ENV
          configuration defined for this context is used to set environment properties for configuration scripts
SERVER
          configuration defined for this context is used to configure a server node
SYSPROP
          configuration defined for this context is used to set system properties for java application server
 
Field Summary
static String PREFIX_GLOBAL
          Prefix for global configuration files inside global configuration git repository
static String PREFIX_GROUP
          Prefix for server group configuration files inside git repository of the server group
static String PROPERTIES_FILE_SUFFIX
           
static String RESOLVED_FILES_PREFIX
           
 
Method Summary
 String fileName(ConfScope confScope, String source)
           
 String fileName(String prefix)
           
 String fileNameInGlobal()
           
 String fileNameInServersGroup()
           
static ConfigurationContexts fromFileName(String fileName)
           
 String getContextIdentifier()
           
static ConfigurationContexts getContextIdentifierFromServerFile(String serverName, String fileName)
           
static FileFilter getPropertiesFileFilterForPrefix(String serverName)
           
static ConfigurationContexts valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ConfigurationContexts[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

EXPAND

public static final ConfigurationContexts EXPAND
configuration defined for this context is used when expanding properties placeholders inside application archive


RUNTIME

public static final ConfigurationContexts RUNTIME
configuration defined for this context can be used by application at runtime to resolve properties that have been sent to the server after latest configuration changes


SYSPROP

public static final ConfigurationContexts SYSPROP
configuration defined for this context is used to set system properties for java application server


ENV

public static final ConfigurationContexts ENV
configuration defined for this context is used to set environment properties for application server (and they are inherited to configuration scripts)


SCRIPT_ENV

public static final ConfigurationContexts SCRIPT_ENV
configuration defined for this context is used to set environment properties for configuration scripts


LIVEREBEL_DAEMON

public static final ConfigurationContexts LIVEREBEL_DAEMON
configuration defined for this context is used to configure LiveRebel daemon


SERVER

public static final ConfigurationContexts SERVER
configuration defined for this context is used to configure a server node


JVMOPT

public static final ConfigurationContexts JVMOPT
configuration defined for this context is used to set JVM options for java application server

Field Detail

RESOLVED_FILES_PREFIX

public static final String RESOLVED_FILES_PREFIX
See Also:
Constant Field Values

PROPERTIES_FILE_SUFFIX

public static final String PROPERTIES_FILE_SUFFIX
See Also:
Constant Field Values

PREFIX_GLOBAL

public static final String PREFIX_GLOBAL
Prefix for global configuration files inside global configuration git repository

See Also:
Constant Field Values

PREFIX_GROUP

public static final String PREFIX_GROUP
Prefix for server group configuration files inside git repository of the server group

See Also:
Constant Field Values
Method Detail

values

public static ConfigurationContexts[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ConfigurationContexts c : ConfigurationContexts.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ConfigurationContexts valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

fileName

public String fileName(String prefix)

fileNameInGlobal

public String fileNameInGlobal()

fileNameInServersGroup

public String fileNameInServersGroup()

getContextIdentifier

public String getContextIdentifier()

fromFileName

public static ConfigurationContexts fromFileName(String fileName)

getPropertiesFileFilterForPrefix

public static FileFilter getPropertiesFileFilterForPrefix(String serverName)

getContextIdentifierFromServerFile

public static ConfigurationContexts getContextIdentifierFromServerFile(String serverName,
                                                                       String fileName)

fileName

public String fileName(ConfScope confScope,
                       String source)


Copyright © 2013. All Rights Reserved.