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 Modifier and Type Interface Description static classDomain.Duck
-
Field Summary
Fields Modifier and Type Field Description static StringDOMAIN_NAME_PROPERTY
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <P extends org.jvnet.hk2.config.ConfigBeanProxy>
booleancheckIfExtensionExists(Class<P> configBeanType)List<Application>getAllDefinedSystemApplications()List<org.glassfish.api.admin.config.ReferenceContainer>getAllReferenceContainers()List<String>getAllReferencedTargetsForApplication(String appName)List<String>getAllTargets()ApplicationRefgetApplicationRefInServer(String sn, String name)ApplicationRefgetApplicationRefInTarget(String appName, String target)ApplicationRefgetApplicationRefInTarget(String appName, String target, boolean includeInstances)List<ApplicationRef>getApplicationRefsInServer(String sn)List<ApplicationRef>getApplicationRefsInTarget(String target)StringgetApplicationRoot()Gets the value of the applicationRoot property.@NotNull ApplicationsgetApplications()Gets the value of the applications property.List<Application>getApplicationsInTarget(String target)ClustergetClusterForInstance(String instanceName)ClustergetClusterNamed(String name)@NotNull ClustersgetClusters()Gets the value of the clusters property.List<Cluster>getClustersOnNode(String nodeName)ConfiggetConfigNamed(String name)@NotNull ConfigsgetConfigs()Gets the value of the configs property.StringgetEnabledForApplication(String target, String appName)<T extends DomainExtension>
TgetExtensionByType(Class<T> type)List<DomainExtension>getExtensions()List<Server>getInstancesOnNode(String nodeName)StringgetLocale()Gets the value of the locale property.StringgetLogRoot()Gets the value of the logRoot property.StringgetName()NodeAgentsgetNodeAgents()Gets the value of the nodeAgents property.NodegetNodeNamed(String name)NodesgetNodes()Gets the value of the nodes property.List<org.jvnet.hk2.config.types.Property>getProperty()Properties as perPropertyBagorg.glassfish.api.admin.config.ReferenceContainergetReferenceContainerNamed(String name)List<org.glassfish.api.admin.config.ReferenceContainer>getReferenceContainersOf(Config config)@NotNull ResourcesgetResources()Gets the value of the resources property.SecureAdmingetSecureAdmin()Gets the SecureAdmin value defined in the domain.ServergetServerNamed(String name)@NotNull ServersgetServers()Gets the value of the servers property.List<Server>getServersInTarget(String target)ApplicationgetSystemApplicationReferencedFrom(String sn, String appName)@NotNull SystemApplicationsgetSystemApplications()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)StringgetVersion()Gets the value of the version property.StringgetVirtualServersForApplication(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)booleanisServer(String name)voidsetApplicationRoot(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.voidsetLocale(String value)Sets 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.voidsetNodes(Nodes value)Sets 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.voidsetSystemApplications(SystemApplications value)Sets the value of the system-applications property.-
Methods inherited from interface org.jvnet.hk2.config.ConfigBeanProxy
createChild, deepCopy, getParent, getParent
-
Methods inherited from interface org.jvnet.hk2.config.types.PropertyBag
addProperty, getProperty, getPropertyValue, getPropertyValue, lookupProperty, removeProperty, removeProperty
-
Methods inherited from interface com.sun.enterprise.config.serverbeans.SystemPropertyBag
containsProperty, getPropertyValue, getSystemProperty, getSystemPropertyValue
-
-
-
-
Field Detail
-
DOMAIN_NAME_PROPERTY
static final String DOMAIN_NAME_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
void setApplicationRoot(String value) throws PropertyVetoException
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
void setLogRoot(String value) throws PropertyVetoException
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
void setLocale(String value) throws PropertyVetoException
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
void setSecureAdmin(SecureAdmin secureAdmin)
Sets the SecureAdmin value.- Parameters:
secureAdmin-
-
getApplications
@NotNull @NotNull Applications getApplications()
Gets the value of the applications property.- Returns:
- possible object is
Applications
-
setApplications
void setApplications(Applications value) throws PropertyVetoException
Sets the value of the system-applications property.- Parameters:
value- allowed object isApplications- Throws:
PropertyVetoException
-
getSystemApplications
@NotNull @NotNull SystemApplications getSystemApplications()
-
setSystemApplications
void setSystemApplications(SystemApplications value) throws PropertyVetoException
Sets the value of the system-applications property.- Parameters:
value- allowed object isApplications- Throws:
PropertyVetoException
-
getResources
@NotNull @NotNull Resources getResources()
Gets the value of the resources property.- Returns:
- possible object is
Resources
-
setResources
void setResources(Resources value) throws PropertyVetoException
Sets the value of the resources property.- Parameters:
value- allowed object isResources- Throws:
PropertyVetoException
-
getConfigs
@NotNull @NotNull Configs getConfigs()
Gets the value of the configs property.- Returns:
- possible object is
Configs
-
setConfigs
void setConfigs(Configs value) throws PropertyVetoException
Sets the value of the configs property.- Parameters:
value- allowed object isConfigs- Throws:
PropertyVetoException
-
getServers
@NotNull @NotNull Servers getServers()
Gets the value of the servers property.- Returns:
- possible object is
Servers
-
setServers
void setServers(Servers value) throws PropertyVetoException
Sets the value of the servers property.- Parameters:
value- allowed object isServers- Throws:
PropertyVetoException
-
getClusters
@NotNull @NotNull Clusters getClusters()
Gets the value of the clusters property.- Returns:
- possible object is
Clusters
-
setClusters
void setClusters(Clusters value) throws PropertyVetoException
Sets the value of the clusters property.- Parameters:
value- allowed object isClusters- Throws:
PropertyVetoException
-
setNodes
void setNodes(Nodes value) throws PropertyVetoException
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
void setNodeAgents(NodeAgents value) throws PropertyVetoException
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
@DuckTyped String getName()
-
getAllDefinedSystemApplications
@DuckTyped List<Application> getAllDefinedSystemApplications()
-
getApplicationRefInServer
@DuckTyped ApplicationRef getApplicationRefInServer(String sn, String name)
-
getApplicationRefsInServer
@DuckTyped List<ApplicationRef> getApplicationRefsInServer(String sn)
-
getSystemApplicationsReferencedFrom
@DuckTyped List<Application> getSystemApplicationsReferencedFrom(String sn)
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
@DuckTyped Application getSystemApplicationReferencedFrom(String sn, String appName)
-
isNamedSystemApplicationReferencedFrom
@DuckTyped boolean isNamedSystemApplicationReferencedFrom(String appName, String serverName)
-
isServer
@DuckTyped boolean isServer(String name)
-
isCurrentInstanceMatchingTarget
@DuckTyped boolean isCurrentInstanceMatchingTarget(String target, String appName, String currentInstance, List<String> referencedTargets)
-
getApplicationRefsInTarget
@DuckTyped List<ApplicationRef> getApplicationRefsInTarget(String target)
-
getApplicationRefInTarget
@DuckTyped ApplicationRef getApplicationRefInTarget(String appName, String target)
-
getApplicationRefInTarget
@DuckTyped ApplicationRef getApplicationRefInTarget(String appName, String target, boolean includeInstances)
-
isAppReferencedByPaaSTarget
@DuckTyped boolean isAppReferencedByPaaSTarget(String appName)
-
getAllReferencedTargetsForApplication
@DuckTyped List<String> getAllReferencedTargetsForApplication(String appName)
-
getApplicationsInTarget
@DuckTyped List<Application> getApplicationsInTarget(String target)
-
getVirtualServersForApplication
@DuckTyped String getVirtualServersForApplication(String target, String appName)
-
getReferenceContainerNamed
@DuckTyped org.glassfish.api.admin.config.ReferenceContainer getReferenceContainerNamed(String name)
-
getAllReferenceContainers
@DuckTyped List<org.glassfish.api.admin.config.ReferenceContainer> getAllReferenceContainers()
-
getReferenceContainersOf
@DuckTyped List<org.glassfish.api.admin.config.ReferenceContainer> getReferenceContainersOf(Config config)
-
getExtensionByType
<T extends DomainExtension> T getExtensionByType(Class<T> type)
-
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.
-
-