Interface Domain
- All Superinterfaces:
org.jvnet.hk2.config.ConfigBeanProxy,ConfigLoader,org.jvnet.hk2.config.types.PropertyBag,SystemPropertyBag
public interface Domain
extends org.jvnet.hk2.config.ConfigBeanProxy, org.jvnet.hk2.config.types.PropertyBag, SystemPropertyBag, ConfigLoader
Top level Domain Element that includes applications, resources, configs, servers, clusters
and node-agents, load balancer configurations and load balancers.
Node-agents and load balancers are SE/EE related entities only.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault <P extends org.jvnet.hk2.config.ConfigBeanProxy>
booleancheckIfExtensionExists(Class<P> configBeanType) default List<Application>default List<org.glassfish.api.admin.config.ReferenceContainer>default ApplicationRefgetApplicationRefInServer(String serverName, String appName) default ApplicationRefgetApplicationRefInTarget(String appName, String target) default ApplicationRefgetApplicationRefInTarget(String appName, String target, boolean includeInstances) default List<ApplicationRef>getApplicationRefsInServer(String serverName) default List<ApplicationRef>getApplicationRefsInTarget(String target) default List<ApplicationRef>getApplicationRefsInTarget(String target, boolean includeInstances) Gets the value of theapplicationRootproperty.@NotNull ApplicationsGets the value of theapplicationsproperty.default List<Application>getApplicationsInTarget(String target) default ClustergetClusterForInstance(String instanceName) default ClustergetClusterNamed(String clusterName) @NotNull ClustersGets the value of theclustersproperty.getClustersOnNode(String nodeName) default ConfiggetConfigNamed(String configName) @NotNull ConfigsGets the value of theconfigsproperty.default StringgetEnabledForApplication(String target, String appName) <T extends DomainExtension>
TgetExtensionByType(Class<T> type) getInstancesOnNode(String nodeName) Gets the value of thelocaleproperty.Gets the value of thelogRootproperty.default StringgetName()Gets the value of thenodeAgentsproperty.default NodegetNodeNamed(String nodeName) getNodes()Gets the value of thenodesproperty.List<org.jvnet.hk2.config.types.Property>Properties as perPropertyBagdefault org.glassfish.api.admin.config.ReferenceContainergetReferenceContainerNamed(String containerName) default List<org.glassfish.api.admin.config.ReferenceContainer>getReferenceContainersOf(Config config) @NotNull ResourcesGets the value of theresourcesproperty.Gets theSecureAdminvalue defined in the domain.default ServergetServerNamed(String serverName) @NotNull ServersGets the value of theserversproperty.getServersInTarget(String target) default ApplicationgetSystemApplicationReferencedFrom(String serverName, String appName) @NotNull SystemApplicationsGets the value of thesystem-applicationsproperty.default List<Application>getSystemApplicationsReferencedFrom(String serverName) Returns the list of system-applications that are referenced from the given server.Gets the value of thesystemPropertyproperty.getTargets(String target) Gets the value of theversionproperty.default StringgetVirtualServersForApplication(String target, String appName) default booleanisAppEnabledInTarget(String appName, String target) default booleanisAppRefEnabledInTarget(String appName, String target) default booleanisAppReferencedByPaaSTarget(String appName) default booleanisCurrentInstanceMatchingTarget(String target, String appName, String currentInstance, List<String> referencedTargets) default booleanisNamedSystemApplicationReferencedFrom(String appName, String serverName) default booleanvoidsetApplicationRoot(String applicationRoot) Sets the value of theapplicationRootproperty.voidsetApplications(Applications applications) Sets the value of theapplicationsproperty.voidsetClusters(Clusters clusters) Sets the value of theclustersproperty.voidsetConfigs(Configs configs) Sets the value of theconfigsproperty.voidSets the value of thelocaleproperty.voidsetLogRoot(String logRoot) Sets the value of thelogRootproperty.voidsetNodeAgents(NodeAgents nodeAgents) Sets the value of thenodeAgentsproperty.voidSets the value of thenodesproperty.voidsetResources(Resources resources) Sets the value of theresourcesproperty.voidsetSecureAdmin(SecureAdmin secureAdmin) Sets theSecureAdminvalue.voidsetServers(Servers servers) Sets the value of theserversproperty.voidsetSystemApplications(SystemApplications systemApplications) Sets the value of thesystem-applicationsproperty.Methods inherited from interface org.jvnet.hk2.config.ConfigBeanProxy
createChild, deepCopy, getParent, getParentMethods inherited from interface org.jvnet.hk2.config.types.PropertyBag
addProperty, getProperty, getPropertyValue, getPropertyValue, lookupProperty, removeProperty, removePropertyMethods inherited from interface com.sun.enterprise.config.serverbeans.SystemPropertyBag
containsProperty, getSystemProperty, getSystemPropertyValue, getSystemPropertyValue
-
Field Details
-
DOMAIN_NAME_PROPERTY
- See Also:
-
-
Method Details
-
getApplicationRoot
String getApplicationRoot()Gets the value of theapplicationRootproperty.For PE this defines the location where applications are deployed
- Returns:
- possible object is
String
-
setApplicationRoot
Sets the value of theapplicationRootproperty.- Parameters:
applicationRoot- allowed object isString- Throws:
PropertyVetoException
-
getLogRoot
String getLogRoot()Gets the value of thelogRootproperty.Specifies where the server instance's log files are kept, including HTTP access logs, server logs, and transaction logs. Default is
$INSTANCE-ROOT/logs.- Returns:
- possible object is
String
-
setLogRoot
Sets the value of thelogRootproperty.- Parameters:
logRoot- allowed object isString- Throws:
PropertyVetoException
-
getLocale
String getLocale()Gets the value of thelocaleproperty.- Returns:
- possible object is
String
-
setLocale
Sets the value of thelocaleproperty.- Parameters:
locale- allowed object isString- Throws:
PropertyVetoException
-
getVersion
String getVersion()Gets the value of theversionproperty. It is read-only.Tools are not to depend on this property. It is only for reference.
- Returns:
- String representing version of the Domain.
-
getSecureAdmin
SecureAdmin getSecureAdmin()Gets theSecureAdminvalue defined in the domain.- Returns:
SecureAdmin
-
setSecureAdmin
Sets theSecureAdminvalue.- Parameters:
secureAdmin- the newSecuredAdminvalue
-
getApplications
Gets the value of theapplicationsproperty.- Returns:
- possible object is
Applications
-
setApplications
Sets the value of theapplicationsproperty.- Parameters:
applications- allowed object isApplications- Throws:
PropertyVetoException
-
getSystemApplications
Gets the value of thesystem-applicationsproperty.- Returns:
- possible object is
SystemApplications
-
setSystemApplications
Sets the value of thesystem-applicationsproperty.- Parameters:
systemApplications- allowed object isSystemApplications- Throws:
PropertyVetoException
-
getResources
Gets the value of theresourcesproperty.- Returns:
- possible object is
Resources
-
setResources
Sets the value of theresourcesproperty.- Parameters:
resources- allowed object isResources- Throws:
PropertyVetoException
-
getConfigs
Gets the value of theconfigsproperty.- Returns:
- possible object is
Configs
-
setConfigs
Sets the value of theconfigsproperty.- Parameters:
configs- allowed object isConfigs- Throws:
PropertyVetoException
-
getServers
Gets the value of theserversproperty.- Returns:
- possible object is
Servers
-
setServers
Sets the value of theserversproperty.- Parameters:
servers- allowed object isServers- Throws:
PropertyVetoException
-
getClusters
Gets the value of theclustersproperty.- Returns:
- possible object is
Clusters
-
setClusters
Sets the value of theclustersproperty.- Parameters:
clusters- allowed object isClusters- Throws:
PropertyVetoException
-
getNodes
Nodes getNodes()Gets the value of thenodesproperty.- Returns:
- possible object is
Nodes
-
setNodes
Sets the value of thenodesproperty.- Parameters:
nodes- allowed object isNodes- Throws:
PropertyVetoException
-
getNodeAgents
NodeAgents getNodeAgents()Gets the value of thenodeAgentsproperty.- Returns:
- possible object is
NodeAgents
-
setNodeAgents
Sets the value of thenodeAgentsproperty.- Parameters:
nodeAgents- allowed object isNodeAgents- Throws:
PropertyVetoException
-
getSystemProperty
@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()Gets the value of thesystemPropertyproperty.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for thesystemPropertyproperty.For example, to add a new item, do as follows:
getSystemProperty().add(newItem);
Objects of the following type(s) are allowed in the listSystemProperty- Specified by:
getSystemPropertyin interfaceSystemPropertyBag
-
getProperty
@ToDo(priority=IMPORTANT, details="Provide PropertyDesc for legal props") @PropertiesDesc(props={}) List<org.jvnet.hk2.config.types.Property> getProperty()Properties as perPropertyBag- Specified by:
getPropertyin interfaceorg.jvnet.hk2.config.types.PropertyBag
-
getExtensions
List<DomainExtension> getExtensions() -
getName
-
getAllDefinedSystemApplications
-
getApplicationRefInServer
-
getApplicationRefsInServer
-
getSystemApplicationsReferencedFrom
Returns the list of system-applications that are referenced from the given server. A server references an application, if the server has an element named<application-ref>in it that points to given application. The given server is a<server>element inside domain.- Parameters:
serverName- the string denoting name of the server- Returns:
- List of system-applications for that server, an empty list in case there is none
-
getSystemApplicationReferencedFrom
-
isNamedSystemApplicationReferencedFrom
-
getServerNamed
-
isServer
-
getConfigNamed
-
getClusterNamed
-
getNodeNamed
-
isCurrentInstanceMatchingTarget
-
getServersInTarget
-
getApplicationRefsInTarget
-
getApplicationRefsInTarget
-
getApplicationRefInTarget
-
getApplicationRefInTarget
default ApplicationRef getApplicationRefInTarget(String appName, String target, boolean includeInstances) -
isAppRefEnabledInTarget
-
isAppEnabledInTarget
-
isAppReferencedByPaaSTarget
-
getAllReferencedTargetsForApplication
-
getAllTargets
-
getTargets
-
getApplicationsInTarget
-
getVirtualServersForApplication
-
getEnabledForApplication
-
getReferenceContainerNamed
default org.glassfish.api.admin.config.ReferenceContainer getReferenceContainerNamed(String containerName) -
getClusterForInstance
-
getAllReferenceContainers
-
getReferenceContainersOf
-
getInstancesOnNode
-
getClustersOnNode
-
getExtensionByType
-
checkIfExtensionExists
default <P extends org.jvnet.hk2.config.ConfigBeanProxy> boolean checkIfExtensionExists(Class<P> configBeanType) - Type Parameters:
P- Type that extends the ConfigBeanProxy which is the type of class we accept as parameter- Parameters:
configBeanType- The config bean type we want to check whether the configuration exists for it or not.- Returns:
- true if configuration for the type exists in the target area of domain.xml and false if not.
-