com.metamatrix.metadata.runtime
Class AbstractVDBDeleteUtility

java.lang.Object
  extended by com.metamatrix.metadata.runtime.AbstractVDBDeleteUtility
Direct Known Subclasses:
RuntimeVDBDeleteUtility, StartupVDBDeleteUtility

public abstract class AbstractVDBDeleteUtility
extends java.lang.Object

Utility class that deletes VDBs that were marked for deletion.


Constructor Summary
AbstractVDBDeleteUtility()
          Constructor
 
Method Summary
abstract  boolean checkSessions(VirtualDatabaseID vdbID)
          Check for any sessions logged into the specified VDB.
abstract  boolean checkSessions(VirtualDatabaseID vdbID, MetaMatrixSessionID sessionID)
          Check for any sessions logged into the specified VDB.
abstract  void deleteAuthorizationPoliciesForVDB(java.lang.String VDBName, java.lang.String VDBVersion)
          For a given VDB version, delete all AuthorizationPolicies associated with it.
 void deleteVDBMarkedForDelete(VirtualDatabaseID vdbID)
          Deletes the given VDB version provided it has been marked for delete and has no user sessions logged in to it.
 void deleteVDBsMarkedForDelete(MetaMatrixSessionID id)
           
protected  java.util.Collection getSessionsLoggedInToVDB(java.lang.String VDBName, java.lang.String VDBVersion)
          For a given VDB version, get all sessionIDs logged in to it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractVDBDeleteUtility

public AbstractVDBDeleteUtility()
Constructor

Method Detail

deleteVDBMarkedForDelete

public void deleteVDBMarkedForDelete(VirtualDatabaseID vdbID)
                              throws VirtualDatabaseException,
                                     MetaMatrixComponentException
Deletes the given VDB version provided it has been marked for delete and has no user sessions logged in to it.

Throws:
VirtualDatabaseException - If an error occurs while deleting the VDB.
MetaMatrixComponentException - If an erorr occurs while accessing components required to delete the VDB.

deleteVDBsMarkedForDelete

public void deleteVDBsMarkedForDelete(MetaMatrixSessionID id)
                               throws MetaMatrixProcessingException,
                                      MetaMatrixComponentException
Throws:
MetaMatrixProcessingException
MetaMatrixComponentException
Since:
4.3
See Also:
com.metamatrix.platform.util.VDBDeleteUtility#deleteVDBsMarkedForDelete(com.metamatrix.platform.security.api.MetaMatrixSessionID)

getSessionsLoggedInToVDB

protected java.util.Collection getSessionsLoggedInToVDB(java.lang.String VDBName,
                                                        java.lang.String VDBVersion)
                                                 throws MetaMatrixComponentException
For a given VDB version, get all sessionIDs logged in to it.

Throws:
MetaMatrixComponentException

deleteAuthorizationPoliciesForVDB

public abstract void deleteAuthorizationPoliciesForVDB(java.lang.String VDBName,
                                                       java.lang.String VDBVersion)
                                                throws MetaMatrixComponentException
For a given VDB version, delete all AuthorizationPolicies associated with it.

Throws:
MetaMatrixComponentException

checkSessions

public abstract boolean checkSessions(VirtualDatabaseID vdbID,
                                      MetaMatrixSessionID sessionID)
                               throws MetaMatrixComponentException
Check for any sessions logged into the specified VDB.

Parameters:
vdbID -
sessionID -
Returns:
true if there are no sessions logged in to the specivied VDB, or if there is one session logged in and it is the specified sessionID.
Throws:
MetaMatrixComponentException
Since:
4.3

checkSessions

public abstract boolean checkSessions(VirtualDatabaseID vdbID)
                               throws MetaMatrixComponentException
Check for any sessions logged into the specified VDB.

Parameters:
vdbID -
Returns:
true if there are no sessions logged in to the specivied VDB.
Throws:
MetaMatrixComponentException
Since:
4.3


Copyright © 2009. All Rights Reserved.