public class DomainProfile extends Object implements oracle.fmwplatform.envspec.common.Versioned, oracle.fmwplatform.util.validation.ValidationParticipant
Constructor and Description |
---|
DomainProfile() |
Modifier and Type | Method and Description |
---|---|
boolean |
addAllBlueprints(List<Blueprint> blueprints)
Add a list of Blueprints to the existing list of blueprints in this domain profile.
|
boolean |
addAllClusters(List<Cluster> clusters)
Add a list of clusters to the existing list of clusters in this domain profile.
|
boolean |
addAllServers(List<Server> servers)
Adds a list of Server objects to the list of Servers in this DomainProfile
|
boolean |
addAllTargets(List<Target> targets)
Adds a list of Target objects to the list of Targets in this DomainProfile
|
boolean |
addBlueprint(Blueprint blueprint)
Add a blueprint to the list of blueprints in this domain profile.
|
boolean |
addBlueprint(String blueprintName)
Add a blueprint to the list of blueprints in this domain profile identified by the blueprintName.
|
boolean |
addBlueprint(String blueprintName,
String version,
EnvironmentModelFileLocator locator)
Add a blueprint to the list of blueprints in this domain profile identified by the blueprintName.
|
boolean |
addCluster(Cluster cluster)
Add a cluster to this domain profile.
|
boolean |
addMigratableTarget(MigratableTarget migratableTarget)
Add a migratable target.
|
Partition |
addNewPartition(String id)
Add a partition to this domain profile.
|
boolean |
addPartition(Partition partition)
Add a partition to this domain profile.
|
boolean |
addServer(Server server)
Add a server to this domain profile.
|
boolean |
addTarget(String objectName,
String targetName)
Adds a target to the list of targets defined in this DomainProfile.
|
boolean |
addTarget(Target target)
Adds a target to the list of targets defined in this DomainProfile.
|
List<String> |
getAllObjectNamesForTarget(String targetName) |
Blueprint |
getBlueprint(String blueprintName)
Get a Blueprint by name in this DomainProfile, or null if not found.
|
List<Blueprint> |
getBlueprints()
Get the list of Blueprints available in this DomainProfile.
|
Cluster |
getCluster(String clusterId)
Find the first cluster in this domain profile matching the ID provided.
|
List<Cluster> |
getClusters()
Returns the list of clusters defined in this domain profile.
|
DomainProfile |
getDomainProfile()
Returns the domain profile from any domain profile reference this domain profile may have.
|
String |
getFMWVersionRange()
Returns the range of FMW releases that this model object is supported under.
|
MigratableTarget |
getMigratableTarget(String ID)
Get the migratable target by ID.
|
List<MigratableTarget> |
getMigratableTargets()
Get the list of migratable targets.
|
String |
getName()
Returns the name.
|
Partition |
getPartition(String partitionId)
Find the first partition in this domain profile matching the ID provided.
|
List<Partition> |
getPartitions()
Get the list of partitions associated with this domain profile.
|
String |
getSchemaVersion()
Returns the version of the EnvSpec (XML) schema that applies to this model.
|
Server |
getServer(String serverId)
Find the first server in this domain profile matching the ID provided.
|
List<Server> |
getServers()
Returns the list of servers defined in this domain profile.
|
Target |
getTarget(String objectName) |
List<Target> |
getTargets()
Returns the list of targets defined in this domain profile.
|
String |
getVersion()
Returns the consumer specified version of the this model file.
|
boolean |
removeCluster(Cluster cluster)
Remove a cluster from this domain profile.
|
boolean |
removeMigratableTarget(MigratableTarget migratableTarget)
Remove a migratable target.
|
boolean |
removePartition(Partition partition)
Remove a partition from this domain profile.
|
boolean |
removeServer(Server server)
Remove a server to this domain profile.
|
boolean |
removeTargeted(String targeted)
Remove target name from all targets.
|
DomainProfile |
setBlueprints(List<Blueprint> blueprints)
Sets a list of Blueprints replacing the existing list of blueprints in this domain profile.
|
DomainProfile |
setClusters(List<Cluster> clusters)
Sets the list of Clusters in this DomainProfile.
|
DomainProfile |
setDomainProfile(DomainProfile domainProfile)
Set the child domain profile to the domain profile specified in domainProfile.
|
DomainProfile |
setDomainProfile(String domainProfileName)
Set the child domain profile by loading the domain profile identified by the domainProfileName.
|
DomainProfile |
setDomainProfile(String domainProfileName,
String version,
EnvironmentModelFileLocator locator)
Set the child domain profile by loading the domain profile identified by the domainProfileName.
|
DomainProfile |
setFMWVersionRange(String fmwVersionRange)
Sets the the range of FMW releases that this model object is supported under.
|
DomainProfile |
setName(String name)
Sets the name.
|
DomainProfile |
setSchemaVersion(String schemaVersion)
Sets the version of the EnvSpec (XML) schema that applies to this model.
|
DomainProfile |
setServers(List<Server> servers)
Sets the list of Servers in this DomainProfile.
|
DomainProfile |
setTargets(List<Target> targets)
Sets the list of targets defined in this DomainProfile.
|
DomainProfile |
setVersion(String version)
Sets the consumer specified version of the their model file.
|
String |
toCompactString()
Returns a compact string representation of the object in XML format.
|
String |
toJsonCompactString()
Returns a compact string representation of the object in JSON format.
|
String |
toJsonString()
Returns a string representation of the object in JSON format.
|
String |
toString()
Returns a string representation of the object in XML 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) |
public String getName()
oracle.fmwplatform.envspec.common.Versioned
getName
in interface oracle.fmwplatform.envspec.common.Versioned
public DomainProfile setName(String name)
oracle.fmwplatform.envspec.common.Versioned
setName
in interface oracle.fmwplatform.envspec.common.Versioned
name
- the namepublic String getVersion()
oracle.fmwplatform.envspec.common.Versioned
getVersion
in interface oracle.fmwplatform.envspec.common.Versioned
public DomainProfile setVersion(String version)
oracle.fmwplatform.envspec.common.Versioned
setVersion
in interface oracle.fmwplatform.envspec.common.Versioned
version
- the consumer specified version of the their model file.public String getFMWVersionRange()
oracle.fmwplatform.envspec.common.Versioned
getFMWVersionRange
in interface oracle.fmwplatform.envspec.common.Versioned
public DomainProfile setFMWVersionRange(String fmwVersionRange)
oracle.fmwplatform.envspec.common.Versioned
setFMWVersionRange
in interface oracle.fmwplatform.envspec.common.Versioned
fmwVersionRange
- the range of FMW releases that this model object is supported underpublic boolean addBlueprint(Blueprint blueprint) throws IllegalArgumentException
blueprint
- The blueprint to be addedtrue
if the list of Blueprints changed as a result of this callIllegalArgumentException
- if input parameter is nullpublic DomainProfile setBlueprints(List<Blueprint> blueprints)
blueprints
- A List of Blueprint objects to be addedtrue
if the list of Blueprints changed as a result of this callIllegalArgumentException
- if input parameter is nullpublic boolean addAllBlueprints(List<Blueprint> blueprints) throws IllegalArgumentException
blueprints
- A List of Blueprint objects to be addedtrue
if the list of Blueprints changed as a result of this callIllegalArgumentException
- if input parameter is nullpublic boolean addBlueprint(String blueprintName, String version, EnvironmentModelFileLocator locator) throws FMWEnvSpecException, IllegalArgumentException
blueprintName
- The name of the blueprint to be addedversion
- The version of the blueprint to be added or null if any version is acceptablelocator
- An EnvironmentModelFileLocator locator that has been initialized with the paths that are to be searched
when finding the blueprint or null if only the Oracle Home needs to be searchedFMWEnvSpecException
- The blueprint could not be loadedIllegalArgumentException
- if blueprintName parameter is nullpublic boolean addBlueprint(String blueprintName) throws FMWEnvSpecException
blueprintName
- the name of the Blueprint to be addedFMWEnvSpecException
- The blueprint could not be loadedpublic List<Blueprint> getBlueprints()
public Blueprint getBlueprint(String blueprintName)
blueprintName
- the name of the blueprint to findpublic List<Cluster> getClusters()
public Cluster getCluster(String clusterId)
clusterId
- the ID of the cluster to getpublic boolean addCluster(Cluster cluster)
cluster
- the cluster to addpublic boolean removeCluster(Cluster cluster)
cluster
- the cluster to removepublic List<MigratableTarget> getMigratableTargets()
public MigratableTarget getMigratableTarget(String ID)
ID
- the ID of the migratbale target to getpublic boolean addMigratableTarget(MigratableTarget migratableTarget)
migratableTarget
- the migratable target to addpublic boolean removeMigratableTarget(MigratableTarget migratableTarget)
migratableTarget
- the migratable target to removepublic DomainProfile getDomainProfile()
public String getSchemaVersion()
oracle.fmwplatform.envspec.common.Versioned
getSchemaVersion
in interface oracle.fmwplatform.envspec.common.Versioned
public List<Server> getServers()
public Server getServer(String serverId)
serverId
- the ID of the server to getpublic boolean addServer(Server server)
server
- the server to addpublic boolean removeServer(Server server)
server
- the server to removepublic List<Partition> getPartitions()
public Partition getPartition(String partitionId)
partitionId
- the partition IDpublic boolean addPartition(Partition partition)
partition
- the partition model objectpublic Partition addNewPartition(String id)
id
- the ID for the new partitionpublic boolean removePartition(Partition partition)
partition
- the partitionpublic boolean removeTargeted(String targeted)
targeted
- server or cluster name that is to be removedpublic List<Target> getTargets()
public DomainProfile setTargets(List<Target> targets)
targets
- the list of targets for this DomainProfilepublic boolean addTarget(Target target)
target
- the target to be addedpublic boolean addTarget(String objectName, String targetName)
objectName
- the object to be targetedtargetName
- the name of the entity the object will be targeted topublic DomainProfile setClusters(List<Cluster> clusters)
clusters
- the list of Clusters to be added this DomainProfilepublic boolean addAllClusters(List<Cluster> clusters) throws IllegalArgumentException
clusters
- A List of Cluster objects to be addedtrue
if the list of Blueprints changed as a result of this callIllegalArgumentException
- if input parameter is nullpublic DomainProfile setDomainProfile(DomainProfile domainProfile)
domainProfile
- The domain profile to be set as the child of this domain profilepublic DomainProfile setDomainProfile(String domainProfileName, String version, EnvironmentModelFileLocator locator) throws FMWEnvSpecException
domainProfileName
- The name of the domain profile to be set as the child domain profileversion
- The version of the domain profile to be added or null if any version is acceptablelocator
- An EnvironmentModelFileLocator locator that has been initialized with the paths that are to be searched
when finding the domain profile or null if only the Oracle Home needs to be searchedFMWEnvSpecException
- The domain profile could not be loadedpublic DomainProfile setDomainProfile(String domainProfileName) throws FMWEnvSpecException
domainProfileName
- The name of the domain profile to be addedFMWEnvSpecException
- The domain profile could not be loadedpublic DomainProfile setSchemaVersion(String schemaVersion)
oracle.fmwplatform.envspec.common.Versioned
setSchemaVersion
in interface oracle.fmwplatform.envspec.common.Versioned
schemaVersion
- the version of the EnvSpec (XML) schema that applies to this modelpublic DomainProfile setServers(List<Server> servers)
servers
- the Servers that are to be contained in this DomainProfilepublic boolean addAllServers(List<Server> servers) throws IllegalArgumentException
servers
- list of String objects to addtrue
if the list of servers changed as a result of this callIllegalArgumentException
- if input parameter is nullpublic boolean addAllTargets(List<Target> targets) throws IllegalArgumentException
targets
- list of String objects to addtrue
if the list of servers changed as a result of this callIllegalArgumentException
- if input parameter is nullpublic void validate(oracle.fmwplatform.util.validation.Validate validate)
validate
in interface oracle.fmwplatform.util.validation.ValidationParticipant
public String toXmlCompactString()
public String toXmlString()
public String toJsonCompactString()
public String toJsonString()
public String toCompactString()