FileDocCategorySizeDatePackage
ManualChangeManager.javaAPI DocGlassfish v2 API4966Fri May 04 22:33:46 BST 2007com.sun.enterprise.admin.server.core

ManualChangeManager

public final class ManualChangeManager extends Object
This class holds results for all instances in this admin server. The APIs in this class mirror ones in InstanceEnvironment. InstanceEnvironment actually checks timestamps, etc whereas this file gets it from cache and is significantly faster.
author
Sridatta
version
1.1

Fields Summary
static Logger
logger
Logger for admin service
private static Hashtable
result
Constructors Summary
Methods Summary
public static voidaddManualChangeStatus(java.lang.String instance, ManualChangeStatus mcs)

        result.put(instance, mcs);
    
public static ManualChangeStatusgetManualChangeStatus(java.lang.String instance)

        return (ManualChangeStatus) result.get(instance);
    
public static booleanhasHotChanged(java.lang.String instance)

            
         
         ManualChangeStatus mcs = (ManualChangeStatus)result.get(instance);
        if(mcs == null) return false; // not calculated yet. so return false
        
        return mcs.isChanged();
    
private static booleanhasHotInitChanged(java.lang.String instanceName)

        ManualChangeStatus mcs = getManualChangeStatus(instanceName);
        if(mcs == null) return false;
        return mcs.isInitFileChanged();
    
private static booleanhasHotMimeChanged(java.lang.String instanceName)

        ManualChangeStatus mcs = getManualChangeStatus(instanceName);
        if(mcs == null) return false;
        return mcs.isMimeFileChanged();
    
private static booleanhasHotObjectChanged(java.lang.String instanceName)

        ManualChangeStatus mcs = getManualChangeStatus(instanceName);
        if(mcs == null) return false;
        return mcs.isObjectFileChanged();
    
private static booleanhasHotRealmsKeyChanged(java.lang.String instanceName)

         ManualChangeStatus mcs = getManualChangeStatus(instanceName);
        if(mcs == null) return false;
        return mcs.isRealmsKeyFileChanged();
    
private static booleanhasHotVirtualServerConfFilesChanged(java.lang.String instanceName)

        ManualChangeStatus mcs = getManualChangeStatus(instanceName);
        if(mcs == null) return false;
        return mcs.isVirtualServerConfFilesChanged();
    
public static booleanhasHotXmlChanged(java.lang.String instanceName)

       ManualChangeStatus mcs = getManualChangeStatus(instanceName);
        if(mcs == null) return false;
        return mcs.isServerXmlFileChanged();
    
public static voidremoveManualChangeStatus(java.lang.String instance)

        result.remove(instance);
    
public static voidremoveServerXmlManualChangeStatus(java.lang.String instance)

        ManualChangeStatus m = getManualChangeStatus(instance);
        if(m != null) {
            m.setServerXmlFileChanged(false);
        }