com.metamatrix.admin.server
Class ServerMonitoringAdminImpl

java.lang.Object
  extended by com.metamatrix.admin.server.AbstractAdminImpl
      extended by com.metamatrix.admin.server.ServerMonitoringAdminImpl
All Implemented Interfaces:
ServerMonitoringAdmin, MonitoringAdmin

public class ServerMonitoringAdminImpl
extends AbstractAdminImpl
implements ServerMonitoringAdmin

Since:
4.3

Field Summary
 
Fields inherited from class com.metamatrix.admin.server.AbstractAdminImpl
OBJECT_TYPE_CACHE, OBJECT_TYPE_CONNECTION_POOL, OBJECT_TYPE_CONNECTOR_BINDING, OBJECT_TYPE_CONNECTOR_TYPE, OBJECT_TYPE_EXTENSION_MODULE, OBJECT_TYPE_GROUP, OBJECT_TYPE_LOG_CONFIGURATION, OBJECT_TYPE_MODEL, OBJECT_TYPE_PROCESS_OBJECT, OBJECT_TYPE_PROPERTY_DEFINITION, OBJECT_TYPE_QUEUE_WORKER_POOL, OBJECT_TYPE_REQUEST, OBJECT_TYPE_ROLE, OBJECT_TYPE_SESSION, OBJECT_TYPE_TRANSACTION, OBJECT_TYPE_VDB, OBJECTS_PACKAGE, parent, registry
 
Constructor Summary
ServerMonitoringAdminImpl(ServerAdminImpl parent, ClusteredRegistryState registry)
           
 
Method Summary
 byte[] exportLogs()
          Export the server logs to a byte[].
 java.util.Collection getCaches(java.lang.String identifier)
          Get monitoring information about caches.
 java.util.Collection getConnectionPoolStats(java.lang.String identifier)
          Get monitoring information about connection pool stats for the connector bindings.
 java.util.Collection getConnectorBindings(java.lang.String identifier)
          Get monitoring information about connector bindings.
 java.util.Collection getConnectorBindingsInVDB(java.lang.String identifier)
           
 java.util.Collection<ConnectorBinding> getConnectorBindingsInVDB(java.lang.String vdbName, java.lang.String vdbVersion)
          Get all the Connector Bindings for the given VDB identifier pattern
 java.util.Collection<PropertyDefinition> getConnectorTypePropertyDefinitions(java.lang.String connectorTypeIdentifier)
          Get all of the available Configuration Properties for the specified AdminObject, and details about them.
 java.util.Collection getConnectorTypes(java.lang.String identifier)
          Get monitoring information about connector types.
 java.util.Collection getDQPs(java.lang.String identifier)
          Get monitoring information about DQPs (Distributed Query Processors).
 java.util.Collection getExtensionModules(java.lang.String identifier)
          Get monitoring information about extension modules.
 java.util.Collection getHosts(java.lang.String identifier)
          Get monitoring information about hosts.
 java.util.Collection getProcesses(java.lang.String identifier)
          Get monitoring information about processes.
 java.util.Collection getPropertyDefinitions(java.lang.String identifier, java.lang.String className)
           
 java.util.Collection getQueueWorkerPools(java.lang.String identifier)
          Get monitoring information about worker queues for DQPs or connector bindings.
 java.util.Collection getRequests(java.lang.String identifier)
          Get monitoring information about requests.
 java.util.Collection getResources(java.lang.String identifier)
          Get monitoring information about resources.
 java.util.Collection getServices(java.lang.String identifier)
          Get monitoring information about services.
 java.util.Collection<Session> getSessions(java.lang.String identifier)
          Get monitoring information about sessions.
 java.util.Collection getSourceRequests(java.lang.String identifier)
          Get monitoring information about source requests.
 SystemObject getSystem()
          Get monitoring information about the sytem at large.
 java.util.Collection<Transaction> getTransactions()
          Get all transaction matching the identifier.
 java.util.Collection getVDBs(java.lang.String identifier)
          Get monitoring information about VDBs (Virtual Databases).
protected static java.lang.String trimString(java.lang.String string)
           
 
Methods inherited from class com.metamatrix.admin.server.AbstractAdminImpl
convertPropertyDefinitions, convertPropertyDefinitions, convertPropertyDefinitions, convertToAdminVDB, getAdminObjects, getAuthorizationServiceProxy, getConfigurationModel, getConfigurationServiceProxy, getConnectorBindingNamesFromUUIDs, getConnectorBindingNamesMapFromUUIDs, getDeployedComponent, getExtensionSourceManager, getMembershipServiceProxy, getName, getObjectType, getParent, getQueryServiceProxy, getRuntimeStateAdminAPIHelper, getSessionID, getSessionServiceProxy, getUserName, getVDBs, identifierMatches, identifierMatches, logDetail, shutDownConnectorBinding, throwProcessingException, validateSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerMonitoringAdminImpl

public ServerMonitoringAdminImpl(ServerAdminImpl parent,
                                 ClusteredRegistryState registry)
Method Detail

getCaches

public java.util.Collection getCaches(java.lang.String identifier)
                               throws AdminException
Get monitoring information about caches.

Specified by:
getCaches in interface MonitoringAdmin
Parameters:
identifier - Identifier of the cache to get information for. For example, "CodeTable".

If identifier is "*", this method returns information for all caches in the system.

Returns:
a Collection of com.metamatrix.admin.api.Cache
Throws:
AdminException - if there's a system error.
Since:
4.3
See Also:
MonitoringAdmin.getCaches(java.lang.String)

getConnectorBindings

public java.util.Collection getConnectorBindings(java.lang.String identifier)
                                          throws AdminException
Get monitoring information about connector bindings.

Specified by:
getConnectorBindings in interface MonitoringAdmin
Parameters:
identifier - Fully-qualified identifier of a host, process, or connector binding to get information for. For example, "hostname", or "hostname.processname", or " "hostname.processname.bindingname".

If identifier is "*", this method returns information about all connector bindings in the system.

Returns:
a Collection of com.metamatrix.admin.api.ConnectorBinding
Throws:
AdminException - if there's a system error.
Since:
4.3
See Also:
MonitoringAdmin.getConnectorBindings(java.lang.String)

getConnectorBindingsInVDB

public java.util.Collection getConnectorBindingsInVDB(java.lang.String identifier)
                                               throws AdminException
Throws:
AdminException
Since:
4.3
See Also:
org.teiid.adminapi.MonitoringAdmin#getConnectorBindingsInVDB(java.lang.String)

getConnectorTypes

public java.util.Collection getConnectorTypes(java.lang.String identifier)
                                       throws AdminException
Get monitoring information about connector types.

Specified by:
getConnectorTypes in interface MonitoringAdmin
Parameters:
identifier - Identifier of a connector type to get information for. For example, "JDBC Connector".

If identifier is "*", this method returns information about all connector types in the system.

Returns:
a Collection of com.metamatrix.admin.api.ConnectorType
Throws:
AdminException - if there's a system error.
Since:
4.3
See Also:
MonitoringAdmin.getConnectorTypes(java.lang.String)

getDQPs

public java.util.Collection getDQPs(java.lang.String identifier)
                             throws AdminException
Get monitoring information about DQPs (Distributed Query Processors).

Specified by:
getDQPs in interface ServerMonitoringAdmin
Parameters:
identifier - Fully-qualified identifier of a host or process to get information for. For example, "hostname", or "hostname.processname".

If identifier is "*", this method returns information about all DQPs in the system.

Returns:
a Collection of com.metamatrix.admin.api.DQP
Throws:
AdminException - if there's a system error.
Since:
4.3
See Also:
ServerMonitoringAdmin.getDQPs(java.lang.String)

getExtensionModules

public java.util.Collection getExtensionModules(java.lang.String identifier)
                                         throws AdminException
Get monitoring information about extension modules.

Specified by:
getExtensionModules in interface MonitoringAdmin
Parameters:
identifier - Identifier of an extension module to get information for.

If identifier is "*", this method returns information about all extension modules in the system. Note that this methods returns the binary contents of each extension module, so you should avoid calling this method with identifier "*" if possible.

Returns:
a Collection of com.metamatrix.admin.api.ExtensionModule
Throws:
AdminException - if there's a system error.
Since:
4.3
See Also:
MonitoringAdmin.getExtensionModules(java.lang.String)

getHosts

public java.util.Collection getHosts(java.lang.String identifier)
                              throws AdminException
Get monitoring information about hosts.

Specified by:
getHosts in interface ServerMonitoringAdmin
Parameters:
identifier - Identifier of a host to get information for. For example "hostname".

If identifier is "*", this method returns information about all hosts in the system.

Returns:
a Collection of com.metamatrix.admin.api.Host
Throws:
AdminException - if there's a system error.
Since:
4.3
See Also:
ServerMonitoringAdmin.getHosts(java.lang.String)

getProcesses

public java.util.Collection getProcesses(java.lang.String identifier)
                                  throws AdminException
Get monitoring information about processes.

Specified by:
getProcesses in interface ServerMonitoringAdmin
Specified by:
getProcesses in interface MonitoringAdmin
Parameters:
identifier - Identifier of a host or process to get information for. For example "hostname" or "hostname.processname".

If identifier is "*", this method returns information about all processes in the system.

Returns:
a Collection of com.metamatrix.admin.api.Process
Throws:
AdminException - if there's a system error.
Since:
4.3
See Also:
ServerMonitoringAdmin.getProcesses(java.lang.String)

getServices

public java.util.Collection getServices(java.lang.String identifier)
                                 throws AdminException
Get monitoring information about services.

Specified by:
getServices in interface ServerMonitoringAdmin
Parameters:
identifier - Fully-qualified identifier of a host, process, or service to get information for. For example, "hostname", or "hostname.processname", or " "hostname.processname.servicename".

If identifier is "*", this method returns information about all services in the system.

Returns:
a Collection of com.metamatrix.admin.api.Service
Throws:
AdminException - if there's a system error.
Since:
4.3
See Also:
com.metamatrix.admin.api.server.ServerMonitoringAdmin#getServicess(java.lang.String)

getQueueWorkerPools

public java.util.Collection getQueueWorkerPools(java.lang.String identifier)
                                         throws AdminException
Get monitoring information about worker queues for DQPs or connector bindings.

Specified by:
getQueueWorkerPools in interface MonitoringAdmin
Parameters:
identifier - Identifier of a host, process, DQP, connector binding, or worker queue to get information for. For example "hostname", or "hostname.processname", or "hostname.processname.dqpname", or "hostname.processname.bindingname", or "hostname.processname.dqpname.workerqueuename", or "hostname.processname.bindingname.workerqueuename".

NOTE: to get information about the "Socket Worker" queue associated with a process, use getProcess().

If identifier is "*", this method returns information about all worker queues in the system.

Returns:
a Collection of com.metamatrix.admin.api.QueueWorkerPool
Throws:
AdminException - if there's a system error.
Since:
4.3
See Also:
MonitoringAdmin.getQueueWorkerPools(java.lang.String)

getConnectionPoolStats

public java.util.Collection getConnectionPoolStats(java.lang.String identifier)
                                            throws AdminException
Get monitoring information about connection pool stats for the connector bindings.

Specified by:
getConnectionPoolStats in interface MonitoringAdmin
Parameters:
identifier - Identifier of a host, process, or connector binding to get information for. For example "hostname", or "hostname.processname", or "hostname.processname.bindingname"

If identifier is "*", this method returns information about all connection pools in the system.

Returns:
a Collection of com.metamatrix.admin.api.ConnectionPool
Throws:
AdminException - if there's a system error.
Since:
6.1
See Also:
MonitoringAdmin.getConnectionPoolStats(java.lang.String)

getRequests

public java.util.Collection getRequests(java.lang.String identifier)
                                 throws AdminException
Get monitoring information about requests.

Specified by:
getRequests in interface MonitoringAdmin
Parameters:
identifier - Identifier of a session or request to get information for. For example "sessionID" or "sessionID.requestID".

If identifier is "*", this method returns information about all requests in the system.

Returns:
a Collection of com.metamatrix.admin.api.Request
Throws:
AdminException - if there's a system error.
Since:
4.3

getResources

public java.util.Collection getResources(java.lang.String identifier)
                                  throws AdminException
Get monitoring information about resources.

Specified by:
getResources in interface ServerMonitoringAdmin
Parameters:
identifier - Identifier of a resource to get information for. For example "resourceName".

If identifier is "*", this method returns information about all resources in the system.

Returns:
a Collection of com.metamatrix.admin.api.Resource
Throws:
AdminException - if there's a system error.
Since:
4.3
See Also:
ServerMonitoringAdmin.getResources(java.lang.String)

getSessions

public java.util.Collection<Session> getSessions(java.lang.String identifier)
                                          throws AdminException
Get monitoring information about sessions.

Specified by:
getSessions in interface MonitoringAdmin
Parameters:
identifier - Identifier of a session to get information for. For example "sessionID".

If identifier is "*", this method returns information about all sessions in the system.

Returns:
a Collection of com.metamatrix.admin.api.Session
Throws:
AdminException - if there's a system error.
Since:
4.3
See Also:
MonitoringAdmin.getSessions(java.lang.String)

getSourceRequests

public java.util.Collection getSourceRequests(java.lang.String identifier)
                                       throws AdminException
Get monitoring information about source requests.

Specified by:
getSourceRequests in interface MonitoringAdmin
Parameters:
identifier - Identifier of a session or source request to get information for. For example "sessionID" or "sessionID.requestID".

If identifier is "*", this method returns information about all source requests in the system.

Returns:
a Collection of com.metamatrix.admin.api.SourceRequest
Throws:
AdminException - if there's a system error.
Since:
4.3
See Also:
MonitoringAdmin.getSourceRequests(java.lang.String)

getSystem

public SystemObject getSystem()
                       throws AdminException
Get monitoring information about the sytem at large.

Returns:
object containing information about the system.
Throws:
AdminException
Since:
4.3
See Also:
com.metamatrix.admin.api.server.ServerMonitoringAdmin#getSystem()

getVDBs

public java.util.Collection getVDBs(java.lang.String identifier)
                             throws AdminException
Get monitoring information about VDBs (Virtual Databases).

Specified by:
getVDBs in interface MonitoringAdmin
Parameters:
identifier - Identifier of a VDB to get information for. For example "vdbname".

If identifier is "*", this method returns information about all VDBs in the system.

Returns:
a Collection of com.metamatrix.admin.api.VDB
Throws:
AdminException - if there's a system error.
Since:
4.3
See Also:
MonitoringAdmin.getVDBs(java.lang.String)

getPropertyDefinitions

public java.util.Collection getPropertyDefinitions(java.lang.String identifier,
                                                   java.lang.String className)
                                            throws AdminException
Throws:
AdminException
Since:
4.3
See Also:
org.teiid.adminapi.MonitoringAdmin#getPropertyDefinitions(java.lang.String, java.lang.String)

exportLogs

public byte[] exportLogs()
                  throws AdminException
Description copied from interface: ServerMonitoringAdmin
Export the server logs to a byte[]. The bytes contain the contents of a .zip file containing the logs.

Specified by:
exportLogs in interface ServerMonitoringAdmin
Returns:
the logs, as a byte[].
Throws:
AdminException
Since:
4.3
See Also:
ServerMonitoringAdmin.exportLogs()

trimString

protected static java.lang.String trimString(java.lang.String string)
Returns:
Return a trimmed, not null version of the specified string.
Since:
4.3

getTransactions

public java.util.Collection<Transaction> getTransactions()
                                                  throws AdminException
Description copied from interface: MonitoringAdmin
Get all transaction matching the identifier.

Specified by:
getTransactions in interface MonitoringAdmin
Returns:
Throws:
AdminException

getConnectorTypePropertyDefinitions

public java.util.Collection<PropertyDefinition> getConnectorTypePropertyDefinitions(java.lang.String connectorTypeIdentifier)
                                                                             throws AdminException
Description copied from interface: MonitoringAdmin
Get all of the available Configuration Properties for the specified AdminObject, and details about them.

Specified by:
getConnectorTypePropertyDefinitions in interface MonitoringAdmin
Returns:
Throws:
AdminException

getConnectorBindingsInVDB

public java.util.Collection<ConnectorBinding> getConnectorBindingsInVDB(java.lang.String vdbName,
                                                                        java.lang.String vdbVersion)
                                                                 throws AdminException
Description copied from interface: MonitoringAdmin
Get all the Connector Bindings for the given VDB identifier pattern

Specified by:
getConnectorBindingsInVDB in interface MonitoringAdmin
Parameters:
vdbName - - Name of the VDB
vdbVersion - - version of the VDB
Returns:
Collection of ConnectorBinding
Throws:
AdminException - if there's a system error.


Copyright © 2009. All Rights Reserved.