com.sun.enterprise.config.serverbeans
Interface Domain

All Superinterfaces:
org.jvnet.hk2.config.ConfigBeanProxy, org.jvnet.hk2.component.Injectable, org.jvnet.hk2.config.types.PropertyBag, SystemPropertyBag

public interface Domain
extends org.jvnet.hk2.config.ConfigBeanProxy, org.jvnet.hk2.component.Injectable, org.jvnet.hk2.config.types.PropertyBag, SystemPropertyBag


Nested Class Summary
static class Domain.Duck
           
 
Field Summary
static java.lang.String DOMAIN_NAME_PROPERTY
           
 
Method Summary
 java.util.List<Application> getAllDefinedSystemApplications()
           
 java.util.List<ReferenceContainer> getAllReferenceContainers()
           
 java.util.List<java.lang.String> getAllReferencedTargetsForApplication(java.lang.String appName)
           
 java.util.List<java.lang.String> getAllTargets()
           
 AmxPref getAmxPref()
           
 ApplicationRef getApplicationRefInServer(java.lang.String sn, java.lang.String name)
           
 ApplicationRef getApplicationRefInTarget(java.lang.String appName, java.lang.String target)
           
 ApplicationRef getApplicationRefInTarget(java.lang.String appName, java.lang.String target, boolean includeInstances)
           
 java.util.List<ApplicationRef> getApplicationRefsInServer(java.lang.String sn)
           
 java.util.List<ApplicationRef> getApplicationRefsInTarget(java.lang.String target)
           
 java.lang.String getApplicationRoot()
          Gets the value of the applicationRoot property.
 Applications getApplications()
          Gets the value of the applications property.
 java.util.List<Application> getApplicationsInTarget(java.lang.String target)
           
 Cluster getClusterForInstance(java.lang.String instanceName)
           
 Cluster getClusterNamed(java.lang.String name)
           
 Clusters getClusters()
          Gets the value of the clusters property.
 java.util.List<Cluster> getClustersOnNode(java.lang.String nodeName)
           
 Config getConfigNamed(java.lang.String name)
           
 Configs getConfigs()
          Gets the value of the configs property.
 java.lang.String getEnabledForApplication(java.lang.String target, java.lang.String appName)
           
 java.util.List<Server> getInstancesOnNode(java.lang.String nodeName)
           
 LbConfigs getLbConfigs()
          Gets the value of the lbConfigs property.
 LoadBalancers getLoadBalancers()
          Gets the value of the loadBalancers property.
 java.lang.String getLocale()
          Gets the value of the locale property.
 java.lang.String getLogRoot()
          Gets the value of the logRoot property.
 java.lang.String getName()
           
 NodeAgents getNodeAgents()
          Gets the value of the nodeAgents property.
 Node getNodeNamed(java.lang.String name)
           
 Nodes getNodes()
          Gets the value of the nodes property.
 java.util.List<org.jvnet.hk2.config.types.Property> getProperty()
          Properties as per PropertyBag
 ReferenceContainer getReferenceContainerNamed(java.lang.String name)
           
 java.util.List<ReferenceContainer> getReferenceContainersOf(Config config)
           
 Resources getResources()
          Gets the value of the resources property.
 SecureAdmin getSecureAdmin()
          Gets the SecureAdmin value defined in the domain.
 Server getServerNamed(java.lang.String name)
           
 Servers getServers()
          Gets the value of the servers property.
 java.util.List<Server> getServersInTarget(java.lang.String target)
           
 Application getSystemApplicationReferencedFrom(java.lang.String sn, java.lang.String appName)
           
 SystemApplications getSystemApplications()
           
 java.util.List<Application> getSystemApplicationsReferencedFrom(java.lang.String sn)
          Returns the list of system-applications that are referenced from the given server.
 java.util.List<SystemProperty> getSystemProperty()
          Gets the value of the systemProperty property.
 java.lang.String getVersion()
          Gets the value of the version property.
 java.lang.String getVirtualServersForApplication(java.lang.String target, java.lang.String appName)
           
 boolean isAppEnabledInTarget(java.lang.String appName, java.lang.String target)
           
 boolean isAppRefEnabledInTarget(java.lang.String appName, java.lang.String target)
           
 boolean isCurrentInstanceMatchingTarget(java.lang.String target, java.lang.String appName, java.lang.String currentInstance, java.util.List<java.lang.String> referencedTargets)
           
 boolean isNamedSystemApplicationReferencedFrom(java.lang.String appName, java.lang.String serverName)
           
 boolean isServer(java.lang.String name)
           
 void setAmxPref(AmxPref amxPrefs)
           
 void setApplicationRoot(java.lang.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 setLbConfigs(LbConfigs value)
          Sets the value of the lbConfigs property.
 void setLoadBalancers(LoadBalancers value)
          Sets the value of the loadBalancers property.
 void setLocale(java.lang.String value)
          Sets the value of the locale property.
 void setLogRoot(java.lang.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.
 
Methods inherited from interface org.jvnet.hk2.component.Injectable
injectedInto
 
Methods inherited from interface org.jvnet.hk2.config.types.PropertyBag
getProperty, getPropertyValue, getPropertyValue
 
Methods inherited from interface com.sun.enterprise.config.serverbeans.SystemPropertyBag
containsProperty, getPropertyValue, getSystemProperty, getSystemPropertyValue
 
Methods inherited from interface org.jvnet.hk2.config.ConfigBeanProxy
createChild, deepCopy, getParent, getParent
 

Field Detail

DOMAIN_NAME_PROPERTY

static final java.lang.String DOMAIN_NAME_PROPERTY
See Also:
Constant Field Values
Method Detail

getApplicationRoot

java.lang.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(java.lang.String value)
                        throws java.beans.PropertyVetoException
Sets the value of the applicationRoot property.

Parameters:
value - allowed object is String
Throws:
java.beans.PropertyVetoException

getLogRoot

java.lang.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(java.lang.String value)
                throws java.beans.PropertyVetoException
Sets the value of the logRoot property.

Parameters:
value - allowed object is String
Throws:
java.beans.PropertyVetoException

getLocale

java.lang.String getLocale()
Gets the value of the locale property.

Returns:
possible object is String

setLocale

void setLocale(java.lang.String value)
               throws java.beans.PropertyVetoException
Sets the value of the locale property.

Parameters:
value - allowed object is String
Throws:
java.beans.PropertyVetoException

getVersion

java.lang.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
Applications getApplications()
Gets the value of the applications property.

Returns:
possible object is Applications

setApplications

void setApplications(Applications value)
                     throws java.beans.PropertyVetoException
Sets the value of the system-applications property.

Parameters:
value - allowed object is Applications
Throws:
java.beans.PropertyVetoException

getSystemApplications

@NotNull
SystemApplications getSystemApplications()

setSystemApplications

void setSystemApplications(SystemApplications value)
                           throws java.beans.PropertyVetoException
Sets the value of the system-applications property.

Parameters:
value - allowed object is Applications
Throws:
java.beans.PropertyVetoException

getResources

@NotNull
Resources getResources()
Gets the value of the resources property.

Returns:
possible object is Resources

setResources

void setResources(Resources value)
                  throws java.beans.PropertyVetoException
Sets the value of the resources property.

Parameters:
value - allowed object is Resources
Throws:
java.beans.PropertyVetoException

getConfigs

@NotNull
Configs getConfigs()
Gets the value of the configs property.

Returns:
possible object is Configs

setConfigs

void setConfigs(Configs value)
                throws java.beans.PropertyVetoException
Sets the value of the configs property.

Parameters:
value - allowed object is Configs
Throws:
java.beans.PropertyVetoException

getServers

@NotNull
Servers getServers()
Gets the value of the servers property.

Returns:
possible object is Servers

setServers

void setServers(Servers value)
                throws java.beans.PropertyVetoException
Sets the value of the servers property.

Parameters:
value - allowed object is Servers
Throws:
java.beans.PropertyVetoException

getClusters

@NotNull
Clusters getClusters()
Gets the value of the clusters property.

Returns:
possible object is Clusters

setClusters

void setClusters(Clusters value)
                 throws java.beans.PropertyVetoException
Sets the value of the clusters property.

Parameters:
value - allowed object is Clusters
Throws:
java.beans.PropertyVetoException

getNodes

Nodes getNodes()
Gets the value of the nodes property.

Returns:
possible object is Nodes

setNodes

void setNodes(Nodes value)
              throws java.beans.PropertyVetoException
Sets the value of the nodes property.

Parameters:
value - allowed object is Nodes
Throws:
java.beans.PropertyVetoException

getNodeAgents

NodeAgents getNodeAgents()
Gets the value of the nodeAgents property.

Returns:
possible object is NodeAgents

setNodeAgents

void setNodeAgents(NodeAgents value)
                   throws java.beans.PropertyVetoException
Sets the value of the nodeAgents property.

Parameters:
value - allowed object is NodeAgents
Throws:
java.beans.PropertyVetoException

getLbConfigs

@NotNull
LbConfigs getLbConfigs()
Gets the value of the lbConfigs property.

Returns:
possible object is LbConfigs

setLbConfigs

void setLbConfigs(LbConfigs value)
                  throws java.beans.PropertyVetoException
Sets the value of the lbConfigs property.

Parameters:
value - allowed object is LbConfigs
Throws:
java.beans.PropertyVetoException

getLoadBalancers

@NotNull
LoadBalancers getLoadBalancers()
Gets the value of the loadBalancers property.

Returns:
possible object is LoadBalancers

setLoadBalancers

void setLoadBalancers(LoadBalancers value)
                      throws java.beans.PropertyVetoException
Sets the value of the loadBalancers property.

Parameters:
value - allowed object is LoadBalancers
Throws:
java.beans.PropertyVetoException

getAmxPref

AmxPref getAmxPref()

setAmxPref

void setAmxPref(AmxPref amxPrefs)
                throws java.beans.PropertyVetoException
Throws:
java.beans.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  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")})
java.util.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 a 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

Specified by:
getSystemProperty in interface SystemPropertyBag

getProperty

@ToDo(priority=IMPORTANT,
      details="Provide PropertyDesc for legal props")
@PropertiesDesc(props={})
java.util.List<org.jvnet.hk2.config.types.Property> getProperty()
Properties as per PropertyBag

Specified by:
getProperty in interface org.jvnet.hk2.config.types.PropertyBag

getName

@DuckTyped
java.lang.String getName()

getAllDefinedSystemApplications

@DuckTyped
java.util.List<Application> getAllDefinedSystemApplications()

getApplicationRefInServer

@DuckTyped
ApplicationRef getApplicationRefInServer(java.lang.String sn,
                                                   java.lang.String name)

getApplicationRefsInServer

@DuckTyped
java.util.List<ApplicationRef> getApplicationRefsInServer(java.lang.String sn)

getSystemApplicationsReferencedFrom

@DuckTyped
java.util.List<Application> getSystemApplicationsReferencedFrom(java.lang.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(java.lang.String sn,
                                                         java.lang.String appName)

isNamedSystemApplicationReferencedFrom

@DuckTyped
boolean isNamedSystemApplicationReferencedFrom(java.lang.String appName,
                                                         java.lang.String serverName)

getServerNamed

@DuckTyped
Server getServerNamed(java.lang.String name)

isServer

@DuckTyped
boolean isServer(java.lang.String name)

getConfigNamed

@DuckTyped
Config getConfigNamed(java.lang.String name)

getClusterNamed

@DuckTyped
Cluster getClusterNamed(java.lang.String name)

getNodeNamed

@DuckTyped
Node getNodeNamed(java.lang.String name)

isCurrentInstanceMatchingTarget

@DuckTyped
boolean isCurrentInstanceMatchingTarget(java.lang.String target,
                                                  java.lang.String appName,
                                                  java.lang.String currentInstance,
                                                  java.util.List<java.lang.String> referencedTargets)

getServersInTarget

@DuckTyped
java.util.List<Server> getServersInTarget(java.lang.String target)

getApplicationRefsInTarget

@DuckTyped
java.util.List<ApplicationRef> getApplicationRefsInTarget(java.lang.String target)

getApplicationRefInTarget

@DuckTyped
ApplicationRef getApplicationRefInTarget(java.lang.String appName,
                                                   java.lang.String target)

getApplicationRefInTarget

@DuckTyped
ApplicationRef getApplicationRefInTarget(java.lang.String appName,
                                                   java.lang.String target,
                                                   boolean includeInstances)

isAppRefEnabledInTarget

@DuckTyped
boolean isAppRefEnabledInTarget(java.lang.String appName,
                                          java.lang.String target)

isAppEnabledInTarget

@DuckTyped
boolean isAppEnabledInTarget(java.lang.String appName,
                                       java.lang.String target)

getAllReferencedTargetsForApplication

@DuckTyped
java.util.List<java.lang.String> getAllReferencedTargetsForApplication(java.lang.String appName)

getAllTargets

@DuckTyped
java.util.List<java.lang.String> getAllTargets()

getApplicationsInTarget

@DuckTyped
java.util.List<Application> getApplicationsInTarget(java.lang.String target)

getVirtualServersForApplication

@DuckTyped
java.lang.String getVirtualServersForApplication(java.lang.String target,
                                                           java.lang.String appName)

getEnabledForApplication

@DuckTyped
java.lang.String getEnabledForApplication(java.lang.String target,
                                                    java.lang.String appName)

getReferenceContainerNamed

@DuckTyped
ReferenceContainer getReferenceContainerNamed(java.lang.String name)

getClusterForInstance

@DuckTyped
Cluster getClusterForInstance(java.lang.String instanceName)

getAllReferenceContainers

@DuckTyped
java.util.List<ReferenceContainer> getAllReferenceContainers()

getReferenceContainersOf

@DuckTyped
java.util.List<ReferenceContainer> getReferenceContainersOf(Config config)

getInstancesOnNode

@DuckTyped
java.util.List<Server> getInstancesOnNode(java.lang.String nodeName)

getClustersOnNode

@DuckTyped
java.util.List<Cluster> getClustersOnNode(java.lang.String nodeName)


Copyright © 2012 GlassFish Community. All Rights Reserved.