Class ConfigBeansUtilities
java.lang.Object
com.sun.enterprise.config.serverbeans.ConfigBeansUtilities
Bunch of utility methods for the new serverbeans config api based on jaxb.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetApplicationRefInServer(String sn, String name) Lists the app refs for non-system apps assigned to the specified server.getApplicationRefsInServer(String sn, boolean excludeSystemApps) Lists the app refs for apps assigned to the specified server, excluding system apps from the result if requested.getContextRoot(String moduleID) static StringGet the default value of Format from dtdstatic StringGet the default value of QueueSizeInBytes from dtdstatic StringGet the default value of RotationEnabled from dtdstatic StringGet the default value of RotationIntervalInMinutes from dtdstatic StringGet the default value of RotationPolicy from dtdgetDirectoryDeployed(String moduleID) getEnabled(String sn, String moduleID) getLibraries(String moduleID) getLocation(String moduleID) org.glassfish.api.admin.config.ApplicationNamegetServerNamed(String name) getSystemApplicationReferencedFrom(String sn, String appName) Returns the list of system-applications that are referenced from the given server.getVirtualServers(String sn, String moduleID) booleanisNamedSystemApplicationReferencedFrom(String appName, String serverName) static Stringstatic booleanThis method is used to convert a string value to boolean.static String
-
Constructor Details
-
ConfigBeansUtilities
-
-
Method Details
-
getDefaultFormat
Get the default value of Format from dtd -
getDefaultRotationPolicy
Get the default value of RotationPolicy from dtd -
getDefaultRotationEnabled
Get the default value of RotationEnabled from dtd -
getDefaultRotationIntervalInMinutes
Get the default value of RotationIntervalInMinutes from dtd -
getDefaultQueueSizeInBytes
Get the default value of QueueSizeInBytes from dtd -
toBoolean
This method is used to convert a string value to boolean.- Returns:
trueif the value is one oftrue,on,yes,1. Note that the values are case-sensitive. If it is not one of these values, then, it returns false.
-
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
-
getServers
-
getServerNamed
-
getAllDefinedSystemApplications
-
getApplicationRefsInServer
Lists the app refs for non-system apps assigned to the specified server.- Parameters:
sn- server name- Returns:
- List of
ApplicationReffor non-system apps assigned to the specified server
-
getApplicationRefsInServer
Lists the app refs for apps assigned to the specified server, excluding system apps from the result if requested.- Parameters:
sn- server name to checkexcludeSystemApps- whether system apps should be excluded- Returns:
- List of
ApplicationReffor apps assigned to the specified server
-
getApplicationRefInServer
-
getModule
-
getEnabled
-
getVirtualServers
-
getContextRoot
-
getLibraries
-
getLocation
-
getDirectoryDeployed
-
join
-
toString
-
getDomain
-