com.metamatrix.console.models
Class PoolManager

java.lang.Object
  extended by com.metamatrix.console.models.Manager
      extended by com.metamatrix.console.models.PoolManager

public class PoolManager
extends Manager


Field Summary
static int NEXT_STARTUP_CONFIG
           
static int STARTUP_CONFIG
           
 
Fields inherited from class com.metamatrix.console.models.Manager
MODEL_CHANGED, MODEL_STALE
 
Constructor Summary
PoolManager(ConnectionInfo connection)
           
 
Method Summary
 void applyPropertiesToActivePool(PropertiedObject propertiedObject)
           
 PoolNameAndType createPool(PoolPropertiedObjectAndEditor data, ResourceDescriptor[] resourcesToAddToPool)
           
 PoolPropertiedObjectAndEditor createPropertiedObjectForPool(java.lang.String poolName, java.lang.String poolType, ConfigurationID nextStartup)
           
 ConfigurationID getConfigurationID(int type)
           
 ConfigurationObjectEditor getConfigurationObjectEditor()
           
 ResourceDescriptor getConnectionPool(java.lang.String poolName, ConfigurationID configID)
           
 PoolConfigTableRowData[] getPoolConfigData()
           
 PoolNameAndType[] getPools()
          returns the active resource pools
 ResourcePoolStats[] getPoolStats()
           
 ComponentType getPoolType(java.lang.String poolTypeName)
           
 java.lang.String[] getPoolTypes()
           
 PropertiedObjectEditor getPropertiedObjectEditorForPool(ModificationActionQueue maq)
           
 PropertiedObject getPropertiedObjectForResourceDescriptor(ComponentObject rd)
           
 ResourceDescriptor[] getResourceDescriptors()
           
 ResourcePropertiedObjectEditor getResourcePropertiedObjectEditor()
           
 SharedResource[] getResources()
           
 boolean poolExists(java.lang.String poolName, ConfigurationID configID)
          tries to determine if the pool already exist in the configuration
 void updatePoolProperties(ConfigurationObjectEditor editor, PropertiedObject propertiedObject)
           
 void updateResourceProperties(ResourcePropertiedObjectEditor editor)
           
 
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
 

Field Detail

NEXT_STARTUP_CONFIG

public static final int NEXT_STARTUP_CONFIG
See Also:
Constant Field Values

STARTUP_CONFIG

public static final int STARTUP_CONFIG
See Also:
Constant Field Values
Constructor Detail

PoolManager

public PoolManager(ConnectionInfo connection)
Method Detail

getPoolStats

public ResourcePoolStats[] getPoolStats()
                                 throws AuthorizationException,
                                        ExternalException
Throws:
AuthorizationException
ExternalException

getPoolConfigData

public PoolConfigTableRowData[] getPoolConfigData()
                                           throws AuthorizationException,
                                                  ExternalException
Throws:
AuthorizationException
ExternalException

getPools

public PoolNameAndType[] getPools()
                           throws AuthorizationException,
                                  ExternalException
returns the active resource pools

Throws:
AuthorizationException
ExternalException

getPoolTypes

public java.lang.String[] getPoolTypes()
                                throws AuthorizationException,
                                       ExternalException
Throws:
AuthorizationException
ExternalException

getPropertiedObjectForResourceDescriptor

public PropertiedObject getPropertiedObjectForResourceDescriptor(ComponentObject rd)

getPropertiedObjectEditorForPool

public PropertiedObjectEditor getPropertiedObjectEditorForPool(ModificationActionQueue maq)

getConfigurationObjectEditor

public ConfigurationObjectEditor getConfigurationObjectEditor()
                                                       throws AuthorizationException,
                                                              ExternalException
Throws:
AuthorizationException
ExternalException

getConfigurationID

public ConfigurationID getConfigurationID(int type)
                                   throws AuthorizationException,
                                          ExternalException
Throws:
AuthorizationException
ExternalException

updatePoolProperties

public void updatePoolProperties(ConfigurationObjectEditor editor,
                                 PropertiedObject propertiedObject)
                          throws java.lang.Exception
Throws:
java.lang.Exception

applyPropertiesToActivePool

public void applyPropertiesToActivePool(PropertiedObject propertiedObject)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

updateResourceProperties

public void updateResourceProperties(ResourcePropertiedObjectEditor editor)
                              throws java.lang.Exception
Throws:
java.lang.Exception

poolExists

public boolean poolExists(java.lang.String poolName,
                          ConfigurationID configID)
                   throws AuthorizationException,
                          ExternalException
tries to determine if the pool already exist in the configuration

Throws:
AuthorizationException
ExternalException

getConnectionPool

public ResourceDescriptor getConnectionPool(java.lang.String poolName,
                                            ConfigurationID configID)
                                     throws AuthorizationException,
                                            ExternalException
Throws:
AuthorizationException
ExternalException

getPoolType

public ComponentType getPoolType(java.lang.String poolTypeName)
                          throws AuthorizationException,
                                 ExternalException
Throws:
AuthorizationException
ExternalException

createPropertiedObjectForPool

public PoolPropertiedObjectAndEditor createPropertiedObjectForPool(java.lang.String poolName,
                                                                   java.lang.String poolType,
                                                                   ConfigurationID nextStartup)
                                                            throws AuthorizationException,
                                                                   ExternalException
Throws:
AuthorizationException
ExternalException

createPool

public PoolNameAndType createPool(PoolPropertiedObjectAndEditor data,
                                  ResourceDescriptor[] resourcesToAddToPool)
                           throws AuthorizationException,
                                  ExternalException
Throws:
AuthorizationException
ExternalException

getResourcePropertiedObjectEditor

public ResourcePropertiedObjectEditor getResourcePropertiedObjectEditor()
                                                                 throws AuthorizationException,
                                                                        ExternalException
Throws:
AuthorizationException
ExternalException

getResources

public SharedResource[] getResources()
                              throws AuthorizationException,
                                     ExternalException
Throws:
AuthorizationException
ExternalException

getResourceDescriptors

public ResourceDescriptor[] getResourceDescriptors()
                                            throws AuthorizationException,
                                                   ExternalException
Throws:
AuthorizationException
ExternalException


Copyright © 2009. All Rights Reserved.