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
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription<P extends org.jvnet.hk2.config.ConfigBeanProxy>
booleancheckIfExtensionExists(Class<P> configBeanType) List<org.glassfish.api.admin.config.ReferenceContainer>getApplicationRefInServer(String sn, String name) getApplicationRefInTarget(String appName, String target) getApplicationRefInTarget(String appName, String target, boolean includeInstances) getApplicationRefsInTarget(String target) Gets the value of the applicationRoot property.@NotNull ApplicationsGets the value of the applications property.getApplicationsInTarget(String target) getClusterForInstance(String instanceName) getClusterNamed(String name) @NotNull ClustersGets the value of the clusters property.getClustersOnNode(String nodeName) getConfigNamed(String name) @NotNull ConfigsGets the value of the configs property.getEnabledForApplication(String target, String appName) <T extends DomainExtension>
TgetExtensionByType(Class<T> type) getInstancesOnNode(String nodeName) Gets the value of the locale property.Gets the value of the logRoot property.getName()Gets the value of the nodeAgents property.getNodeNamed(String name) getNodes()Gets the value of the nodes property.List<org.jvnet.hk2.config.types.Property>Properties as perPropertyBagorg.glassfish.api.admin.config.ReferenceContainerList<org.glassfish.api.admin.config.ReferenceContainer>getReferenceContainersOf(Config config) @NotNull ResourcesGets the value of the resources property.Gets the SecureAdmin value defined in the domain.getServerNamed(String name) @NotNull ServersGets the value of the servers property.getServersInTarget(String target) getSystemApplicationReferencedFrom(String sn, String appName) @NotNull SystemApplicationsReturns the list of system-applications that are referenced from the given server.Gets the value of the systemProperty property.getTargets(String tgt) Gets the value of the version property.getVirtualServersForApplication(String target, String appName) booleanisAppEnabledInTarget(String appName, String target) booleanisAppRefEnabledInTarget(String appName, String target) booleanisAppReferencedByPaaSTarget(String appName) booleanisCurrentInstanceMatchingTarget(String target, String appName, String currentInstance, List<String> referencedTargets) booleanisNamedSystemApplicationReferencedFrom(String appName, String serverName) booleanvoidsetApplicationRoot(String value) Sets the value of the applicationRoot property.voidsetApplications(Applications value) Sets the value of the system-applications property.voidsetClusters(Clusters value) Sets the value of the clusters property.voidsetConfigs(Configs value) Sets the value of the configs property.voidSets the value of the locale property.voidsetLogRoot(String value) Sets the value of the logRoot property.voidsetNodeAgents(NodeAgents value) Sets the value of the nodeAgents property.voidSets the value of the nodes property.voidsetResources(Resources value) Sets the value of the resources property.voidsetSecureAdmin(SecureAdmin secureAdmin) Sets the SecureAdmin value.voidsetServers(Servers value) Sets the value of the servers property.voidSets the value of the system-applications property.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, getPropertyValue, getSystemProperty, getSystemPropertyValue
-
Field Details
-
DOMAIN_NAME_PROPERTY
- See Also:
-
-
Method Details
-
getApplicationRoot
String getApplicationRoot()Gets the value of the applicationRoot property. For PE this defines the location where applications are deployed- Returns:
- possible object is
String
-
setApplicationRoot
Sets the value of the applicationRoot property.- Parameters:
value- allowed object isString- Throws:
PropertyVetoException
-
getLogRoot
String getLogRoot()Gets the value of the logRoot property. 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 the logRoot property.- Parameters:
value- allowed object isString- Throws:
PropertyVetoException
-
getLocale
String getLocale()Gets the value of the locale property.- Returns:
- possible object is
String
-
setLocale
Sets the value of the locale property.- Parameters:
value- allowed object isString- Throws:
PropertyVetoException
-
getVersion
String getVersion()Gets the value of the version property. 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 the SecureAdmin value defined in the domain.- Returns:
SecureAdmin
-
setSecureAdmin
Sets the SecureAdmin value.- Parameters:
secureAdmin-
-
getApplications
Gets the value of the applications property.- Returns:
- possible object is
Applications
-
setApplications
Sets the value of the system-applications property.- Parameters:
value- allowed object isApplications- Throws:
PropertyVetoException
-
getSystemApplications
-
setSystemApplications
Sets the value of the system-applications property.- Parameters:
value- allowed object isApplications- Throws:
PropertyVetoException
-
getResources
Gets the value of the resources property.- Returns:
- possible object is
Resources
-
setResources
Sets the value of the resources property.- Parameters:
value- allowed object isResources- Throws:
PropertyVetoException
-
getConfigs
Gets the value of the configs property.- Returns:
- possible object is
Configs
-
setConfigs
Sets the value of the configs property.- Parameters:
value- allowed object isConfigs- Throws:
PropertyVetoException
-
getServers
Gets the value of the servers property.- Returns:
- possible object is
Servers
-
setServers
Sets the value of the servers property.- Parameters:
value- allowed object isServers- Throws:
PropertyVetoException
-
getClusters
Gets the value of the clusters property.- Returns:
- possible object is
Clusters
-
setClusters
Sets the value of the clusters property.- Parameters:
value- allowed object isClusters- Throws:
PropertyVetoException
-
getNodes
Nodes getNodes()Gets the value of the nodes property.- Returns:
- possible object is
Nodes
-
setNodes
Sets the value of the nodes property.- Parameters:
value- allowed object isNodes- Throws:
PropertyVetoException
-
getNodeAgents
NodeAgents getNodeAgents()Gets the value of the nodeAgents property.- Returns:
- possible object is
NodeAgents
-
setNodeAgents
Sets the value of the nodeAgents property.- Parameters:
value- 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 the systemProperty property. 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 asetmethod 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 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:
sn- 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
-
getApplicationRefInTarget
-
getApplicationRefInTarget
@DuckTyped ApplicationRef getApplicationRefInTarget(String appName, String target, boolean includeInstances) -
isAppRefEnabledInTarget
-
isAppEnabledInTarget
-
isAppReferencedByPaaSTarget
-
getAllReferencedTargetsForApplication
-
getAllTargets
-
getTargets
-
getApplicationsInTarget
-
getVirtualServersForApplication
-
getEnabledForApplication
-
getReferenceContainerNamed
@DuckTyped org.glassfish.api.admin.config.ReferenceContainer getReferenceContainerNamed(String name) -
getClusterForInstance
-
getAllReferenceContainers
-
getReferenceContainersOf
-
getInstancesOnNode
-
getClustersOnNode
-
getExtensionByType
-
checkIfExtensionExists
@DuckTyped <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.
-