com.metamatrix.metadata.runtime
Class RuntimeVDBDeleteUtility

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

public class RuntimeVDBDeleteUtility
extends AbstractVDBDeleteUtility

Implementation of RuntimeVDBDeleteUtility to be used with a running server. This implementation requires a running SessionService and AuthenticationService.

This implementation uses the Session service to determine when it is safe to delete a VDB version that has been marked for delete. It is safe to delete a VDB version when no more user sessions are logged in to it.

Since:
4.3

Constructor Summary
RuntimeVDBDeleteUtility()
           
 
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

RuntimeVDBDeleteUtility

public RuntimeVDBDeleteUtility()
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 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 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 if there are no sessions logged in to the specivied VDB.
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.