com.metamatrix.metadata.runtime
Class StartupVDBDeleteUtility

java.lang.Object
  extended by com.metamatrix.metadata.runtime.AbstractVDBDeleteUtility
      extended by com.metamatrix.metadata.runtime.StartupVDBDeleteUtility

public class StartupVDBDeleteUtility
extends AbstractVDBDeleteUtility

Implementation of VDBDeleteUtility to be used while starting the server. This implementation does not need access to running services.

This implementation does not checking of sessions connected to a VDB - it assumes that it's safe to delete all VDBs marked for deletion, because it is meant to be called only at server startup time.

Since:
4.3

Constructor Summary
StartupVDBDeleteUtility()
           
 
Method Summary
 boolean checkSessions(VirtualDatabaseID vdbID)
          Check for any sessions logged into the specified VDB.
 boolean checkSessions(VirtualDatabaseID vdbID, MetaMatrixSessionID sessionID)
          Check for any sessions logged into the specified VDB.
 void deleteAuthorizationPoliciesForVDB(java.lang.String VDBName, java.lang.String VDBVersion)
          For a given VDB version, delete all AuthorizationPolicies associated with it.
 
Methods inherited from class com.metamatrix.metadata.runtime.AbstractVDBDeleteUtility
deleteVDBMarkedForDelete, deleteVDBsMarkedForDelete, getSessionsLoggedInToVDB
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StartupVDBDeleteUtility

public StartupVDBDeleteUtility()
Method Detail

checkSessions

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

Specified by:
checkSessions in class AbstractVDBDeleteUtility
Parameters:
vdbID -
sessionID -
Returns:
true This implementation always returns true because it does not have access to the SessionService.
Throws:
MetaMatrixComponentException
Since:
4.3

checkSessions

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

Specified by:
checkSessions in class AbstractVDBDeleteUtility
Parameters:
vdbID -
Returns:
true This implementation always returns true because it does not have access to the SessionService.
Throws:
MetaMatrixComponentException
Since:
4.3

deleteAuthorizationPoliciesForVDB

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

Specified by:
deleteAuthorizationPoliciesForVDB in class AbstractVDBDeleteUtility
Throws:
MetaMatrixComponentException


Copyright © 2009. All Rights Reserved.