|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.admin.server.AbstractAdminImpl
public class AbstractAdminImpl
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 |
---|
public static final java.lang.String OBJECTS_PACKAGE
public static final int OBJECT_TYPE_CACHE
public static final int OBJECT_TYPE_CONNECTOR_BINDING
public static final int OBJECT_TYPE_CONNECTOR_TYPE
public static final int OBJECT_TYPE_EXTENSION_MODULE
public static final int OBJECT_TYPE_GROUP
public static final int OBJECT_TYPE_LOG_CONFIGURATION
public static final int OBJECT_TYPE_MODEL
public static final int OBJECT_TYPE_PROCESS_OBJECT
public static final int OBJECT_TYPE_PROPERTY_DEFINITION
public static final int OBJECT_TYPE_QUEUE_WORKER_POOL
public static final int OBJECT_TYPE_REQUEST
public static final int OBJECT_TYPE_ROLE
public static final int OBJECT_TYPE_SESSION
public static final int OBJECT_TYPE_VDB
public static final int OBJECT_TYPE_TRANSACTION
public static final int OBJECT_TYPE_CONNECTION_POOL
protected ServerAdminImpl parent
protected ClusteredRegistryState registry
Constructor Detail |
---|
public AbstractAdminImpl(ServerAdminImpl parent, ClusteredRegistryState registry)
Method Detail |
---|
protected java.lang.String getParent(java.lang.String identifier)
identifier
-
protected java.lang.String getName(java.lang.String identifier)
identifier
-
protected java.lang.String getUserName()
protected MetaMatrixSessionID getSessionID()
MetaMatrixSessionID
for this Connection
protected SessionToken validateSession()
protected void throwProcessingException(java.lang.String key, java.lang.Object[] objects) throws AdminException
key
- Key of message in i18n.properties file.objects
- Objects to substitute into message.
AdminException
protected void logDetail(java.lang.String key, java.lang.Object[] params)
key
- Key of message in i18n.properties file.params
- Objects to substitute into message.protected SessionServiceInterface getSessionServiceProxy() throws ServiceException
ServiceException
protected MembershipServiceInterface getMembershipServiceProxy() throws ServiceException
ServiceException
protected AuthorizationServiceInterface getAuthorizationServiceProxy() throws ServiceException
ServiceException
protected ConfigurationServiceInterface getConfigurationServiceProxy() throws ServiceException
ServiceException
protected QueryServiceInterface getQueryServiceProxy() throws ServiceException
ServiceException
protected ExtensionModuleManager getExtensionSourceManager()
protected RuntimeStateAdminAPIHelper getRuntimeStateAdminAPIHelper() throws ServiceException
ServiceException
public static boolean identifierMatches(java.lang.String query, java.lang.String[] identifierPartsArray)
identifierPartsArray
contains all the parts of query
, in order.
query
- identifierPartsArray
-
protected static boolean identifierMatches(java.lang.String query, java.lang.String identifier)
identifierPartsArray
contains all the parts of query
, in order.
query
- identifier
-
protected VDB convertToAdminVDB(VirtualDatabase virtualDatabase) throws AdminException
newVDB
-
AdminException
protected java.util.List getVDBs(java.lang.String identifier, java.util.Collection virtualDatabases) throws AdminException
identifier
- virtualDatabases
-
VDB
s matching identifier or empty collection.
AdminException
protected java.util.List getConnectorBindingNamesFromUUIDs(java.util.List uuids, ConfigurationModelContainer configModel)
protected java.util.Map getConnectorBindingNamesMapFromUUIDs(java.util.Collection uuids) throws ConfigurationException
ConfigurationException
protected void shutDownConnectorBinding(MMConnectorBinding binding, boolean stopNow) throws AdminException
AdminException
protected java.util.Collection convertPropertyDefinitions(ComponentObject component) throws ConfigurationException
component
-
ConfigurationException
protected java.util.Collection convertPropertyDefinitions(ComponentObject component, java.util.Properties properties) throws ConfigurationException
ConfigurationException
protected java.util.Collection convertPropertyDefinitions(ComponentType ctype, java.util.Properties properties)
protected DeployedComponent getDeployedComponent(java.lang.String identifier) throws ConfigurationException
ConfigurationException
protected java.util.Collection getAdminObjects(java.lang.String identifier, java.lang.String className) throws AdminException
identifier
- className
-
AdminException
protected ConfigurationModelContainer getConfigurationModel() throws ConfigurationException
ConfigurationException
public static int getObjectType(java.lang.String className) throws AdminException
className
- This may be fully qualified or not, e.g.
"com.metamatrix.admin.api.objects.ConnectorBinding" or "ConnectorBinding".
AdminException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |