psdi.util

Class TenantRemover

  • java.lang.Object
    • psdi.util.TenantRemover


  • public class TenantRemover
    extends java.lang.Object
    An automic object that provides the lock object for the tenant operation.
    • Constructor Summary

      Constructors 
      Constructor and Description
      TenantRemover()
      Default Constructor
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void cancelInactiveTenants()
      Inactivity tenants who did not access system for 30 days
      static boolean deleteDirectory(java.io.File dir)
      Delete directory
      void remove(java.lang.String ifaceTableEndPoint, boolean deleteImmediatly)
      Remove all deleted tenants
      static void removeFromCOS(int subscriptionId, java.lang.String agreementNum)
      Delete directory
      void suspendInactiveTenants()
      Inactivity tenants who did not access system for 30 days
      void suspendNeverUsedTenants()
      Inactivity tenants who did not access system for 30 days
      void updateCOSInfo()
      Remove all deleted tenants
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TenantRemover

        public TenantRemover()
        Default Constructor
    • Method Detail

      • remove

        public void remove(java.lang.String ifaceTableEndPoint,
                           boolean deleteImmediatly)
                    throws MXException
        Remove all deleted tenants
        Throws:
        MXException
      • deleteDirectory

        public static boolean deleteDirectory(java.io.File dir)
        Delete directory
      • removeFromCOS

        public static void removeFromCOS(int subscriptionId,
                                         java.lang.String agreementNum)
        Delete directory
      • updateCOSInfo

        public void updateCOSInfo()
                           throws MXException
        Remove all deleted tenants
        Throws:
        MXException
      • suspendInactiveTenants

        public void suspendInactiveTenants()
                                    throws MXException
        Inactivity tenants who did not access system for 30 days
        Throws:
        MXException
      • suspendNeverUsedTenants

        public void suspendNeverUsedTenants()
                                     throws MXException
        Inactivity tenants who did not access system for 30 days
        Throws:
        MXException
      • cancelInactiveTenants

        public void cancelInactiveTenants()
                                   throws MXException
        Inactivity tenants who did not access system for 30 days
        Throws:
        MXException