public class ContainerConfiguration extends Object
| Constructor and Description |
|---|
ContainerConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
ContainerConfiguration |
app(ApplicationConfiguration app)
Adds the configuration of an application to this configuration.
|
ApplicationConfiguration |
app(String context)
Returns the configuration of an application with a given context path.
|
List<ApplicationConfiguration> |
apps()
Returns the application configurations included in this configuration.
|
boolean |
equals(Object obj) |
int |
hashCode() |
String |
hostname()
Returns the host name of the container.
|
ContainerConfiguration |
hostname(String name)
Sets the host name of the container.
|
String |
infrastructure()
Returns the infrastructure in which the container is running.
|
ContainerConfiguration |
infrastructure(String infrastructure)
Sets the infrastructure in which the container is running.
|
Mode |
mode()
Returns the management mode for the container.
|
ContainerConfiguration |
mode(Mode mode)
Sets the management mode for the container.
|
Persistence |
persistence()
Returns the persistence manager of the container.
|
ContainerConfiguration |
persistence(Persistence manager)
Sets the persistence manager of the container.
|
int |
port()
Returns the port at which the container is listening for requests.
|
ContainerConfiguration |
port(int port)
Sets the port at which the container is listening for requests.
|
Map<String,String> |
properties()
Returns the configuration properties of the container.
|
ContainerConfiguration |
property(String name,
String value)
Adds a configuration property to the container.
|
long |
publicationFrequency()
Returns the publication frequency for the container's profile.
|
ContainerConfiguration |
publicationFrequency(long frequency)
Sets the publication frequency for the container's profile.
|
Site |
site()
Returns the geographical site of the container.
|
ContainerConfiguration |
site(Site site)
Sets the geographical site of the container.
|
Set<String> |
startScopes()
Returns the scopes in which the container initially operates.
|
List<String> |
startVOs()
Returns the VOs in which the container initially operates.
|
ContainerConfiguration |
startVOs(String... vos)
Sets the VOs in which the container initially operates.
|
void |
validate()
Validates this configuration
|
public Mode mode()
public ContainerConfiguration mode(Mode mode)
mode - the management modepublic List<ApplicationConfiguration> apps()
public ApplicationConfiguration app(String context)
context - the context pathpublic ContainerConfiguration app(ApplicationConfiguration app)
app - the application configurationpublic Site site()
public ContainerConfiguration site(Site site)
site - the sitepublic String infrastructure()
public ContainerConfiguration infrastructure(String infrastructure)
infrastructure - the infrastructurepublic String hostname()
public ContainerConfiguration hostname(String name)
name - the host namepublic int port()
public ContainerConfiguration port(int port)
port - the portpublic List<String> startVOs()
public ContainerConfiguration startVOs(String... vos)
vos - the VOspublic Set<String> startScopes()
public Persistence persistence()
public ContainerConfiguration persistence(Persistence manager)
manager - the managerpublic Map<String,String> properties()
public ContainerConfiguration property(String name, String value)
the - name of the propertythe - value of the propertypublic long publicationFrequency()
public ContainerConfiguration publicationFrequency(long frequency)
frequency - the frequencypublic void validate()
IllegalStateException - if the configuration is invalidCopyright © 2016. All Rights Reserved.