public class ContainerConfiguration extends Object
| Constructor and Description |
|---|
ContainerConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
allowedContexts() |
void |
allowedContexts(Set<String> allowedContexts) |
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.
|
String |
authenticationEnpoint() |
ContainerConfiguration |
authenticationEnpoint(String endpoint) |
boolean |
authorizeChildrenContext() |
ContainerConfiguration |
authorizeChildrenContext(boolean authorizeChildrenContext) |
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.
|
String |
protocol()
Returns the port at which the container is listening for requests.
|
ContainerConfiguration |
protocol(String protocol) |
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.
|
List<String> |
startTokens()
Returns the VOs in which the container initially operates.
|
ContainerConfiguration |
startTokens(List<String> tokens)
Sets the VOs in which the container initially operates.
|
String |
toString() |
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 String protocol()
public String authenticationEnpoint()
public ContainerConfiguration authenticationEnpoint(String endpoint)
public ContainerConfiguration port(int port)
port - the portpublic ContainerConfiguration protocol(String protocol)
public boolean authorizeChildrenContext()
public ContainerConfiguration authorizeChildrenContext(boolean authorizeChildrenContext)
public List<String> startTokens()
public ContainerConfiguration startTokens(List<String> tokens)
vos - the VOspublic 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 © 2021. All Rights Reserved.