public class DomainConfiguration extends Object
DomainConfiguration is controlled by a ParameterTable, typically read from the file DefaultDomainConfiguration.def. Refer to that file for additional information on the format of the ParameterTable.
Modifier and Type | Class and Description |
---|---|
static class |
DomainConfiguration.DefaultServerDefinition
Structure holds data require to construct a single server entry
property within a node.
|
static class |
DomainConfiguration.DefaultServiceDefinition
Structure holds data require to construct a single service entry
property within a node.
|
Constructor and Description |
---|
DomainConfiguration(ParameterTable parameterTable)
Constructor.
|
DomainConfiguration(String[] args)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static NodeConfiguration |
createNodeConfiguration(LibrarySession session,
String name,
AttributeValue aclAV,
boolean isActive,
NodeConfiguration superNC,
Hashtable props,
DomainConfiguration.DefaultServiceDefinition[] services,
DomainConfiguration.DefaultServerDefinition[] servers,
boolean verboseLogging,
String logPrefix)
Creates NODECONFIGURATION object.
|
static ServerConfiguration |
createServerConfiguration(LibrarySession session,
String name,
AttributeValue aclAV,
boolean isAbstract,
ServerConfiguration[] inheritedSCs,
ServerConfiguration scLike,
Hashtable propertyOverrides,
boolean verboseLogging,
String logPrefix)
Creates SERVERCONFIGURATION object.
|
static ServiceConfiguration |
createServiceConfiguration(LibrarySession session,
String name,
AttributeValue aclAV,
ServiceConfiguration scLike,
Hashtable propertyOverrides,
boolean verboseLogging,
String logPrefix)
Creates SERVICECONFIGURATION object.
|
static void |
freeNode(LibrarySession session,
NodeConfiguration node,
boolean verboseLogging,
String logPrefix)
Frees the specified NODECONFIGURATION object.
|
static void |
freeServer(LibrarySession session,
ServerConfiguration server,
boolean verboseLogging,
String logPrefix)
Frees the specified SERVERCONFIGURATION object.
|
static void |
freeService(LibrarySession session,
ServiceConfiguration service,
boolean verboseLogging,
String logPrefix)
Frees the specified SERVICECONFIGURATION object.
|
static NodeConfiguration |
getNodeConfiguration(LibrarySession session,
String name)
Gets the NODECONFIGURATION with the specified name.
|
static ServerConfiguration |
getServerConfiguration(LibrarySession session,
String name)
Gets the SERVERCONFIGURATION with the specified name.
|
static ServiceConfiguration |
getServiceConfiguration(LibrarySession session,
String name)
Gets the SERVICECONFIGURATION with the specified name.
|
static void |
main(String[] args)
Main.
|
void |
run()
Run.
|
protected static void |
showAttributeValue(String prefix,
AttributeValue av,
LibrarySession session)
Prints the specified AttributeValue.
|
public DomainConfiguration(String[] args)
args
- the command-line argumentspublic DomainConfiguration(ParameterTable parameterTable)
parameterTable
- a ParameterTablepublic static void main(String[] args)
args
- the command-line argumentspublic void run() throws Exception
Exception
- if the operation failspublic static void freeNode(LibrarySession session, NodeConfiguration node, boolean verboseLogging, String logPrefix) throws IfsException
session
- the session contextnode
- the node to freeverboseLogging
- whether to enable verbose logginglogPrefix
- log string prefixIfsException
- if the operation failspublic static void freeServer(LibrarySession session, ServerConfiguration server, boolean verboseLogging, String logPrefix) throws IfsException
session
- the session contextserver
- the server to freeverboseLogging
- whether to enable verbose logginglogPrefix
- log string prefixIfsException
- if the operation failspublic static void freeService(LibrarySession session, ServiceConfiguration service, boolean verboseLogging, String logPrefix) throws IfsException
session
- the session contextservice
- the service to freeverboseLogging
- whether to enable verbose logginglogPrefix
- log string prefixIfsException
- if the operation failspublic static ServiceConfiguration createServiceConfiguration(LibrarySession session, String name, AttributeValue aclAV, ServiceConfiguration scLike, Hashtable propertyOverrides, boolean verboseLogging, String logPrefix) throws IfsException
session
- the session contextname
- the name of the service configurationaclAV
- the "ACL" AttributeValue to apply - typically private.scLike
- an existing SC object to copy properties frompropertyOverrides
- property values that take precedence over scLikeverboseLogging
- whether to enable verbose logginglogPrefix
- log string prefixIfsException
- if the operation failspublic static ServerConfiguration createServerConfiguration(LibrarySession session, String name, AttributeValue aclAV, boolean isAbstract, ServerConfiguration[] inheritedSCs, ServerConfiguration scLike, Hashtable propertyOverrides, boolean verboseLogging, String logPrefix) throws IfsException
session
- the session contextname
- the name of the server configurationaclAV
- the "ACL" AttributeValue to apply - typically private.isAbstract
- is server configuration abstractinheritedSCs
- inheritied server configurationsscLike
- an existing SC object to copy properties frompropertyOverrides
- property values that take precedence over scLikeverboseLogging
- whether to enable verbose logginglogPrefix
- log string prefixIfsException
- if the operation failspublic static NodeConfiguration createNodeConfiguration(LibrarySession session, String name, AttributeValue aclAV, boolean isActive, NodeConfiguration superNC, Hashtable props, DomainConfiguration.DefaultServiceDefinition[] services, DomainConfiguration.DefaultServerDefinition[] servers, boolean verboseLogging, String logPrefix) throws IfsException
session
- the session contextname
- the name of the node configurationaclAV
- the "ACL" AttributeValue to apply - typically private.isActive
- is node configuration activesuperNC
- the super NodeConfiguration this new instance extendsprops
- property valuesservices
- default servicesservers
- default serversverboseLogging
- whether to enable verbose logginglogPrefix
- log string prefixException
- if the operation failsIfsException
public static ServiceConfiguration getServiceConfiguration(LibrarySession session, String name) throws IfsException
session
- the session contextname
- the nameIfsException
- if operation fails. 12200 if invalid item.public static ServerConfiguration getServerConfiguration(LibrarySession session, String name) throws IfsException
session
- the session contextname
- the nameIfsException
- if operation fails. 12200 if invalid item.public static NodeConfiguration getNodeConfiguration(LibrarySession session, String name) throws IfsException
session
- the session contextname
- the nameIfsException
- if operation fails. 12200 if invalid item.protected static void showAttributeValue(String prefix, AttributeValue av, LibrarySession session) throws IfsException
prefix
- the prefixav
- the AttributeValuesession
- a sessionIfsException
- if the operation failsCopyright © 2023. All rights reserved.