com.metamatrix.console.models
Class ConnectorManager
java.lang.Object
com.metamatrix.console.models.Manager
com.metamatrix.console.models.ConnectorManager
- All Implemented Interfaces:
- BindingDataInterface
public class ConnectorManager
- extends Manager
- implements BindingDataInterface
Method Summary |
boolean |
connectorBindingNameAlreadyExists(java.lang.String sName)
|
boolean |
connectorTypeNameAlreadyExists(java.lang.String sName)
|
ConnectorBinding |
copyConnectorBinding(ConnectorBinding original,
ConfigurationObjectEditor coe,
java.lang.String sConnBindName)
|
void |
createConnectorBinding(java.util.Collection bindings,
ConfigurationObjectEditor coe,
VMComponentDefn[] vms)
Method to commit actions to create a conector binding. |
void |
createConnectorBinding(ConnectorBinding binding,
ConfigurationObjectEditor coe)
Method to create a connector binding and have it deployed to all exising VM's. |
ConnectorBinding |
createConnectorBinding(ConnectorBinding oldBinding,
java.lang.String newName,
ConfigurationObjectEditor coe)
Method to create a new connector based on another connector. |
void |
deleteBinding(ServiceComponentDefn scdConnectorBinding)
|
void |
deleteBindings(java.util.Collection bindings)
|
void |
deleteConnector(ComponentType ctConnector)
|
void |
deleteConnector(java.lang.String name)
|
java.util.Collection |
getAllConnectorBindings()
|
BindingBasics[] |
getBindingBasics()
|
ConfigurationAdminAPI |
getConfigurationAdminAPI()
|
ConnectorBasicInfo |
getConnectorBasicInfo(ComponentType ctypeConnector)
|
ConnectorBasicInfo[] |
getConnectorBasics(boolean forceRefresh)
|
ConnectorBinding |
getConnectorBindingByName(java.lang.String bindingName)
|
ConnectorBinding |
getConnectorBindingByUUID(java.lang.String uuid)
|
ConfigurationObjectEditor |
getConnectorBindingEditor()
|
java.util.ArrayList |
getConnectorBindings()
|
java.util.ArrayList |
getConnectorBindings(boolean bForceRefresh)
|
ComponentType |
getConnectorForConnectorBinding(ServiceComponentDefn scdBinding)
|
java.util.ArrayList |
getConnectors()
|
java.util.ArrayList |
getConnectors(boolean bForceRefresh)
|
ConnectorDetailInfo |
getDetailForConnector(ComponentType ctConnector)
|
Configuration |
getNextStartupConfig()
|
PropertiedObject |
getPropertiedObject(ServiceComponentDefn scdConnectorBinding)
|
PropertiedObjectEditor |
getPropertiedObjectEditor()
|
PropertiedObjectEditor |
getPropertiedObjectEditor(ModificationActionQueue maqActionQForBinding)
|
ConnectorBinding |
getTentativeConnectorBinding(ComponentType ctConnector,
ConfigurationObjectEditor coe,
java.lang.String sConnBindName)
|
java.util.HashMap |
getUUIDConnectorBindingsMap(boolean bForceRefresh)
|
java.lang.String |
getValueForDefn(ComponentType ctCompType,
java.lang.String sDefnID)
|
ComponentType |
lookupConnector(java.lang.String name)
Lookup and return a connector for the given name or null
if no connector exists for name. |
void |
reportConnectorDetails(ComponentType ctConnector)
|
void |
saveConnectorBinding(ModificationActionQueue maqActionQForBinding)
|
Methods inherited from class com.metamatrix.console.models.Manager |
addManagerListener, fireModelChangedEvent, fireModelChangedEvent, getConnection, getConnection, getEncryptor, getEventListeners, getIsStale, init, refresh, removeManagerListener, setIsStale |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectorManager
public ConnectorManager(ConnectionInfo connection)
getConfigurationAdminAPI
public ConfigurationAdminAPI getConfigurationAdminAPI()
getConnectorBasics
public ConnectorBasicInfo[] getConnectorBasics(boolean forceRefresh)
throws java.lang.Exception
- Throws:
java.lang.Exception
getDetailForConnector
public ConnectorDetailInfo getDetailForConnector(ComponentType ctConnector)
throws java.lang.Exception
- Throws:
java.lang.Exception
deleteConnector
public void deleteConnector(java.lang.String name)
throws java.lang.Exception
- Throws:
java.lang.Exception
deleteConnector
public void deleteConnector(ComponentType ctConnector)
throws java.lang.Exception
- Throws:
java.lang.Exception
getBindingBasics
public BindingBasics[] getBindingBasics()
throws java.lang.Exception
- Specified by:
getBindingBasics
in interface BindingDataInterface
- Throws:
java.lang.Exception
deleteBinding
public void deleteBinding(ServiceComponentDefn scdConnectorBinding)
throws java.lang.Exception
- Throws:
java.lang.Exception
deleteBindings
public void deleteBindings(java.util.Collection bindings)
throws java.lang.Exception
- Throws:
java.lang.Exception
getConnectors
public java.util.ArrayList getConnectors()
getConnectors
public java.util.ArrayList getConnectors(boolean bForceRefresh)
getNextStartupConfig
public Configuration getNextStartupConfig()
throws java.lang.Exception
- Throws:
java.lang.Exception
getConnectorBasicInfo
public ConnectorBasicInfo getConnectorBasicInfo(ComponentType ctypeConnector)
throws java.lang.Exception
- Throws:
java.lang.Exception
reportConnectorDetails
public void reportConnectorDetails(ComponentType ctConnector)
getValueForDefn
public java.lang.String getValueForDefn(ComponentType ctCompType,
java.lang.String sDefnID)
getUUIDConnectorBindingsMap
public java.util.HashMap getUUIDConnectorBindingsMap(boolean bForceRefresh)
throws java.lang.Exception
- Throws:
java.lang.Exception
getConnectorBindings
public java.util.ArrayList getConnectorBindings()
throws java.lang.Exception
- Throws:
java.lang.Exception
getAllConnectorBindings
public java.util.Collection getAllConnectorBindings()
throws java.lang.Exception
- Throws:
java.lang.Exception
getConnectorBindings
public java.util.ArrayList getConnectorBindings(boolean bForceRefresh)
throws java.lang.Exception
- Parameters:
bForceRefresh
-
- Returns:
-
- Throws:
java.lang.Exception
getConnectorBindingByName
public ConnectorBinding getConnectorBindingByName(java.lang.String bindingName)
throws java.lang.Exception
- Throws:
java.lang.Exception
getConnectorBindingByUUID
public ConnectorBinding getConnectorBindingByUUID(java.lang.String uuid)
throws java.lang.Exception
- Throws:
java.lang.Exception
lookupConnector
public ComponentType lookupConnector(java.lang.String name)
- Lookup and return a connector for the given name or
null
if no connector exists for name.
- Parameters:
name
- The connector's name.
- Returns:
- The connector for the given name.
connectorBindingNameAlreadyExists
public boolean connectorBindingNameAlreadyExists(java.lang.String sName)
throws java.lang.Exception
- Parameters:
sName
-
- Returns:
-
- Throws:
java.lang.Exception
connectorTypeNameAlreadyExists
public boolean connectorTypeNameAlreadyExists(java.lang.String sName)
throws java.lang.Exception
- Throws:
java.lang.Exception
getConnectorForConnectorBinding
public ComponentType getConnectorForConnectorBinding(ServiceComponentDefn scdBinding)
getConnectorBindingEditor
public ConfigurationObjectEditor getConnectorBindingEditor()
throws java.lang.Exception
- Throws:
java.lang.Exception
getTentativeConnectorBinding
public ConnectorBinding getTentativeConnectorBinding(ComponentType ctConnector,
ConfigurationObjectEditor coe,
java.lang.String sConnBindName)
throws java.lang.Exception
- Throws:
java.lang.Exception
copyConnectorBinding
public ConnectorBinding copyConnectorBinding(ConnectorBinding original,
ConfigurationObjectEditor coe,
java.lang.String sConnBindName)
throws java.lang.Exception
- Throws:
java.lang.Exception
getPropertiedObject
public PropertiedObject getPropertiedObject(ServiceComponentDefn scdConnectorBinding)
throws java.lang.Exception
- Throws:
java.lang.Exception
saveConnectorBinding
public void saveConnectorBinding(ModificationActionQueue maqActionQForBinding)
throws java.lang.Exception
- Throws:
java.lang.Exception
getPropertiedObjectEditor
public PropertiedObjectEditor getPropertiedObjectEditor(ModificationActionQueue maqActionQForBinding)
throws java.lang.Exception
- Throws:
java.lang.Exception
getPropertiedObjectEditor
public PropertiedObjectEditor getPropertiedObjectEditor()
throws java.lang.Exception
- Throws:
java.lang.Exception
createConnectorBinding
public void createConnectorBinding(ConnectorBinding binding,
ConfigurationObjectEditor coe)
throws java.lang.Exception
- Method to create a connector binding and have it deployed to all exising VM's. The
ConfigurationObjectEditor argument is expected to to have the connector,
the connector binding name, and the properties.
- Parameters:
binding
- ServiceComponentDefn for the bindingcoe
- editor expected to have the connector, the binding name, and the binding properties
- Throws:
java.lang.Exception
createConnectorBinding
public void createConnectorBinding(java.util.Collection bindings,
ConfigurationObjectEditor coe,
VMComponentDefn[] vms)
throws java.lang.Exception
- Method to commit actions to create a conector binding. The
ConfigurationObjectEditor argument is expected to to have the connector,
the connector binding name, and the properties.
- Parameters:
bindings
- is a Collection of bindings to create for each PSC in the array.coe
- editor expected to have the connector, the binding name, and the binding propertiespscs
- array of PSCs for which the binding is to be enabled
- Throws:
java.lang.Exception
createConnectorBinding
public ConnectorBinding createConnectorBinding(ConnectorBinding oldBinding,
java.lang.String newName,
ConfigurationObjectEditor coe)
throws java.lang.Exception
- Method to create a new connector based on another connector. The
ConfigurationObjectEditor argument is expected to to have the connector,
the connector binding name, and the properties.
- Parameters:
binding
- ServiceComponentDefn for the bindingnewName
- is the new name to assign to the bindingcoe
- editor expected to have the connector, the binding name, and the binding properties
- Throws:
java.lang.Exception
Copyright © 2009. All Rights Reserved.