|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.smartgears.configuration.container.ContainerConfiguration
public class ContainerConfiguration
The configuration of the container.
| Constructor Summary | |
|---|---|
ContainerConfiguration()
|
|
| Method Summary | |
|---|---|
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. |
List<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 |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContainerConfiguration()
| Method Detail |
|---|
public Mode mode()
public ContainerConfiguration mode(Mode mode)
mode - the management mode
public Site site()
public ContainerConfiguration site(Site site)
site - the site
public String infrastructure()
public ContainerConfiguration infrastructure(String infrastructure)
infrastructure - the infrastructure
public String hostname()
public ContainerConfiguration hostname(String name)
name - the host name
public int port()
public ContainerConfiguration port(int port)
port - the port
public List<String> startVOs()
public ContainerConfiguration startVOs(String... vos)
vos - the VOs
public List<String> startScopes()
public Persistence persistence()
public ContainerConfiguration persistence(Persistence manager)
manager - the manager
public Map<String,String> properties()
public ContainerConfiguration property(String name,
String value)
the - name of the propertythe - value of the property
public long publicationFrequency()
public ContainerConfiguration publicationFrequency(long frequency)
frequency - the frequency
public void validate()
IllegalStateException - if the configuration is invalidpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||