public class Domain extends Object implements oracle.fmwplatform.envspec.common.ParentContainerWithVariables, oracle.fmwplatform.envspec.common.EntityWithId, oracle.fmwplatform.envspec.common.Tunable<Topology>, oracle.fmwplatform.util.validation.ValidationParticipant
Modifier and Type | Field and Description |
---|---|
static String |
RESERVED_TOKEN_ADMINSERVER |
static String |
RESERVED_TOKEN_DOMAIN |
Constructor and Description |
---|
Domain() |
Modifier and Type | Method and Description |
---|---|
boolean |
addAllClusterBindings(List<ClusterBinding> clusterBindings)
Adds the ClusterBindings provided to the list of ClusterBindings in this Domain.
|
boolean |
addAllDependencies(List<Dependency> dependencies)
Add a list of Dependency objects to the Domain
|
boolean |
addAllSchemas(List<Schema> schemas)
Adds the Schemas provided to the list of Schemas in this Domain.
|
boolean |
addAllServerBindings(List<ServerBinding> serverBindings)
Adds the ServerBindings provided to the list of ServerBindings in this Domain.
|
boolean |
addAllWebTierBindings(List<WebTierBinding> webTierBindings)
Adds the WebTierBindings provided to the list of WebTierBindings in this domain
|
boolean |
addClusterBinding(ClusterBinding clusterBinding)
Adds the ClusterBinding provided to the list of ClusterBindings in this Domain.
|
boolean |
addDependency(Dependency dependency)
Add a single Dependency object to the Domain
|
boolean |
addSchema(Schema schema)
Adds the Schema provided to the list of Schemas in this Domain.
|
boolean |
addServerBinding(ServerBinding serverBinding)
Adds the ServerBinding provided to the list of ServerBindings in this Domain.
|
boolean |
addSetting(String alias, String value)
Convenience method to add a setting with the given alias and value, to the tuning parameters for this Domain.
|
boolean |
addWebTierBinding(WebTierBinding webTierBinding)
Adds the WebTierBinding provided to the list of WebTierBindings in this Domain
|
String |
getAdminCredentialRef()
Returns the Credential reference used to login to the AdminServer.
|
Server |
getAdminServer()
Returns the AdminServer on this Domain or null if one has not been set.
|
String |
getAdminServerId()
Returns the Server id of the AdminServer on this Domain or null if one has not been set.
|
String |
getAdminServerUrl()
Returns the admin server URL
|
String |
getApplicationPath()
Return the domain's application path.
|
ClusterBinding |
getClusterBindingForClusterID(String clusterID)
Returns the cluster binding for the cluster Id specified or null if none are found.
|
List<ClusterBinding> |
getClusterBindings()
Returns the list of cluster bindings in this domain.
|
List<ClusterBinding> |
getClusterBindingsForClusterIDs(List<String> clusterIDs)
Returns the cluster bindings for the cluster IDs specified o an empty list if none are found.
|
Cluster |
getClusterById(String clusterId)
Return the Cluster in this Domain that matches the name provided or null if no match is found.
|
List<String> |
getClusterIds()
Returns the list of cluster Ids on this domain.
|
String |
getDefaultCoherencePort()
Returns the Default Coherence Port
|
List<Dependency> |
getDependencies()
Returns the dependencies of the Domain
|
String |
getDomainName()
Deprecated.
|
DomainProfile |
getDomainProfile() |
List<Cluster> |
getEffectiveClusters()
Returns all the clusters in this domain.
|
List<Server> |
getEffectiveServers()
Returns all the servers in this domain.
|
List<Target> |
getEffectiveTargets()
Returns all the targets in this domain.
|
List<Template> |
getEffectiveTemplates()
Returns all the templates in this domain.
|
Map<String,String> |
getEffectiveVariables()
Returns the variables from the tuning parameters of this domain as well as from the topology that this domain belongs to.
|
List<GenericDataSourceBinding> |
getGenericDataSourceBindings()
Returns the list of generic data source bindings from the schemas in this domain
|
String |
getId()
Returns the id used to reference this Domain.
|
List<MultiDataSourceBinding> |
getMultiDataSourceBindings()
Returns the list of multi data source bindings from the schemas in this domain
|
String |
getName()
Returns the name of this Domain.
|
Topology |
getParent()
Returns the object that contains this entity
|
String |
getPath()
Returns the path of the domain
|
String |
getProvides()
Return the domain's provides value.
|
Map<String,String> |
getReservedKeywords()
Returns a map containing any reserved keywords and values for variable substitution for this entity
|
Schema |
getSchemaForSchemaComponentRefID(String schemaComponentRefID)
Returns the Schema for the schemaComponentRefID specified or null if no match is found.
|
List<Schema> |
getSchemas()
Returns the list of schemas in this domain
|
ServerBinding |
getServerBindingByName(String serverName)
Returns the ServerBinding matching the server name provided or null if no match is found.
|
ServerBinding |
getServerBindingForServerID(String serverID)
Returns the ServerBinding for the server Id specified or null if no match is found.
|
List<ServerBinding> |
getServerBindings()
Returns the list of ServerBindings in this Domain or an empty list if none are found.
|
List<ServerBinding> |
getServerBindingsForServerIDs(List<String> serverIDs)
Returns the ServerBindings for the server ids specified or an empty list if none are found.
|
String |
getServerIdForServerName(String serverName)
Returns the Server id for the server name provided or null if no match is found
|
List<String> |
getServerIds()
Returns the list of unique server ids on this domain or an empty list if none are found.
|
TuningParameters |
getTuningParameters()
Returns the TuningParamaeters for this Domain or null if one has not been set.
|
Type |
getType()
Returns the type of the domain (local or shared)
|
String |
getVariableValue(String key)
Returns the variable value assigned to the specified key.
|
List<WebTierBinding> |
getWebTierBindings()
Returns the list of WebTierBindings in this Domain or an empty list if none are found
|
Domain |
removeClusterBindings()
Removes the clusterBindings of this Domain
|
Domain |
removeDependencies()
Removes the id of this Domain
|
Domain |
removePath()
Clears the path to the location on the file system where the Domain is located.
|
Domain |
removeSchemas()
Removes the schemas of this Database
|
Domain |
removeServerBindings()
Removes the serverBindings of this Database
|
Domain |
removeType()
Removes the type of this Domain
|
Domain |
removeWebTierBindings()
Removes the webTierBindings of this Database
|
Domain |
setAdminCredentialRef(String adminCredentialRef)
Sets the Credential reference for the AdminServer of this Domain
|
Domain |
setAdminServerUrl(String adminServerUrl)
Sets the URL for the aAdminServer
|
Domain |
setApplicationPath(String applicationPath)
Set the domain application path.
|
Domain |
setDefaultCoherencePort(String defaultCoherencePort)
Set the domain defaultCoherencePort value.
|
Domain |
setDomainProfile(DomainProfile domainProfile)
Sets the DomainProfile for this Domain.
|
Domain |
setId(String id)
Sets id to be used when referencing this Domain.
|
Domain |
setName(String name)
Sets the name of this Domain.
|
Domain |
setParent(Topology containerTopology)
Sets the container object that contains this.
|
Domain |
setPath(String path)
Sets the path to the location on the file system where the Domain is located.
|
Domain |
setProvides(String provides)
Set the domain provides value.
|
Domain |
setTuningParameters(TuningParameters tuningParameters)
Sets the TuningParameters for this Domain or null if no TuningParameters.
|
Domain |
setType(Type type)
Sets the type of the Domain (local or shared).
|
String |
substitute(String text)
Replaces substitution keys in the specified text with their corresponding values.
|
String |
toCompactString()
Returns a compact string representation of the object in JSON format.
|
String |
toString()
Returns a string representation of the object in JSON format.
|
String |
toXmlCompactString()
Returns a compact string representation of the object in XML format.
|
String |
toXmlString()
Returns a string representation of the object in XML format.
|
void |
validate(oracle.fmwplatform.util.validation.Validate validate)
Validate this Domain using the specified Validate instance.
|
public static final String RESERVED_TOKEN_DOMAIN
public static final String RESERVED_TOKEN_ADMINSERVER
public boolean addAllClusterBindings(List<ClusterBinding> clusterBindings) throws IllegalArgumentException
clusterBindings
- the ClusterBindings to be added to list of ClusterBindingsIllegalArgumentException
public Domain removeClusterBindings()
public boolean addAllSchemas(List<Schema> schemas) throws IllegalArgumentException
schemas
- he Schemas to add to the list of SchemasIllegalArgumentException
public Domain removeSchemas()
public boolean addAllServerBindings(List<ServerBinding> serverBindings) throws IllegalArgumentException
serverBindings
- the ServerBindings to add to the list of ServerBindings in this DomainIllegalArgumentException
public Domain removeServerBindings()
public boolean addAllWebTierBindings(List<WebTierBinding> webTierBindings) throws IllegalArgumentException
webTierBindings
- the WebTierBindings to addtrue
if this list changed as a result of the callIllegalArgumentException
public Domain removeWebTierBindings()
public boolean addClusterBinding(ClusterBinding clusterBinding) throws IllegalArgumentException
clusterBinding
- the ClusterBinding to add to the list of ClusterBindings in this DomainCollection.add(E)
)IllegalArgumentException
public boolean addSchema(Schema schema) throws IllegalArgumentException
schema
- the Schema to add to the list of Schemas in this DomainCollection.add(E)
)IllegalArgumentException
public boolean addServerBinding(ServerBinding serverBinding) throws IllegalArgumentException
serverBinding
- the ServerBinding to add to the list of ServerBindings in this Domaintrue
if the item is added to the listIllegalArgumentException
public boolean addWebTierBinding(WebTierBinding webTierBinding) throws IllegalArgumentException
webTierBinding
- the WebTierBinding to addtrue
if the item is added to the listIllegalArgumentException
public boolean addSetting(String alias, String value)
addSetting
in interface oracle.fmwplatform.envspec.common.Tunable<Topology>
alias
- the alias of a Settingvalue
- the value of a Settingtrue
if the item is added to the listpublic String getAdminCredentialRef()
public Server getAdminServer() throws FMWEnvSpecException
FMWEnvSpecException
- When a domain profile reference cannot be found or readpublic String getAdminServerId() throws FMWEnvSpecException
FMWEnvSpecException
- When a DomainProfile cannot be found or readpublic String getAdminServerUrl()
public ClusterBinding getClusterBindingForClusterID(String clusterID)
clusterID
- the cluster binding for the cluster Id specified or null if none are foundpublic List<ClusterBinding> getClusterBindings()
public List<ClusterBinding> getClusterBindingsForClusterIDs(List<String> clusterIDs)
clusterIDs
- the clusterIds for the ClusterBIndings to be returnedpublic Cluster getClusterById(String clusterId) throws FMWEnvSpecException
clusterId
- the id of the Cluster to be returnedFMWEnvSpecException
- When a domain profile cannot be found or readpublic List<String> getClusterIds() throws FMWEnvSpecException
FMWEnvSpecException
- When a domain profile cannot be found or read@Deprecated public String getDomainName()
public DomainProfile getDomainProfile()
public List<Cluster> getEffectiveClusters() throws FMWEnvSpecException
FMWEnvSpecException
- When a domain profile reference cannot be found or readpublic List<Server> getEffectiveServers() throws FMWEnvSpecException
FMWEnvSpecException
- When a domain profile reference cannot be found or readpublic List<Target> getEffectiveTargets() throws FMWEnvSpecException
FMWEnvSpecException
- When a domain profile reference cannot be found or readpublic List<Template> getEffectiveTemplates() throws FMWEnvSpecException
FMWEnvSpecException
- When external file references cannot be read OR when a custom template does not have location specifiedpublic Map<String,String> getEffectiveVariables() throws FMWEnvSpecException
getEffectiveVariables
in interface oracle.fmwplatform.envspec.common.ParentContainerWithVariables
FMWEnvSpecException
- When any tuning parameters references cannot be readpublic String getVariableValue(String key)
getVariableValue
in interface oracle.fmwplatform.envspec.common.Substitutable
key
- the key of the variable to be checkedpublic String substitute(String text)
substitute
in interface oracle.fmwplatform.envspec.common.Substitutable
text
- the original textpublic List<GenericDataSourceBinding> getGenericDataSourceBindings()
public String getId()
getId
in interface oracle.fmwplatform.envspec.common.EntityWithId
public String getName()
public List<MultiDataSourceBinding> getMultiDataSourceBindings()
public Topology getParent()
oracle.fmwplatform.envspec.common.ContainerAware
getParent
in interface oracle.fmwplatform.envspec.common.ContainerAware<Topology>
public String getPath()
public Map<String,String> getReservedKeywords() throws FMWEnvSpecException
oracle.fmwplatform.envspec.common.ReservedKeywordProvider
getReservedKeywords
in interface oracle.fmwplatform.envspec.common.ReservedKeywordProvider
FMWEnvSpecException
- in the event of a critical errorpublic Schema getSchemaForSchemaComponentRefID(String schemaComponentRefID)
schemaComponentRefID
- the Schema component ref Id for the Schema that is to be returnedpublic List<Schema> getSchemas()
public ServerBinding getServerBindingByName(String serverName)
serverName
- the name of the server that is to be returnedpublic ServerBinding getServerBindingForServerID(String serverID)
serverID
- the server id for the ServerBinding that is to be returnedpublic List<ServerBinding> getServerBindings()
public List<ServerBinding> getServerBindingsForServerIDs(List<String> serverIDs)
serverIDs
- the Server ids for the ServerBinding that are to be returnedpublic String getServerIdForServerName(String serverName)
serverName
- the name of the Server for which the id is to be returnedpublic List<String> getServerIds() throws FMWEnvSpecException
FMWEnvSpecException
- When a domain profile cannot be found or readpublic TuningParameters getTuningParameters()
getTuningParameters
in interface oracle.fmwplatform.envspec.common.Tunable<Topology>
public Type getType()
public Domain setAdminCredentialRef(String adminCredentialRef)
adminCredentialRef
- the Credential id to be used as a referencepublic Domain setAdminServerUrl(String adminServerUrl)
adminServerUrl
- the AdminServer urlpublic Domain setDomainProfile(DomainProfile domainProfile)
domainProfile
- the DomainProile to be associated to this Domainpublic Domain setId(String id)
setId
in interface oracle.fmwplatform.envspec.common.EntityWithId
id
- the id to be used when referencing this Domainpublic Domain setName(String name)
name
- the name of this Domainpublic Domain setParent(Topology containerTopology) throws IllegalArgumentException
oracle.fmwplatform.envspec.common.ContainerAware
setParent
in interface oracle.fmwplatform.envspec.common.ContainerAware<Topology>
containerTopology
- the parent containerIllegalArgumentException
public Domain setPath(String path) throws IllegalArgumentException
path
- the path to the location on the file system where the Domain is locatedIllegalArgumentException
public Domain removePath()
public Domain setTuningParameters(TuningParameters tuningParameters)
setTuningParameters
in interface oracle.fmwplatform.envspec.common.Tunable<Topology>
tuningParameters
- the TuningParameters for this Domain or null if no TuningParameterspublic Domain setType(Type type) throws IllegalArgumentException
type
- the type of the Domain (local or shared)IllegalArgumentException
public Domain removeType()
public List<WebTierBinding> getWebTierBindings()
public String getApplicationPath()
public Domain setApplicationPath(String applicationPath)
applicationPath
- the path where applications will be deployed for this domain.public String getProvides()
public Domain setProvides(String provides)
provides
- the String value that shows what this Domain object provides Used for Dependency.public List<Dependency> getDependencies()
public boolean addDependency(Dependency dependency) throws IllegalArgumentException
dependency
- ExecuteAction object to add to the listtrue
if this list changed as a result of the callIllegalArgumentException
- if input parameter is nullpublic boolean addAllDependencies(List<Dependency> dependencies) throws IllegalArgumentException
dependencies
- list of Dependency objects to add to the listtrue
if this list changed as a result of the callIllegalArgumentException
- if input parameter is nullpublic Domain removeDependencies()
public String getDefaultCoherencePort()
public Domain setDefaultCoherencePort(String defaultCoherencePort)
defaultCoherencePort
- set defaultCoherencePortpublic String toXmlCompactString()
public String toXmlString()
public String toCompactString()
public String toString()
public void validate(oracle.fmwplatform.util.validation.Validate validate)
validate
in interface oracle.fmwplatform.util.validation.ValidationParticipant
validate
- the Validate instance performing the validation