Modifier and Type | Class and Description |
---|---|
static class |
EnvironmentConfiguration.EnvironmentConfigurationCommand
This is a environment configuration command that updates the configuration information cached.
|
Constructor and Description |
---|
EnvironmentConfiguration() |
Modifier and Type | Method and Description |
---|---|
EnvironmentProperty |
addProperty(String name)
Adds a property with the given name in the configuration.
|
void |
clearProperties()
Removes all environment properties.
|
static void |
clearPropertiesCache()
Clears the environment properties cache.
|
protected Object |
clone() |
String |
getBigDataRepositoryClassName()
Returns the class name of big data repository implementation to use.
|
BigDataRepositoryType |
getBigDataRepositoryType()
Returns the configured big data repository type.
|
static EnvironmentConfiguration |
getCurrentConfiguration()
Returns the current configuration.
|
int |
getElasticsearchBulkConcurrentRequests()
Returns the maximum number of bulk requests to be sent concurrently.
|
String |
getElasticsearchClusterName()
Returns the cluster name to use when initializing the Elasticsearch client
|
String |
getElasticsearchIndexNamePrefix()
Returns the Elasticsearch index names prefix.
|
String |
getElasticsearchNativeProtocolConnectionAddresses()
Returns the connection addresses to use when initializing the Elasticsearch native protocol client.
|
String |
getElasticsearchRestConnectionAddresses()
Returns the connection addresses to use when initializing the Elasticsearch Rest client.
|
String |
getFileSystemImplementation()
Returns the portal's file system implementation class name.
|
String |
getId()
Returns the id.
|
String |
getIdentification()
Returns the identification.
|
MonitorConfiguration |
getMonitorConfiguration()
Returns the monitor configuration.
|
Map<String,List<String>> |
getProperties()
Returns an immutable map of the environment properties.
|
String |
getPropertyValue(String propertyName)
Returns the value of the property that has the given name.
|
List<String> |
getPropertyValues(String propertyName)
Returns an immutable set of values of the property that has the given name.
|
Collection<String> |
getTags()
Returns the collection of tags this environment has.
|
EnvironmentType |
getType()
Returns the environment type.
|
boolean |
isJavaMelodyEnabled()
Returns whether the JavaMelody monitoring should be enabled next time portal starts.
|
void |
removeProperty(String name)
Removes the property that has the given name.
|
void |
setBigDataRepositoryClassName(String bigDataRepositoryClassName)
Sets the class name of big data repository implementation to use.
|
void |
setBigDataRepositoryType(BigDataRepositoryType bigDataRepositoryType)
Sets the configured big data repository type.
|
void |
setElasticsearchBulkConcurrentRequests(int elasticsearchBulkConcurrentRequests)
Sets the maximum number of bulk requests to be sent concurrently.
|
void |
setElasticsearchClusterName(String elasticsearchClusterName)
Sets the cluster name to use when initializing the Elasticsearch client
|
void |
setElasticsearchIndexNamePrefix(String elasticsearchIndexNamePrefix)
Sets the Elasticsearch index names prefix.
|
void |
setElasticsearchNativeProtocolConnectionAddresses(String addresses)
Sets the connection addresses to use when initializing the Elasticsearch native protocol client.
|
void |
setElasticsearchRestConnectionAddresses(String addresses)
Sets the connection addresses to use when initializing the Elasticsearch Rest client.
|
void |
setFileSystemImplementation(String fileSystemImplementation)
Sets the portal's file system implementation class name.
|
void |
setIdentification(String identification)
Sets the identification.
|
void |
setJavaMelodyEnabled(boolean javaMelodyEnabled)
Sets whether JavaMelody monitoring should be enabled next time portal starts.
|
void |
setTags(Collection<String> tags)
Sets the collection of tags this environment has.
|
void |
setType(EnvironmentType type)
Sets the environment type.
|
static void |
updateCurrentConfiguration(EnvironmentConfiguration config)
Returns the current configuration.
|
public String getId()
public EnvironmentType getType()
public void setType(EnvironmentType type)
protected Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public Collection<String> getTags()
public void setTags(Collection<String> tags)
public String getFileSystemImplementation()
public void setFileSystemImplementation(String fileSystemImplementation)
fileSystemImplementation
- the portal's file system implementation class namepublic boolean isJavaMelodyEnabled()
public void setJavaMelodyEnabled(boolean javaMelodyEnabled)
javaMelodyEnabled
- whether JavaMelody monitoring should be enabled next time portal starts.public BigDataRepositoryType getBigDataRepositoryType()
public void setBigDataRepositoryType(BigDataRepositoryType bigDataRepositoryType)
bigDataRepositoryType
- the big data repository type.public String getBigDataRepositoryClassName()
getBigDataRepositoryType()
is BigDataRepositoryType.CUSTOM
.public void setBigDataRepositoryClassName(String bigDataRepositoryClassName)
getBigDataRepositoryType()
is BigDataRepositoryType.CUSTOM
.bigDataRepositoryClassName
- the big data repository class name.public String getElasticsearchClusterName()
null
if not set.public void setElasticsearchClusterName(String elasticsearchClusterName)
elasticsearchClusterName
- the cluster name.public String getElasticsearchNativeProtocolConnectionAddresses()
public void setElasticsearchNativeProtocolConnectionAddresses(String addresses)
addresses
- the connection addresses. Example: "host1:9300,host2:9300,192.168.1.13:9300"public String getElasticsearchRestConnectionAddresses()
public void setElasticsearchRestConnectionAddresses(String addresses)
addresses
- the connection addresses. Example: "host1:9200,host2:9200,192.168.1.13:9200"public String getElasticsearchIndexNamePrefix()
public void setElasticsearchIndexNamePrefix(String elasticsearchIndexNamePrefix)
elasticsearchIndexNamePrefix
- the Elasticsearch index names prefix.public int getElasticsearchBulkConcurrentRequests()
public void setElasticsearchBulkConcurrentRequests(int elasticsearchBulkConcurrentRequests)
elasticsearchBulkConcurrentRequests
- the maximum number of concurrent bulk requests.public static EnvironmentConfiguration getCurrentConfiguration()
public static void updateCurrentConfiguration(EnvironmentConfiguration config) throws PortalException
PortalException
public String getIdentification()
public void setIdentification(String identification)
^[a-zA-Z0-9_]+$
.identification
- the identification value to set.public MonitorConfiguration getMonitorConfiguration()
public EnvironmentProperty addProperty(String name) throws PortalException
name
- the property name.IllegalArgumentException
- if the given name is null or empty.PortalObjectAlreadyExistsException
- if there's already a property with the given name.PortalException
public void removeProperty(String name)
name
- the property name.public void clearProperties()
public List<String> getPropertyValues(String propertyName) throws PortalException
propertyName
- the desired property name.IllegalArgumentException
- if property name is null or empty.PortalObjectNotFoundException
- if there's no such property.PortalException
public String getPropertyValue(String propertyName) throws PortalException
propertyName
- the desired property name.IllegalArgumentException
- if property name is null or empty.PortalObjectNotFoundException
- if there's no such property.PortalException
public Map<String,List<String>> getProperties() throws PortalException
PortalException
public static void clearPropertiesCache()
Lumisportal 10.1.2.170428 - Copyright © 2006–2017 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.