com.metamatrix.admin.server
Class AbstractAdminImpl

java.lang.Object
  extended by com.metamatrix.admin.server.AbstractAdminImpl
Direct Known Subclasses:
ServerConfigAdminImpl, ServerMonitoringAdminImpl, ServerRuntimeStateAdminImpl, ServerSecurityAdminImpl

public class AbstractAdminImpl
extends java.lang.Object

Since:
4.3

Field Summary
static int OBJECT_TYPE_CACHE
          Object type code for Cache
static int OBJECT_TYPE_CONNECTION_POOL
          Object type code for CONNECTION_POOL
static int OBJECT_TYPE_CONNECTOR_BINDING
          Object type code for ConnectorBinding
static int OBJECT_TYPE_CONNECTOR_TYPE
          Object type code for ConnectorType
static int OBJECT_TYPE_EXTENSION_MODULE
          Object type code for ExtensionModule
static int OBJECT_TYPE_GROUP
          Object type code for Group
static int OBJECT_TYPE_LOG_CONFIGURATION
          Object type code for LogConfiguration
static int OBJECT_TYPE_MODEL
          Object type code for Model
static int OBJECT_TYPE_PROCESS_OBJECT
          Object type code for ProcessObject
static int OBJECT_TYPE_PROPERTY_DEFINITION
          Object type code for PropertyDefinition
static int OBJECT_TYPE_QUEUE_WORKER_POOL
          Object type code for QueueWorkerPool
static int OBJECT_TYPE_REQUEST
          Object type code for Request
static int OBJECT_TYPE_ROLE
          Object type code for Role
static int OBJECT_TYPE_SESSION
          Object type code for Session
static int OBJECT_TYPE_TRANSACTION
          Object type code for TRANSACTION
static int OBJECT_TYPE_VDB
          Object type code for VDB
static java.lang.String OBJECTS_PACKAGE
          Package containing the sub-interfaces of AdminObjects
protected  ServerAdminImpl parent
           
protected  ClusteredRegistryState registry
           
 
Constructor Summary
AbstractAdminImpl(ServerAdminImpl parent, ClusteredRegistryState registry)
           
 
Method Summary
protected  java.util.Collection convertPropertyDefinitions(ComponentObject component)
          Convert a ComponentObject into a Collection of com.metamatrix.admin.api.objects.PropertyDefinition objects
protected  java.util.Collection convertPropertyDefinitions(ComponentObject component, java.util.Properties properties)
           
protected  java.util.Collection convertPropertyDefinitions(ComponentType ctype, java.util.Properties properties)
           
protected  VDB convertToAdminVDB(VirtualDatabase virtualDatabase)
          Utility method the converts a VirtualDatabase into an admin VDB object.
protected  java.util.Collection getAdminObjects(java.lang.String identifier, java.lang.String className)
          Get admin objects of the specified className that match the specified identifier.
protected  AuthorizationServiceInterface getAuthorizationServiceProxy()
           
protected  ConfigurationModelContainer getConfigurationModel()
           
protected  ConfigurationServiceInterface getConfigurationServiceProxy()
           
protected  java.util.List getConnectorBindingNamesFromUUIDs(java.util.List uuids, ConfigurationModelContainer configModel)
           
protected  java.util.Map getConnectorBindingNamesMapFromUUIDs(java.util.Collection uuids)
           
protected  DeployedComponent getDeployedComponent(java.lang.String identifier)
           
protected  ExtensionModuleManager getExtensionSourceManager()
           
protected  MembershipServiceInterface getMembershipServiceProxy()
           
protected  java.lang.String getName(java.lang.String identifier)
          Get the Node Name for this Identifier
static int getObjectType(java.lang.String className)
          Get the object type code for the specified classname.
protected  java.lang.String getParent(java.lang.String identifier)
          Get the Parent Name for this Identifier
protected  QueryServiceInterface getQueryServiceProxy()
           
protected  RuntimeStateAdminAPIHelper getRuntimeStateAdminAPIHelper()
           
protected  MetaMatrixSessionID getSessionID()
          Get The MetaMatrixSessionID for this Connection
protected  SessionServiceInterface getSessionServiceProxy()
           
protected  java.lang.String getUserName()
          Get The User Name for this Connection
protected  java.util.List getVDBs(java.lang.String identifier, java.util.Collection virtualDatabases)
          Utility method to find VDBs in virtualDatabases collection matching identifier and create VDB admin objects to return in sorted collection (VDBs and versions will be together).
protected static boolean identifierMatches(java.lang.String query, java.lang.String identifier)
          Returns true if identifierPartsArray contains all the parts of query, in order.
static boolean identifierMatches(java.lang.String query, java.lang.String[] identifierPartsArray)
          Returns true if identifierPartsArray contains all the parts of query, in order.
protected  void logDetail(java.lang.String key, java.lang.Object[] params)
          Log a localized message.
protected  void shutDownConnectorBinding(MMConnectorBinding binding, boolean stopNow)
           
protected  void throwProcessingException(java.lang.String key, java.lang.Object[] objects)
          Throw a processing exception with a localized message.
protected  SessionToken validateSession()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OBJECTS_PACKAGE

public static final java.lang.String OBJECTS_PACKAGE
Package containing the sub-interfaces of AdminObjects

See Also:
Constant Field Values

OBJECT_TYPE_CACHE

public static final int OBJECT_TYPE_CACHE
Object type code for Cache

See Also:
Constant Field Values

OBJECT_TYPE_CONNECTOR_BINDING

public static final int OBJECT_TYPE_CONNECTOR_BINDING
Object type code for ConnectorBinding

See Also:
Constant Field Values

OBJECT_TYPE_CONNECTOR_TYPE

public static final int OBJECT_TYPE_CONNECTOR_TYPE
Object type code for ConnectorType

See Also:
Constant Field Values

OBJECT_TYPE_EXTENSION_MODULE

public static final int OBJECT_TYPE_EXTENSION_MODULE
Object type code for ExtensionModule

See Also:
Constant Field Values

OBJECT_TYPE_GROUP

public static final int OBJECT_TYPE_GROUP
Object type code for Group

See Also:
Constant Field Values

OBJECT_TYPE_LOG_CONFIGURATION

public static final int OBJECT_TYPE_LOG_CONFIGURATION
Object type code for LogConfiguration

See Also:
Constant Field Values

OBJECT_TYPE_MODEL

public static final int OBJECT_TYPE_MODEL
Object type code for Model

See Also:
Constant Field Values

OBJECT_TYPE_PROCESS_OBJECT

public static final int OBJECT_TYPE_PROCESS_OBJECT
Object type code for ProcessObject

See Also:
Constant Field Values

OBJECT_TYPE_PROPERTY_DEFINITION

public static final int OBJECT_TYPE_PROPERTY_DEFINITION
Object type code for PropertyDefinition

See Also:
Constant Field Values

OBJECT_TYPE_QUEUE_WORKER_POOL

public static final int OBJECT_TYPE_QUEUE_WORKER_POOL
Object type code for QueueWorkerPool

See Also:
Constant Field Values

OBJECT_TYPE_REQUEST

public static final int OBJECT_TYPE_REQUEST
Object type code for Request

See Also:
Constant Field Values

OBJECT_TYPE_ROLE

public static final int OBJECT_TYPE_ROLE
Object type code for Role

See Also:
Constant Field Values

OBJECT_TYPE_SESSION

public static final int OBJECT_TYPE_SESSION
Object type code for Session

See Also:
Constant Field Values

OBJECT_TYPE_VDB

public static final int OBJECT_TYPE_VDB
Object type code for VDB

See Also:
Constant Field Values

OBJECT_TYPE_TRANSACTION

public static final int OBJECT_TYPE_TRANSACTION
Object type code for TRANSACTION

See Also:
Constant Field Values

OBJECT_TYPE_CONNECTION_POOL

public static final int OBJECT_TYPE_CONNECTION_POOL
Object type code for CONNECTION_POOL

See Also:
Constant Field Values

parent

protected ServerAdminImpl parent

registry

protected ClusteredRegistryState registry
Constructor Detail

AbstractAdminImpl

public AbstractAdminImpl(ServerAdminImpl parent,
                         ClusteredRegistryState registry)
Since:
4.3
Method Detail

getParent

protected java.lang.String getParent(java.lang.String identifier)
Get the Parent Name for this Identifier

Parameters:
identifier -
Returns:
Since:
4.3

getName

protected java.lang.String getName(java.lang.String identifier)
Get the Node Name for this Identifier

Parameters:
identifier -
Returns:
Since:
4.3

getUserName

protected java.lang.String getUserName()
Get The User Name for this Connection

Returns:
String User Name for this Session to MetaMatrix
Since:
4.3

getSessionID

protected MetaMatrixSessionID getSessionID()
Get The MetaMatrixSessionID for this Connection

Returns:
this Session ID
Since:
4.3

validateSession

protected SessionToken validateSession()

throwProcessingException

protected void throwProcessingException(java.lang.String key,
                                        java.lang.Object[] objects)
                                 throws AdminException
Throw a processing exception with a localized message.

Parameters:
key - Key of message in i18n.properties file.
objects - Objects to substitute into message.
Throws:
AdminException
Since:
4.3

logDetail

protected void logDetail(java.lang.String key,
                         java.lang.Object[] params)
Log a localized message.

Parameters:
key - Key of message in i18n.properties file.
params - Objects to substitute into message.
Since:
4.3

getSessionServiceProxy

protected SessionServiceInterface getSessionServiceProxy()
                                                  throws ServiceException
Throws:
ServiceException

getMembershipServiceProxy

protected MembershipServiceInterface getMembershipServiceProxy()
                                                        throws ServiceException
Throws:
ServiceException

getAuthorizationServiceProxy

protected AuthorizationServiceInterface getAuthorizationServiceProxy()
                                                              throws ServiceException
Throws:
ServiceException

getConfigurationServiceProxy

protected ConfigurationServiceInterface getConfigurationServiceProxy()
                                                              throws ServiceException
Throws:
ServiceException

getQueryServiceProxy

protected QueryServiceInterface getQueryServiceProxy()
                                              throws ServiceException
Throws:
ServiceException

getExtensionSourceManager

protected ExtensionModuleManager getExtensionSourceManager()

getRuntimeStateAdminAPIHelper

protected RuntimeStateAdminAPIHelper getRuntimeStateAdminAPIHelper()
                                                            throws ServiceException
Throws:
ServiceException

identifierMatches

public static boolean identifierMatches(java.lang.String query,
                                        java.lang.String[] identifierPartsArray)
Returns true if identifierPartsArray contains all the parts of query, in order.

Parameters:
query -
identifierPartsArray -
Returns:
Since:
4.3

identifierMatches

protected static boolean identifierMatches(java.lang.String query,
                                           java.lang.String identifier)
Returns true if identifierPartsArray contains all the parts of query, in order.

Parameters:
query -
identifier -
Returns:
Since:
4.3

convertToAdminVDB

protected VDB convertToAdminVDB(VirtualDatabase virtualDatabase)
                         throws AdminException
Utility method the converts a VirtualDatabase into an admin VDB object.

Parameters:
newVDB -
Returns:
the converted VDB
Throws:
AdminException
Since:
4.3

getVDBs

protected java.util.List getVDBs(java.lang.String identifier,
                                 java.util.Collection virtualDatabases)
                          throws AdminException
Utility method to find VDBs in virtualDatabases collection matching identifier and create VDB admin objects to return in sorted collection (VDBs and versions will be together).

Parameters:
identifier -
virtualDatabases -
Returns:
Collection of VDBs matching identifier or empty collection.
Throws:
AdminException
Since:
4.3

getConnectorBindingNamesFromUUIDs

protected java.util.List getConnectorBindingNamesFromUUIDs(java.util.List uuids,
                                                           ConfigurationModelContainer configModel)

getConnectorBindingNamesMapFromUUIDs

protected java.util.Map getConnectorBindingNamesMapFromUUIDs(java.util.Collection uuids)
                                                      throws ConfigurationException
Throws:
ConfigurationException

shutDownConnectorBinding

protected void shutDownConnectorBinding(MMConnectorBinding binding,
                                        boolean stopNow)
                                 throws AdminException
Throws:
AdminException

convertPropertyDefinitions

protected java.util.Collection convertPropertyDefinitions(ComponentObject component)
                                                   throws ConfigurationException
Convert a ComponentObject into a Collection of com.metamatrix.admin.api.objects.PropertyDefinition objects

Parameters:
component -
Returns:
Throws:
ConfigurationException
Since:
4.3

convertPropertyDefinitions

protected java.util.Collection convertPropertyDefinitions(ComponentObject component,
                                                          java.util.Properties properties)
                                                   throws ConfigurationException
Throws:
ConfigurationException

convertPropertyDefinitions

protected java.util.Collection convertPropertyDefinitions(ComponentType ctype,
                                                          java.util.Properties properties)

getDeployedComponent

protected DeployedComponent getDeployedComponent(java.lang.String identifier)
                                          throws ConfigurationException
Throws:
ConfigurationException

getAdminObjects

protected java.util.Collection getAdminObjects(java.lang.String identifier,
                                               java.lang.String className)
                                        throws AdminException
Get admin objects of the specified className that match the specified identifier.

Parameters:
identifier -
className -
Returns:
Throws:
AdminException
Since:
4.3

getConfigurationModel

protected ConfigurationModelContainer getConfigurationModel()
                                                     throws ConfigurationException
Throws:
ConfigurationException

getObjectType

public static int getObjectType(java.lang.String className)
                         throws AdminException
Get the object type code for the specified classname.

Parameters:
className - This may be fully qualified or not, e.g. "com.metamatrix.admin.api.objects.ConnectorBinding" or "ConnectorBinding".
Returns:
Object type code. The will be one of the constants AdminObject.OBJECT_TYPE_xxx.
Throws:
AdminException
Since:
4.3


Copyright © 2009. All Rights Reserved.