com.metamatrix.common.config.model
Class BasicUtil

java.lang.Object
  extended by com.metamatrix.common.config.model.BasicUtil

public class BasicUtil
extends java.lang.Object

Since:
4.2

Constructor Summary
BasicUtil()
           
 
Method Summary
static BasicComponentDefn createComponentDefn(int defnTypeCode, ConfigurationID configID, ComponentTypeID typeID, java.lang.String defnName)
          static method that is used to create the specified instance type of BasicComponentDefn.
static BasicComponentDefn createComponentDefn(int defnTypeCode, ConfigurationID configID, HostID hostID, ComponentTypeID typeID, java.lang.String defnName)
           
static BasicComponentDefn createComponentDefn(int defnTypeCode, ConfigurationID configID, ProductTypeID typeID, java.lang.String defnName)
          static method that is used to create the specified instance type of BasicComponentDefn.
static BasicComponentObject createComponentObject(int defnTypeCode, ComponentTypeID typeID, java.lang.String objName)
          static method that is used to create the specified instance type of BasicComponentObject for a PSC.
static BasicComponentType createComponentType(int classTypeCode, java.lang.String name, ComponentTypeID parentID, ComponentTypeID superID, boolean deployable, boolean monitored)
          static method that is used to create the specified instance type of BasicComponentType.
static BasicDeployedComponent createDeployedComponent(java.lang.String name, ConfigurationID configID, HostID hostID, VMComponentDefnID vmID, ServiceComponentDefnID svcID, ProductServiceConfigID pscID, ComponentTypeID typeID)
           
static BasicDeployedComponent createDeployedVMComponent(java.lang.String name, ConfigurationID configID, HostID hostID, VMComponentDefnID vmID, ComponentTypeID vmtypeID)
           
static int getComponentDefnType(BaseID id)
           
static int getComponentDefnType(BaseObject defn)
           
static int getComponentType(BaseObject defn)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicUtil

public BasicUtil()
Method Detail

createComponentDefn

public static final BasicComponentDefn createComponentDefn(int defnTypeCode,
                                                           ConfigurationID configID,
                                                           ComponentTypeID typeID,
                                                           java.lang.String defnName)
static method that is used to create the specified instance type of BasicComponentDefn.

Parameters:
defnTypeCode - identifies the type of class this component defn should represent
configID - is the ConfigurationID identifying what configuration this defn belongs
typeID - is the ComponentTypeID identifying this new created BasicComponentType
defnName - is the name of the component defn
Returns:
BasicComponentDefn
See Also:
for type codes

createComponentDefn

public static final BasicComponentDefn createComponentDefn(int defnTypeCode,
                                                           ConfigurationID configID,
                                                           HostID hostID,
                                                           ComponentTypeID typeID,
                                                           java.lang.String defnName)

createComponentDefn

public static final BasicComponentDefn createComponentDefn(int defnTypeCode,
                                                           ConfigurationID configID,
                                                           ProductTypeID typeID,
                                                           java.lang.String defnName)
static method that is used to create the specified instance type of BasicComponentDefn.

Parameters:
defnTypeCode - identifies the type of class this component defn should represent
configID - is the ConfigurationID identifying what configuration this defn belongs
typeID - is the ComponentTypeID identifying this new created BasicComponentType
defnName - is the name of the component defn
Returns:
BasicComponentDefn
See Also:
for type codes

createComponentObject

public static final BasicComponentObject createComponentObject(int defnTypeCode,
                                                               ComponentTypeID typeID,
                                                               java.lang.String objName)
static method that is used to create the specified instance type of BasicComponentObject for a PSC.

Parameters:
defnTypeCode - identifies the type of class this component defn should represent
configID - is the ConfigurationID identifying what configuration this defn belongs
typeID - is the ComponentTypeID identifying this new created BasicComponentType
defnName - is the name of the component defn
Returns:
BasicComponentObject
See Also:
for type codes

createComponentType

public static BasicComponentType createComponentType(int classTypeCode,
                                                     java.lang.String name,
                                                     ComponentTypeID parentID,
                                                     ComponentTypeID superID,
                                                     boolean deployable,
                                                     boolean monitored)
static method that is used to create the specified instance type of BasicComponentType.

Parameters:
classTypeCode - identifies the type of class this component type should represent
typeID - is the ComponentTypeID identifying this new created BasicComponentType
parentID - is the component type that is the parent
superID - is the component type that is a super class of this component type
deployable - is a boolean indicating if the type can be deployed in a configuration
monitored - is a boolean insdicating if the type is to be monitored
Returns:
BasicComponentType
See Also:
or @see ComponentObject for type codes

createDeployedComponent

public static BasicDeployedComponent createDeployedComponent(java.lang.String name,
                                                             ConfigurationID configID,
                                                             HostID hostID,
                                                             VMComponentDefnID vmID,
                                                             ServiceComponentDefnID svcID,
                                                             ProductServiceConfigID pscID,
                                                             ComponentTypeID typeID)

createDeployedVMComponent

public static BasicDeployedComponent createDeployedVMComponent(java.lang.String name,
                                                               ConfigurationID configID,
                                                               HostID hostID,
                                                               VMComponentDefnID vmID,
                                                               ComponentTypeID vmtypeID)

getComponentType

public static int getComponentType(BaseObject defn)

getComponentDefnType

public static int getComponentDefnType(BaseObject defn)

getComponentDefnType

public static int getComponentDefnType(BaseID id)


Copyright © 2009. All Rights Reserved.