Package ariba.util.core

Examples of ariba.util.core.GrowOnlyHashtable


    /////////////
    // Awake
    /////////////
    protected void awake ()
    {
        GrowOnlyHashtable go =
            application().getSessionStatusManager().getSessionStatusTable();
        if (go.isEmpty()) {
            return;
        }
        _sessionMap = (Map)go.elementsArray()[0];

        if (_sessionMap != null) {
            _sessions = _sessionMap.keySet().toArray();
        }
    }
View Full Code Here


        if (elementIdPath == null) {
            char[] path = (char[])elementIdGenerator.charArrayManager().trimmedArrayCopy();
            elementIdPath = new AWElementIdPath(path);
            ElemendIdInstantiationsCounter.addCount(1);
            if (ElementIdPaths.size() > ElementIdCacheMaxSize) {
                ElementIdPaths = new GrowOnlyHashtable();
                ElementIdPathsByString = new GrowOnlyHashtable();
                Log.aribawebexec_elementId.info(10547);
            }
            ElementIdPaths.put(elementIdPath, elementIdPath);
        }
        return elementIdPath;
View Full Code Here

    }

    protected GrowOnlyHashtable initSessionStatusTable ()
    {
        // Dummy implementation, just used to convert from GrowOnlyHash to Map
        GrowOnlyHashtable table = new GrowOnlyHashtable(1);
        table.put(this,MapUtil.map());
        return table;
    }
View Full Code Here

        // I would have cleared the bindingsHashtable after that, but we have code below
        // to remove _type and _value and I didn't want to disturb that.
        super.init(tagName, EmptyHashtable);
        if (AWConcreteApplication.IsAutomationTestModeEnabled &&
            (ValueBindingKeyPaths == null)) {
            ValueBindingKeyPaths = new GrowOnlyHashtable();
        }
        //INSTANCE_COUNT++;
        //debugString("**** genericElementCount: " + INSTANCE_COUNT);
        _type = (AWBinding)bindingsHashtable.remove(AWBindingNames.type);
        _value = (AWBinding)bindingsHashtable.remove(AWBindingNames.value);
View Full Code Here

    private AWComponentApiManager ()
    {
        _componentApiPackageTable = MapUtil.map();
        _missingComponentApiPackageTable = MapUtil.map();

        _componentPackageTable = new GrowOnlyHashtable();
    }
View Full Code Here

        // force registration or orderedList class extension
        Log.aribaweb.debug("AWConcreteApplication.valueUnbound() called with session timeout %d",
                           initSessionTimeout());
        // Touch the AWOrderdList class to force it to initialize.
        OrderedList.class.getName();
        _componentDefinitionHashtable = new GrowOnlyHashtable();
        _httpSessionCheckoutManager = createHttpSessionCheckoutManager();
        _sessionTimeout = initSessionTimeout();
        initStandardClasses();
        IsActionLoggingEnabled = initActionLoggingEnabled();
        IsRequestLoggingEnabled = initRequestLoggingEnabled();
        IsResponseLoggingEnabled = initResponseLoggingEnabled();
        IsDirectConnectEnabled = initDirectConnectEnabled();
        IsCookieSessionTrackingEnabled = initCookieSessionTrackingEnabled();
        RemoteHostMask = initRemoteHostMask();
        _monitorStats = createMonitorStats();
        _bookmarker = createBookmarker();
        _adaptorUrl = initAdaptorUrl();
        _adaptorUrlSecure = initAdaptorUrlSecure();
        _brandManager = initBrandManager();
        _nodeManager = initNodeManager();
        initNodeValidators();
        _componentConfigurationSources = new GrowOnlyHashtable();
        _configParameters = initConfigParameters();
        _pollInterval = initPollInterval();
        //force init of AWTdContainer (registers td with template parser)
        String className = "ariba.ui.aribaweb.html.AWTdContainer";
        Assert.that(AWUtil.classForName(className) != null, "Unable to load %s", className);
View Full Code Here

        public KeyData (String key, int id)
        {
            _key = key;
            _id = id;
            _ruleVecs = new GrowOnlyHashtable();
            _any = get(KeyAny);

        }
View Full Code Here

        return error;
    }

    protected void clearCaches ()
    {
        _MatchToPropsCache = new GrowOnlyHashtable();
        _PropertyMapUniquer = new GrowOnlyHashtable();
        _identityCache = new GrowOnlyHashtable.IdentityMap();
    }
View Full Code Here

     * @param f the file
     * @return timestamp (possibly slightly out of date)
     */
    public static long fileLastModified (File f)
    {
        GrowOnlyHashtable table = _FileStatCache;
        if (table == null) {
            table = new GrowOnlyHashtable.IdentityMap();
            _FileStatCache = table;
        }

        Long ts = (Long)table.get(f);
        if (ts == null) {
            ts = Constants.getLong(f.lastModified());
            table.put(f, ts);
        }
        return ts.longValue();
    }
View Full Code Here

       Scans fields of pool-shared components to ensure that they've been reset.
    */
    protected void ensureFieldValuesClear (Class leafClass, Class topClass)
    {
        if (ScannedClasses == null) {
            ScannedClasses = new GrowOnlyHashtable();
        }
        Object data = ScannedClasses.get(leafClass);

        if (data == null) {
            // compute and cache a flattened out list of scannable fields
View Full Code Here

TOP

Related Classes of ariba.util.core.GrowOnlyHashtable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.