Interface Config
- All Superinterfaces:
org.jvnet.hk2.config.ConfigBeanProxy,ConfigLoader,org.glassfish.api.admin.config.Named,jakarta.validation.Payload,org.jvnet.hk2.config.types.PropertyBag,RefContainer,SystemPropertyBag
public interface Config
extends org.glassfish.api.admin.config.Named, org.jvnet.hk2.config.types.PropertyBag, SystemPropertyBag, jakarta.validation.Payload, ConfigLoader, org.jvnet.hk2.config.ConfigBeanProxy, RefContainer
The configuration defines the configuration of a server instance that can be shared by other server instances.
The availability-service and are SE/EE only
-
Method Summary
Modifier and TypeMethodDescriptiondefault voiddefault <P extends org.glassfish.api.admin.config.ConfigExtension>
booleancheckIfExtensionExists(Class<P> configBeanType) default voidcreateResourceRef(String enabled, org.glassfish.api.naming.SimpleJndiName refName) default voiddeleteResourceRef(org.glassfish.api.naming.SimpleJndiName refName) default org.glassfish.grizzly.config.dom.NetworkListenerGets the value of theadminServiceproperty.@NotNull AvailabilityServiceGets the value of theavailabilityServiceproperty.List<org.glassfish.api.admin.config.Container> Get the configuration for other types of containers.Gets the value of thediagnosticServiceproperty.Gets the value of thedynamicReconfigurationEnabledproperty.<T extends org.glassfish.api.admin.config.ConfigExtension>
TgetExtensionByType(Class<T> type) Return an extension configuration given the extension type.List<org.glassfish.api.admin.config.ConfigExtension> @NotNull GroupManagementServiceGets the value of thegroupManagementServiceproperty.Gets the value of thehttpServiceproperty.Gets the value of thejavaConfigproperty.Gets the value of thelogServiceproperty.@NotNull MonitoringServiceGets the value of themonitoringServiceproperty.@NotNull @Pattern(regexp="[A-Za-z0-9_][A-Za-z0-9\\-_\\.;]*",message="{config.invalid.name}",payload=Config.class) StringgetName()Name of the configured objectorg.glassfish.grizzly.config.dom.NetworkConfigGets the value of thenetworkConfigproperty.List<org.jvnet.hk2.config.types.Property> Properties as perPropertyBagdefault ResourceRefgetResourceRef(org.glassfish.api.naming.SimpleJndiName refName) Gets the value of thesecurityServiceproperty.Gets the value of thesystemPropertyproperty.Gets the value of thethreadPoolsproperty.default booleanisDas()default booleanisResourceRefExists(org.glassfish.api.naming.SimpleJndiName refName) voidsetAdminService(AdminService adminService) Sets the value of theadminServiceproperty.voidsetAvailabilityService(AvailabilityService availabilityService) Sets the value of theavailabilityServiceproperty.voidsetDiagnosticService(DiagnosticService diagnosticService) Sets the value of thediagnosticServiceproperty.voidsetDynamicReconfigurationEnabled(String reconfigurationEnabled) Sets the value of thedynamicReconfigurationEnabledproperty.voidsetGroupManagementService(GroupManagementService groupManagementService) Sets the value of thegroupManagementServiceproperty.voidsetHttpService(HttpService httpService) Sets the value of thehttpServiceproperty.voidsetJavaConfig(JavaConfig javaConfig) Sets the value of thejavaConfigproperty.default StringsetLoggingProperty(String property, String value) voidsetLogService(LogService logService) Sets the value of thelogServiceproperty.voidsetMonitoringService(MonitoringService monitoringService) Sets the value of themonitoringServiceproperty.voidvoidsetNetworkConfig(org.glassfish.grizzly.config.dom.NetworkConfig networkConfig) Sets the value of thenetworkConfigproperty.voidsetSecurityService(SecurityService securityService) Sets the value of thesecurityServiceproperty.voidsetThreadPools(ThreadPools threadPools) Sets the value of thethreadPoolsproperty.updateLoggingProperties(Map<String, String> properties) 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.RefContainer
getApplicationRef, getApplicationRefNames, getResourceRef, getResourceRefNamesMethods inherited from interface com.sun.enterprise.config.serverbeans.SystemPropertyBag
containsProperty, getSystemProperty, getSystemPropertyValue, getSystemPropertyValue
-
Method Details
-
getName
@NotNull @Pattern(regexp="[A-Za-z0-9_][A-Za-z0-9\\-_\\.;]*", message="{config.invalid.name}", payload=Config.class) @NotNull @Pattern(regexp="[A-Za-z0-9_][A-Za-z0-9\\-_\\.;]*",message="{config.invalid.name}",payload=Config.class) String getName()Name of the configured object- Specified by:
getNamein interfaceorg.glassfish.api.admin.config.Named- Returns:
- name of the configured object FIXME: should set 'key=true'. See bugs 6039, 6040
-
setName
- Specified by:
setNamein interfaceorg.glassfish.api.admin.config.Named- Throws:
PropertyVetoException
-
getDynamicReconfigurationEnabled
String getDynamicReconfigurationEnabled()Gets the value of thedynamicReconfigurationEnabledproperty.When set to
truethen any changes to the system (e.g. applications deployed, resources created) will be automatically applied to the affected servers without a restart being required. When set tofalsesuch changes will only be picked up by the affected servers when each server restarts.- Returns:
- possible object is
String
-
setDynamicReconfigurationEnabled
Sets the value of thedynamicReconfigurationEnabledproperty.- Parameters:
reconfigurationEnabled- allowed object isString- Throws:
PropertyVetoException
-
getNetworkConfig
org.glassfish.grizzly.config.dom.NetworkConfig getNetworkConfig()Gets the value of thenetworkConfigproperty.- Returns:
- possible object is
NetworkConfig
-
setNetworkConfig
void setNetworkConfig(org.glassfish.grizzly.config.dom.NetworkConfig networkConfig) throws PropertyVetoException Sets the value of thenetworkConfigproperty.- Parameters:
networkConfig- allowed object isNetworkConfig- Throws:
PropertyVetoException
-
getHttpService
HttpService getHttpService()Gets the value of thehttpServiceproperty.- Returns:
- possible object is
HttpService
-
setHttpService
Sets the value of thehttpServiceproperty.- Parameters:
httpService- allowed object isHttpService- Throws:
PropertyVetoException
-
getAdminService
AdminService getAdminService()Gets the value of theadminServiceproperty.- Returns:
- possible object is
AdminService
-
setAdminService
Sets the value of theadminServiceproperty.- Parameters:
adminService- allowed object isAdminService- Throws:
PropertyVetoException
-
getLogService
LogService getLogService()Gets the value of thelogServiceproperty.- Returns:
- possible object is
LogService
-
setLogService
Sets the value of thelogServiceproperty.- Parameters:
logService- allowed object isLogService- Throws:
PropertyVetoException
-
getSecurityService
SecurityService getSecurityService()Gets the value of thesecurityServiceproperty.- Returns:
- possible object is
SecurityService
-
setSecurityService
Sets the value of thesecurityServiceproperty.- Parameters:
securityService- allowed object isSecurityService- Throws:
PropertyVetoException
-
getMonitoringService
Gets the value of themonitoringServiceproperty.- Returns:
- possible object is
MonitoringService
-
setMonitoringService
Sets the value of themonitoringServiceproperty.- Parameters:
monitoringService- allowed object isMonitoringService- Throws:
PropertyVetoException
-
getDiagnosticService
DiagnosticService getDiagnosticService()Gets the value of thediagnosticServiceproperty.- Returns:
- possible object is
DiagnosticService
-
setDiagnosticService
Sets the value of thediagnosticServiceproperty.- Parameters:
diagnosticService- allowed object isDiagnosticService- Throws:
PropertyVetoException
-
getJavaConfig
JavaConfig getJavaConfig()Gets the value of thejavaConfigproperty.- Returns:
- possible object is
JavaConfig
-
setJavaConfig
Sets the value of thejavaConfigproperty.- Parameters:
javaConfig- allowed object isJavaConfig- Throws:
PropertyVetoException
-
getAvailabilityService
Gets the value of theavailabilityServiceproperty.- Returns:
- possible object is
AvailabilityService
-
setAvailabilityService
Sets the value of theavailabilityServiceproperty.- Parameters:
availabilityService- allowed object isAvailabilityService- Throws:
PropertyVetoException
-
getThreadPools
ThreadPools getThreadPools()Gets the value of thethreadPoolsproperty.- Returns:
- possible object is
ThreadPools
-
setThreadPools
Sets the value of thethreadPoolsproperty.- Parameters:
threadPools- allowed object isThreadPools- Throws:
PropertyVetoException
-
getGroupManagementService
Gets the value of thegroupManagementServiceproperty.- Returns:
- possible object is
GroupManagementService
-
setGroupManagementService
void setGroupManagementService(GroupManagementService groupManagementService) throws PropertyVetoException Sets the value of thegroupManagementServiceproperty.- Parameters:
groupManagementService- allowed object isGroupManagementService- Throws:
PropertyVetoException
-
getSystemProperty
@ToDo(priority=IMPORTANT, details="Any more legal system properties?") @PropertiesDesc(systemProperties=true,props={@PropertyDesc(name="HTTP_LISTENER_PORT",defaultValue="8080",dataType=Port.class),@PropertyDesc(name="HTTP_SSL_LISTENER_PORT",defaultValue="1043",dataType=Port.class),@PropertyDesc(name="HTTP_ADMIN_LISTENER_PORT",defaultValue="4848",dataType=Port.class),@PropertyDesc(name="IIOP_LISTENER_PORT",defaultValue="3700",dataType=Port.class),@PropertyDesc(name="IIOP_SSL_LISTENER_PORT",defaultValue="1060",dataType=Port.class),@PropertyDesc(name="IIOP_SSL_MUTUALAUTH_PORT",defaultValue="1061",dataType=Port.class),@PropertyDesc(name="JMX_SYSTEM_CONNECTOR_PORT",defaultValue="8686",dataType=Port.class)}) 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 list
SystemProperty- Specified by:
getSystemPropertyin interfaceSystemPropertyBag
-
getLoggingProperties
-
setLoggingProperty
-
updateLoggingProperties
-
getAdminListener
default org.glassfish.grizzly.config.dom.NetworkListener getAdminListener() -
getExtensionByType
Return an extension configuration given the extension type.- Type Parameters:
T- interface subclassing theConfigExtensiontype- Parameters:
type- type of the requested extension configuration- Returns:
- a configuration proxy of type
Tornullif there is no such configuration with that type.
-
addIndex
Add name as an index key for thisConfigand for the objects that are directly referenced by thisConfig. This includes all theConfigextensions.- Parameters:
habitat-ServiceLocatorthat contains this configname-nameto use to identify the objects
-
checkIfExtensionExists
default <P extends org.glassfish.api.admin.config.ConfigExtension> boolean checkIfExtensionExists(Class<P> configBeanType) - Type Parameters:
P- Type that extends theConfigBeanProxywhich 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:
trueif configuration for the type exists in the target area ofdomain.xmlandfalseif not.
-
getResourceRef
-
isResourceRefExists
default boolean isResourceRefExists(org.glassfish.api.naming.SimpleJndiName refName) -
createResourceRef
default void createResourceRef(String enabled, org.glassfish.api.naming.SimpleJndiName refName) throws org.jvnet.hk2.config.TransactionFailure - Throws:
org.jvnet.hk2.config.TransactionFailure
-
deleteResourceRef
default void deleteResourceRef(org.glassfish.api.naming.SimpleJndiName refName) throws org.jvnet.hk2.config.TransactionFailure - Throws:
org.jvnet.hk2.config.TransactionFailure
-
isDas
default boolean isDas() -
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
-
getContainers
List<org.glassfish.api.admin.config.Container> getContainers()Get the configuration for other types of containers.- Returns:
- list of containers configuration
-
getExtensions
List<org.glassfish.api.admin.config.ConfigExtension> getExtensions()
-