com.metamatrix.dqp.embedded.admin
Class DQPRuntimeStateAdminImpl

java.lang.Object
  extended by com.metamatrix.dqp.embedded.admin.DQPRuntimeStateAdminImpl
All Implemented Interfaces:
CoreRuntimeStateAdmin, EmbeddedRuntimeStateAdmin

public class DQPRuntimeStateAdminImpl
extends java.lang.Object
implements EmbeddedRuntimeStateAdmin

Since:
4.3

Constructor Summary
DQPRuntimeStateAdminImpl(EmbeddedConnectionFactoryImpl manager)
           
 
Method Summary
protected  AdminException accumulateProcessingException(AdminException parent, java.lang.Exception e)
           
protected  AdminException accumulateSystemException(AdminException parent, java.lang.Exception e)
           
 void cancelRequest(java.lang.String identifier)
           
 void cancelSourceRequest(java.lang.String identifier)
           
 void changeVDBStatus(java.lang.String name, java.lang.String version, int status)
           
 void clearCache(java.lang.String identifier)
           
protected  java.util.Collection convertPropertyDefinitions(ComponentType ctype, java.util.Properties properties)
          Convert a ComponentType and a set of properties into a Collection of com.metamatrix.admin.api.objects.PropertyDefinition objects
protected  java.util.Collection convertPropertyDefinitions(java.util.Properties properties)
          Convert a set of properties into a Collection of com.metamatrix.admin.api.objects.PropertyDefinition objects
protected  java.lang.Object convertToAdminObjects(java.lang.Object src)
           
protected  java.lang.Object convertToAdminObjects(java.lang.Object src, java.lang.Object parent)
           
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.
 EmbeddedConnectionFactoryImpl getManager()
           
 SystemObject getSystem()
          Get the system state.
protected  java.lang.String prettyPrintBindingNames(java.util.List bindings)
           
 void restart()
           
 void setLogListener(EmbeddedLogger listener)
           
 void startConnectorBinding(java.lang.String identifier)
           
 void stop(int millisToWait)
           
 void stopConnectorBinding(java.lang.String identifier, boolean stopNow)
           
 void terminateSession(java.lang.String identifier)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DQPRuntimeStateAdminImpl

public DQPRuntimeStateAdminImpl(EmbeddedConnectionFactoryImpl manager)
Method Detail

stop

public void stop(int millisToWait)
          throws AdminException
Specified by:
stop in interface EmbeddedRuntimeStateAdmin
Throws:
AdminException
Since:
4.3
See Also:
EmbeddedRuntimeStateAdmin.stop(int)

restart

public void restart()
             throws AdminException
Specified by:
restart in interface EmbeddedRuntimeStateAdmin
Throws:
AdminException
Since:
4.3
See Also:
EmbeddedRuntimeStateAdmin.restart()

startConnectorBinding

public void startConnectorBinding(java.lang.String identifier)
                           throws AdminException
Specified by:
startConnectorBinding in interface CoreRuntimeStateAdmin
Throws:
AdminException
Since:
4.3
See Also:
CoreRuntimeStateAdmin.startConnectorBinding(java.lang.String)

stopConnectorBinding

public void stopConnectorBinding(java.lang.String identifier,
                                 boolean stopNow)
                          throws AdminException
Specified by:
stopConnectorBinding in interface CoreRuntimeStateAdmin
Throws:
AdminException
Since:
4.3
See Also:
CoreRuntimeStateAdmin.stopConnectorBinding(java.lang.String, boolean)

clearCache

public void clearCache(java.lang.String identifier)
                throws AdminException
Specified by:
clearCache in interface CoreRuntimeStateAdmin
Throws:
AdminException
Since:
4.3
See Also:
CoreRuntimeStateAdmin.clearCache(java.lang.String)

terminateSession

public void terminateSession(java.lang.String identifier)
                      throws AdminException
Specified by:
terminateSession in interface CoreRuntimeStateAdmin
Throws:
AdminException
Since:
4.3
See Also:
CoreRuntimeStateAdmin.terminateSession(java.lang.String)

cancelRequest

public void cancelRequest(java.lang.String identifier)
                   throws AdminException
Specified by:
cancelRequest in interface CoreRuntimeStateAdmin
Throws:
AdminException
Since:
4.3
See Also:
CoreRuntimeStateAdmin.cancelRequest(java.lang.String)

cancelSourceRequest

public void cancelSourceRequest(java.lang.String identifier)
                         throws AdminException
Specified by:
cancelSourceRequest in interface CoreRuntimeStateAdmin
Throws:
AdminException
Since:
4.3
See Also:
CoreRuntimeStateAdmin.cancelSourceRequest(java.lang.String)

changeVDBStatus

public void changeVDBStatus(java.lang.String name,
                            java.lang.String version,
                            int status)
                     throws AdminException
Specified by:
changeVDBStatus in interface CoreRuntimeStateAdmin
Throws:
AdminException
Since:
4.3
See Also:
CoreRuntimeStateAdmin.changeVDBStatus(java.lang.String, java.lang.String, int)

setLogListener

public void setLogListener(EmbeddedLogger listener)
                    throws AdminException
Specified by:
setLogListener in interface EmbeddedRuntimeStateAdmin
Throws:
AdminException
Since:
4.3
See Also:
com.metamatrix.admin.api.embedded.EmbeddedRuntimeStateAdmin#setLogListener(java.lang.Object)

accumulateSystemException

protected AdminException accumulateSystemException(AdminException parent,
                                                   java.lang.Exception e)

accumulateProcessingException

protected AdminException accumulateProcessingException(AdminException parent,
                                                       java.lang.Exception e)

prettyPrintBindingNames

protected java.lang.String prettyPrintBindingNames(java.util.List bindings)

getManager

public EmbeddedConnectionFactoryImpl getManager()
Returns:
Returns the manager.
Since:
4.3

convertToAdminObjects

protected java.lang.Object convertToAdminObjects(java.lang.Object src)

convertToAdminObjects

protected java.lang.Object convertToAdminObjects(java.lang.Object src,
                                                 java.lang.Object parent)

getSystem

public SystemObject getSystem()
Get the system state.

Returns:

convertPropertyDefinitions

protected java.util.Collection convertPropertyDefinitions(ComponentType ctype,
                                                          java.util.Properties properties)
Convert a ComponentType and a set of properties into a Collection of com.metamatrix.admin.api.objects.PropertyDefinition objects

Parameters:
ctype -
properties -
Returns:
Since:
4.3

convertPropertyDefinitions

protected java.util.Collection convertPropertyDefinitions(java.util.Properties properties)
Convert a set of properties into a Collection of com.metamatrix.admin.api.objects.PropertyDefinition objects

Parameters:
ctype -
properties -
Returns:
Since:
4.3

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


Copyright © 2009. All Rights Reserved.