public interface Config extends org.glassfish.api.admin.config.Named, org.jvnet.hk2.config.types.PropertyBag, SystemPropertyBag, javax.validation.Payload, ConfigLoader, org.jvnet.hk2.config.ConfigBeanProxy, RefContainer
| Modifier and Type | Interface and Description |
|---|---|
static class |
Config.Duck |
| Modifier and Type | Method and Description |
|---|---|
void |
addIndex(org.glassfish.hk2.api.ServiceLocator habitat,
String name)
Add name as an index key for this Config and for the objects that are
directly referenced by this Config.
|
<P extends org.glassfish.api.admin.config.ConfigExtension> |
checkIfExtensionExists(Class<P> configBeanType) |
<T extends org.glassfish.api.admin.config.ConfigExtension> |
createDefaultChildByType(Class<T> type) |
void |
createResourceRef(String enabled,
String refName) |
void |
deleteResourceRef(String refName) |
org.glassfish.grizzly.config.dom.NetworkListener |
getAdminListener() |
AdminService |
getAdminService()
Gets the value of the adminService property.
|
AvailabilityService |
getAvailabilityService()
Gets the value of the availabilityService property.
|
List<org.glassfish.api.admin.config.Container> |
getContainers()
Get the configuration for other types of containers.
|
DiagnosticService |
getDiagnosticService()
Gets the value of the diagnosticService property.
|
String |
getDynamicReconfigurationEnabled()
Gets the value of the dynamicReconfigurationEnabled property.
|
<T extends org.glassfish.api.admin.config.ConfigExtension> |
getExtensionByType(Class<T> type)
Return an extension configuration given the extension type.
|
List<org.glassfish.api.admin.config.ConfigExtension> |
getExtensions() |
GroupManagementService |
getGroupManagementService()
Gets the value of the groupManagementService property.
|
HttpService |
getHttpService()
Gets the value of the httpService property.
|
JavaConfig |
getJavaConfig()
Gets the value of the javaConfig property.
|
Map<String,String> |
getLoggingProperties() |
LogService |
getLogService()
Gets the value of the logService property.
|
MonitoringService |
getMonitoringService()
Gets the value of the monitoringService property.
|
String |
getName()
Name of the configured object
|
org.glassfish.grizzly.config.dom.NetworkConfig |
getNetworkConfig()
Gets the value of the networkConfig property.
|
List<org.jvnet.hk2.config.types.Property> |
getProperty()
Properties as per
PropertyBag |
ResourceRef |
getResourceRef(String refName) |
SecurityService |
getSecurityService()
Gets the value of the securityService property.
|
List<SystemProperty> |
getSystemProperty()
Gets the value of the systemProperty property.
|
ThreadPools |
getThreadPools()
Gets the value of the threadPools property.
|
boolean |
isResourceRefExists(String refName) |
void |
setAdminService(AdminService value)
Sets the value of the adminService property.
|
void |
setAvailabilityService(AvailabilityService value)
Sets the value of the availabilityService property.
|
void |
setDiagnosticService(DiagnosticService value)
Sets the value of the diagnosticService property.
|
void |
setDynamicReconfigurationEnabled(String value)
Sets the value of the dynamicReconfigurationEnabled property.
|
void |
setGroupManagementService(GroupManagementService value)
Sets the value of the groupManagementService property.
|
void |
setHttpService(HttpService value)
Sets the value of the httpService property.
|
void |
setJavaConfig(JavaConfig value)
Sets the value of the javaConfig property.
|
String |
setLoggingProperty(String property,
String value) |
void |
setLogService(LogService value)
Sets the value of the logService property.
|
void |
setMonitoringService(MonitoringService value)
Sets the value of the monitoringService property.
|
void |
setName(String value) |
void |
setNetworkConfig(org.glassfish.grizzly.config.dom.NetworkConfig value)
Sets the value of the networkConfig property.
|
void |
setSecurityService(SecurityService value)
Sets the value of the securityService property.
|
void |
setThreadPools(ThreadPools value)
Sets the value of the threadPools property.
|
Map<String,String> |
updateLoggingProperties(Map<String,String> properties) |
getProperty, getPropertyValue, getPropertyValuecontainsProperty, getPropertyValue, getSystemProperty, getSystemPropertyValuegetApplicationRef, getResourceRef@NotNull
@Pattern(regexp="[A-Za-z0-9_][A-Za-z0-9\\-_\\.;]*",
message="{config.invalid.name}",
payload=Config.class)
String getName()
getName in interface org.glassfish.api.admin.config.Namedvoid setName(String value) throws PropertyVetoException
setName in interface org.glassfish.api.admin.config.NamedPropertyVetoExceptionString getDynamicReconfigurationEnabled()
Stringvoid setDynamicReconfigurationEnabled(String value) throws PropertyVetoException
value - allowed object is
StringPropertyVetoExceptionorg.glassfish.grizzly.config.dom.NetworkConfig getNetworkConfig()
NetworkConfigvoid setNetworkConfig(org.glassfish.grizzly.config.dom.NetworkConfig value)
throws PropertyVetoException
value - allowed object is NetworkConfigPropertyVetoExceptionHttpService getHttpService()
HttpServicevoid setHttpService(HttpService value) throws PropertyVetoException
value - allowed object is
HttpServicePropertyVetoExceptionAdminService getAdminService()
AdminServicevoid setAdminService(AdminService value) throws PropertyVetoException
value - allowed object is
AdminServicePropertyVetoExceptionLogService getLogService()
LogServicevoid setLogService(LogService value) throws PropertyVetoException
value - allowed object is
LogServicePropertyVetoExceptionSecurityService getSecurityService()
SecurityServicevoid setSecurityService(SecurityService value) throws PropertyVetoException
value - allowed object is
SecurityServicePropertyVetoException@NotNull MonitoringService getMonitoringService()
MonitoringServicevoid setMonitoringService(MonitoringService value) throws PropertyVetoException
value - allowed object is
MonitoringServicePropertyVetoExceptionDiagnosticService getDiagnosticService()
DiagnosticServicevoid setDiagnosticService(DiagnosticService value) throws PropertyVetoException
value - allowed object is
DiagnosticServicePropertyVetoExceptionJavaConfig getJavaConfig()
JavaConfigvoid setJavaConfig(JavaConfig value) throws PropertyVetoException
value - allowed object is
JavaConfigPropertyVetoException@NotNull AvailabilityService getAvailabilityService()
AvailabilityServicevoid setAvailabilityService(AvailabilityService value) throws PropertyVetoException
value - allowed object is
AvailabilityServicePropertyVetoExceptionThreadPools getThreadPools()
ThreadPoolsvoid setThreadPools(ThreadPools value) throws PropertyVetoException
value - allowed object is
ThreadPoolsPropertyVetoException@NotNull GroupManagementService getGroupManagementService()
GroupManagementServicevoid setGroupManagementService(GroupManagementService value) throws PropertyVetoException
value - allowed object is
GroupManagementServicePropertyVetoException@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()
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
SystemPropertygetSystemProperty in interface SystemPropertyBag@DuckTyped Map<String,String> updateLoggingProperties(Map<String,String> properties)
@DuckTyped org.glassfish.grizzly.config.dom.NetworkListener getAdminListener()
@DuckTyped <T extends org.glassfish.api.admin.config.ConfigExtension> T createDefaultChildByType(Class<T> type)
<T extends org.glassfish.api.admin.config.ConfigExtension> T getExtensionByType(Class<T> type)
T - interface subclassing the ConfigExtension typetype - type of the requested extension configuration@DuckTyped
void addIndex(org.glassfish.hk2.api.ServiceLocator habitat,
String name)
habitat - ServiceLocator that contains this Configname - name to use to identify the objects@DuckTyped <P extends org.glassfish.api.admin.config.ConfigExtension> boolean checkIfExtensionExists(Class<P> configBeanType)
P - Type that extends the ConfigBeanProxy which is the type of class we accept as parameterconfigBeanType - The config bean type we want to check whether the configuration exists for it or not.@DuckTyped ResourceRef getResourceRef(String refName)
@DuckTyped boolean isResourceRefExists(String refName)
@DuckTyped void createResourceRef(String enabled, String refName) throws org.jvnet.hk2.config.TransactionFailure
org.jvnet.hk2.config.TransactionFailure@DuckTyped void deleteResourceRef(String refName) throws org.jvnet.hk2.config.TransactionFailure
org.jvnet.hk2.config.TransactionFailure@ToDo(priority=IMPORTANT,
details="Provide PropertyDesc for legal props")
@PropertiesDesc(props={})
List<org.jvnet.hk2.config.types.Property> getProperty()
PropertyBaggetProperty in interface org.jvnet.hk2.config.types.PropertyBagList<org.glassfish.api.admin.config.Container> getContainers()
List<org.glassfish.api.admin.config.ConfigExtension> getExtensions()
Copyright © 2013. All Rights Reserved.