public interface Domain extends ConfigBeanProxy, PropertyBag, SystemPropertyBag, ConfigLoader
Modifier and Type | Interface and Description |
---|---|
static class |
Domain.Duck |
Modifier and Type | Field and Description |
---|---|
static String |
DOMAIN_NAME_PROPERTY |
Modifier and Type | Method and Description |
---|---|
<P extends ConfigBeanProxy> |
checkIfExtensionExists(Class<P> configBeanType) |
List<Application> |
getAllDefinedSystemApplications() |
List<ReferenceContainer> |
getAllReferenceContainers() |
List<String> |
getAllReferencedTargetsForApplication(String appName) |
List<String> |
getAllTargets() |
ApplicationRef |
getApplicationRefInServer(String sn,
String name) |
ApplicationRef |
getApplicationRefInTarget(String appName,
String target) |
ApplicationRef |
getApplicationRefInTarget(String appName,
String target,
boolean includeInstances) |
List<ApplicationRef> |
getApplicationRefsInServer(String sn) |
List<ApplicationRef> |
getApplicationRefsInTarget(String target) |
String |
getApplicationRoot()
Gets the value of the applicationRoot property.
|
@NotNull Applications |
getApplications()
Gets the value of the applications property.
|
List<Application> |
getApplicationsInTarget(String target) |
Cluster |
getClusterForInstance(String instanceName) |
Cluster |
getClusterNamed(String name) |
@NotNull Clusters |
getClusters()
Gets the value of the clusters property.
|
List<Cluster> |
getClustersOnNode(String nodeName) |
Config |
getConfigNamed(String name) |
@NotNull Configs |
getConfigs()
Gets the value of the configs property.
|
DeploymentGroup |
getDeploymentGroupNamed(String target) |
@NotNull DeploymentGroups |
getDeploymentGroups()
Gets the value of the deployment groups property.
|
List<DeploymentGroup> |
getDeploymentGroupsForInstance(String namedInstance) |
String |
getEnabledForApplication(String target,
String appName) |
<T extends DomainExtension> |
getExtensionByType(Class<T> type) |
List<DomainExtension> |
getExtensions() |
List<Server> |
getInstancesOnNode(String nodeName) |
String |
getLocale()
Gets the value of the locale property.
|
String |
getLogRoot()
Gets the value of the logRoot property.
|
String |
getName() |
NodeAgents |
getNodeAgents()
Gets the value of the nodeAgents property.
|
Node |
getNodeNamed(String name) |
Nodes |
getNodes()
Gets the value of the nodes property.
|
List<Property> |
getProperty()
Properties as per
PropertyBag |
ReferenceContainer |
getReferenceContainerNamed(String name) |
List<ReferenceContainer> |
getReferenceContainersOf(Config config) |
@NotNull Resources |
getResources()
Gets the value of the resources property.
|
SecureAdmin |
getSecureAdmin()
Gets the SecureAdmin value defined in the domain.
|
Server |
getServerNamed(String name) |
@NotNull Servers |
getServers()
Gets the value of the servers property.
|
List<Server> |
getServersInTarget(String target) |
Application |
getSystemApplicationReferencedFrom(String sn,
String appName) |
@NotNull SystemApplications |
getSystemApplications() |
List<Application> |
getSystemApplicationsReferencedFrom(String sn)
Returns the list of system-applications that are referenced from the given server.
|
List<SystemProperty> |
getSystemProperty()
Gets the value of the systemProperty property.
|
List<String> |
getTargets(String tgt) |
String |
getVersion()
Gets the value of the version property.
|
String |
getVirtualServersForApplication(String target,
String appName) |
boolean |
isAppEnabledInTarget(String appName,
String target) |
boolean |
isAppRefEnabledInTarget(String appName,
String target) |
boolean |
isAppReferencedByPaaSTarget(String appName) |
boolean |
isCurrentInstanceMatchingTarget(String target,
String appName,
String currentInstance,
List<String> referencedTargets) |
boolean |
isNamedSystemApplicationReferencedFrom(String appName,
String serverName) |
boolean |
isServer(String name) |
void |
setApplicationRoot(String value)
Sets the value of the applicationRoot property.
|
void |
setApplications(Applications value)
Sets the value of the system-applications property.
|
void |
setClusters(Clusters value)
Sets the value of the clusters property.
|
void |
setConfigs(Configs value)
Sets the value of the configs property.
|
void |
setDeploymentGroups(DeploymentGroups value)
Sets the value of the deployment groups property.
|
void |
setLocale(String value)
Sets the value of the locale property.
|
void |
setLogRoot(String value)
Sets the value of the logRoot property.
|
void |
setNodeAgents(NodeAgents value)
Sets the value of the nodeAgents property.
|
void |
setNodes(Nodes value)
Sets the value of the nodes property.
|
void |
setResources(Resources value)
Sets the value of the resources property.
|
void |
setSecureAdmin(SecureAdmin secureAdmin)
Sets the SecureAdmin value.
|
void |
setServers(Servers value)
Sets the value of the servers property.
|
void |
setSystemApplications(SystemApplications value)
Sets the value of the system-applications property.
|
addProperty, getProperty, getPropertyValue, getPropertyValue, lookupProperty, removeProperty, removeProperty
containsProperty, getPropertyValue, getSystemProperty, getSystemPropertyValue
createChild, deepCopy, getParent, getParent
static final String DOMAIN_NAME_PROPERTY
String getApplicationRoot()
String
void setApplicationRoot(String value) throws PropertyVetoException
value
- allowed object is String
PropertyVetoException
String getLogRoot()
String
void setLogRoot(String value) throws PropertyVetoException
value
- allowed object is String
PropertyVetoException
String getLocale()
String
void setLocale(String value) throws PropertyVetoException
value
- allowed object is String
PropertyVetoException
String getVersion()
SecureAdmin getSecureAdmin()
SecureAdmin
void setSecureAdmin(SecureAdmin secureAdmin)
secureAdmin
- @NotNull @NotNull Applications getApplications()
Applications
void setApplications(Applications value) throws PropertyVetoException
value
- allowed object is Applications
PropertyVetoException
@NotNull @NotNull SystemApplications getSystemApplications()
void setSystemApplications(SystemApplications value) throws PropertyVetoException
value
- allowed object is Applications
PropertyVetoException
@NotNull @NotNull Resources getResources()
Resources
void setResources(Resources value) throws PropertyVetoException
value
- allowed object is Resources
PropertyVetoException
@NotNull @NotNull Configs getConfigs()
Configs
void setConfigs(Configs value) throws PropertyVetoException
value
- allowed object is Configs
PropertyVetoException
@NotNull @NotNull Servers getServers()
Servers
void setServers(Servers value) throws PropertyVetoException
value
- allowed object is Servers
PropertyVetoException
@NotNull @NotNull Clusters getClusters()
Clusters
void setClusters(Clusters value) throws PropertyVetoException
value
- allowed object is Clusters
PropertyVetoException
@NotNull @NotNull DeploymentGroups getDeploymentGroups()
DeploymentGroups
void setDeploymentGroups(DeploymentGroups value) throws PropertyVetoException
value
- allowed object is DeploymentGroups
PropertyVetoException
void setNodes(Nodes value) throws PropertyVetoException
value
- allowed object is Nodes
PropertyVetoException
NodeAgents getNodeAgents()
NodeAgents
void setNodeAgents(NodeAgents value) throws PropertyVetoException
value
- allowed object is NodeAgents
PropertyVetoException
@ToDo(priority=IMPORTANT, details="Any more legal system properties?") @PropertiesDesc(systemProperties=true,props={@PropertyDesc(name="com.sun.aas.installRoot",description="Operating system dependent. Path to the directory where the server is installed"),@PropertyDesc(name="com.sun.aas.instanceRoot",description="Operating system dependent. Path to the top level directory for a server instance"),@PropertyDesc(name="com.sun.aas.hostName",description="Operating system dependent. Path to the name of the host (machine)"),@PropertyDesc(name="com.sun.aas.javaRoot",description="Operating system dependent. Path to the library directory for the Sun GlassFish Message Queue software"),@PropertyDesc(name="com.sun.aas.imqLib",description="Operating system dependent. Path to the installation directory for the Java runtime"),@PropertyDesc(name="com.sun.aas.imqLib",description="Operating system dependent. Path to the installation directory for the Java runtime"),@PropertyDesc(name="com.sun.aas.configName",defaultValue="server-config",description="Name of the <config> used by a server instance"),@PropertyDesc(name="com.sun.aas.instanceName",defaultValue="server1",description="Name of the server instance. Not used in the default configuration, but can be used to customize configuration"),@PropertyDesc(name="com.sun.aas.domainName",defaultValue="domain1",description="Name of the domain. Not used in the default configuration, but can be used to customize configuration")}) List<SystemProperty> getSystemProperty()
set
method for the systemProperty property.
For example, to add a new item, do as follows:
getSystemProperty().add(newItem);Objects of the following type(s) are allowed in the list
SystemProperty
getSystemProperty
in interface SystemPropertyBag
@ToDo(priority=IMPORTANT, details="Provide PropertyDesc for legal props") @PropertiesDesc(props={}) List<Property> getProperty()
PropertyBag
getProperty
in interface PropertyBag
List<DomainExtension> getExtensions()
@DuckTyped String getName()
@DuckTyped List<Application> getAllDefinedSystemApplications()
@DuckTyped ApplicationRef getApplicationRefInServer(String sn, String name)
@DuckTyped List<ApplicationRef> getApplicationRefsInServer(String sn)
@DuckTyped List<Application> getSystemApplicationsReferencedFrom(String sn)
sn
- the string denoting name of the server@DuckTyped Application getSystemApplicationReferencedFrom(String sn, String appName)
@DuckTyped boolean isNamedSystemApplicationReferencedFrom(String appName, String serverName)
@DuckTyped Server getServerNamed(String name)
@DuckTyped boolean isServer(String name)
@DuckTyped Config getConfigNamed(String name)
@DuckTyped Cluster getClusterNamed(String name)
@DuckTyped Node getNodeNamed(String name)
@DuckTyped boolean isCurrentInstanceMatchingTarget(String target, String appName, String currentInstance, List<String> referencedTargets)
@DuckTyped List<Server> getServersInTarget(String target)
@DuckTyped List<ApplicationRef> getApplicationRefsInTarget(String target)
@DuckTyped ApplicationRef getApplicationRefInTarget(String appName, String target)
@DuckTyped ApplicationRef getApplicationRefInTarget(String appName, String target, boolean includeInstances)
@DuckTyped boolean isAppRefEnabledInTarget(String appName, String target)
@DuckTyped boolean isAppEnabledInTarget(String appName, String target)
@DuckTyped boolean isAppReferencedByPaaSTarget(String appName)
@DuckTyped List<String> getAllReferencedTargetsForApplication(String appName)
@DuckTyped List<String> getAllTargets()
@DuckTyped List<String> getTargets(String tgt)
@DuckTyped List<Application> getApplicationsInTarget(String target)
@DuckTyped String getVirtualServersForApplication(String target, String appName)
@DuckTyped String getEnabledForApplication(String target, String appName)
@DuckTyped ReferenceContainer getReferenceContainerNamed(String name)
@DuckTyped Cluster getClusterForInstance(String instanceName)
@DuckTyped List<ReferenceContainer> getAllReferenceContainers()
@DuckTyped List<ReferenceContainer> getReferenceContainersOf(Config config)
@DuckTyped List<Server> getInstancesOnNode(String nodeName)
@DuckTyped List<Cluster> getClustersOnNode(String nodeName)
<T extends DomainExtension> T getExtensionByType(Class<T> type)
@DuckTyped <P extends ConfigBeanProxy> boolean checkIfExtensionExists(Class<P> configBeanType)
P
- Type that extends the ConfigBeanProxy which is the type of class we accept as parameterconfigBeanType
- The config bean type we want to check whether the configuration exists for it or not.@DuckTyped DeploymentGroup getDeploymentGroupNamed(String target)
@DuckTyped List<DeploymentGroup> getDeploymentGroupsForInstance(String namedInstance)
Copyright © 2021. All rights reserved.