applications.proxy.utils
Class UrlIngesterPreferences


public class UrlIngesterPreferences

Description of the Class

Author:
nideffer
created October 4, 2001

Field Summary
 protected final static StringCONFIGURATION_DEFAULT_URL_INGESETER_ROOT
           
 protected final static intDEFAULT_MAX_URLS_INGESTED_PER_INTERVAL
           
 protected final static intDEFAULT_MAX_URLS_INGESTED_PER_SESSION
           
 protected final static StringDEFAULT_SPACE
           
 protected final static StringIGNORED_LINK_TAG_NAME
           
 protected final static StringIGNORED_LINK_URL_ATTRIBUTE
           
 protected final static StringIGNORED_LINKS_TAG_NAME
           
 private static Collectionm_ignoredLinks
           
 private static intm_maxUrlsIngestedPerInterval
           
 private static intm_maxUrlsIngestedPerSession
           
 private static Stringm_mostRecentKeywords
           
 private static Stringm_mostRecentSpace
           
 private static Mapm_urlsIngestedThisSessionMap
           
 protected final static StringMAX_URLS_INGESTED_PER_INTERVAL_ATTRIBUTE
           
 protected final static StringMAX_URLS_INGESTED_PER_SESSION_ATTRIBUTE
           
 protected final static StringMOST_RECENT_KEYWORDS_ATTRIBUTE
           
 protected final static StringMOST_RECENT_SPACE_ATTRIBUTE
           
 protected final static StringURL_INGESTER_PREFS_FILENAME
           

Method Summary
 static synchronized voidaddIgnoredLink(String sIgnoredLink)
          Adds a feature to the IgnoredLink attribute of the UrlIngesterPreferences class
 static synchronized voidaddIngestedLink(String url)
          Adds a feature to the IngestedLink attribute of the UrlIngesterPreferences class
 static synchronized booleancanIngestMoreUrlsThisSession()
          Description of the Method
 static synchronized voiddecrementUrlsIngested()
          Description of the Method
 static synchronized voiddumpTally()
          Description of the Method
 protected static CollectiongetIgnoredLinks()
          Gets the IgnoredLinks attribute of the UrlIngesterPreferences class
 static intgetMaxUrlsIngestedPerInterval()
          Gets the MaxUrlsIngestedPerInterval attribute of the UrlIngesterPreferences class
 static intgetMaxUrlsIngestedPerSession()
          Gets the MaxUrlsIngestedPerSession attribute of the UrlIngesterPreferences class
 static StringgetMostRecentKeywords()
          Gets the MostRecentKeywords attribute of the PhatClientPreferences class
 static StringgetMostRecentSpace()
          Gets the MostRecentSpace attribute of the UrlIngesterPreferences class
 static synchronized booleanisIgnoredLink(String sUrl)
          Gets the IgnoredLink attribute of the UrlIngesterPreferences class
 static synchronized voidload()
          Description of the Method
 static synchronized voidsave()
          Description of the Method
 static voidsetMaxUrlsIngestedPerInterval(int maxUrlsIngestedPerInterval)
          Sets the MaxUrlsIngestedPerInterval attribute of the UrlIngesterPreferences class
 protected static voidsetMaxUrlsIngestedPerSession(int maxUrlsIngestedPerSession)
          Sets the MaxUrlsIngestedPerSession attribute of the UrlIngesterPreferences class
 static voidsetMostRecentKeywords(String keywords)
          Sets the MostRecentKeywords attribute of the PhatClientPreferences class
 static voidsetMostRecentSpace(String space)
          Sets the MostRecentSpace attribute of the UrlIngesterPreferences class

Field Detail

CONFIGURATION_DEFAULT_URL_INGESETER_ROOT

protected final static String CONFIGURATION_DEFAULT_URL_INGESETER_ROOT

DEFAULT_MAX_URLS_INGESTED_PER_INTERVAL

protected final static int DEFAULT_MAX_URLS_INGESTED_PER_INTERVAL

DEFAULT_MAX_URLS_INGESTED_PER_SESSION

protected final static int DEFAULT_MAX_URLS_INGESTED_PER_SESSION

DEFAULT_SPACE

protected final static String DEFAULT_SPACE

IGNORED_LINK_TAG_NAME

protected final static String IGNORED_LINK_TAG_NAME

IGNORED_LINK_URL_ATTRIBUTE

protected final static String IGNORED_LINK_URL_ATTRIBUTE

IGNORED_LINKS_TAG_NAME

protected final static String IGNORED_LINKS_TAG_NAME

m_ignoredLinks

private static Collection m_ignoredLinks

m_maxUrlsIngestedPerInterval

private static int m_maxUrlsIngestedPerInterval

m_maxUrlsIngestedPerSession

private static int m_maxUrlsIngestedPerSession

m_mostRecentKeywords

private static String m_mostRecentKeywords

m_mostRecentSpace

private static String m_mostRecentSpace

m_urlsIngestedThisSessionMap

private static Map m_urlsIngestedThisSessionMap

MAX_URLS_INGESTED_PER_INTERVAL_ATTRIBUTE

protected final static String MAX_URLS_INGESTED_PER_INTERVAL_ATTRIBUTE

MAX_URLS_INGESTED_PER_SESSION_ATTRIBUTE

protected final static String MAX_URLS_INGESTED_PER_SESSION_ATTRIBUTE

MOST_RECENT_KEYWORDS_ATTRIBUTE

protected final static String MOST_RECENT_KEYWORDS_ATTRIBUTE

MOST_RECENT_SPACE_ATTRIBUTE

protected final static String MOST_RECENT_SPACE_ATTRIBUTE

URL_INGESTER_PREFS_FILENAME

protected final static String URL_INGESTER_PREFS_FILENAME
Method Detail

addIgnoredLink

public static synchronized void addIgnoredLink(String sIgnoredLink)
Adds a feature to the IgnoredLink attribute of the UrlIngesterPreferences class
Parameters:
sIgnoredLink - The feature to be added to the IgnoredLink attribute
Since:

addIngestedLink

public static synchronized void addIngestedLink(String url)
Adds a feature to the IngestedLink attribute of the UrlIngesterPreferences class
Parameters:
url - The feature to be added to the IngestedLink attribute
Since:

canIngestMoreUrlsThisSession

public static synchronized boolean canIngestMoreUrlsThisSession()
Description of the Method
Returns: Description of the Returned Value
Since:

decrementUrlsIngested

public static synchronized void decrementUrlsIngested()
Description of the Method
Since:

dumpTally

public static synchronized void dumpTally()
Description of the Method
Since:

getIgnoredLinks

protected static Collection getIgnoredLinks()
Gets the IgnoredLinks attribute of the UrlIngesterPreferences class
Returns: The IgnoredLinks value
Since:

getMaxUrlsIngestedPerInterval

public static int getMaxUrlsIngestedPerInterval()
Gets the MaxUrlsIngestedPerInterval attribute of the UrlIngesterPreferences class
Returns: The MaxUrlsIngestedPerInterval value
Since:

getMaxUrlsIngestedPerSession

public static int getMaxUrlsIngestedPerSession()
Gets the MaxUrlsIngestedPerSession attribute of the UrlIngesterPreferences class
Returns: The MaxUrlsIngestedPerSession value
Since:

getMostRecentKeywords

public static String getMostRecentKeywords()
Gets the MostRecentKeywords attribute of the PhatClientPreferences class
Returns: The MostRecentKeywords value
Since:

getMostRecentSpace

public static String getMostRecentSpace()
Gets the MostRecentSpace attribute of the UrlIngesterPreferences class
Returns: The MostRecentSpace value
Since:

isIgnoredLink

public static synchronized boolean isIgnoredLink(String sUrl)
Gets the IgnoredLink attribute of the UrlIngesterPreferences class
Parameters:
sUrl - Description of Parameter
Returns: The IgnoredLink value
Since:

load

public static synchronized void load()
Description of the Method
Since:

save

public static synchronized void save()
Description of the Method
Since:

setMaxUrlsIngestedPerInterval

public static void setMaxUrlsIngestedPerInterval(int maxUrlsIngestedPerInterval)
Sets the MaxUrlsIngestedPerInterval attribute of the UrlIngesterPreferences class
Parameters:
maxUrlsIngestedPerInterval - The new MaxUrlsIngestedPerInterval value
Since:

setMaxUrlsIngestedPerSession

protected static void setMaxUrlsIngestedPerSession(int maxUrlsIngestedPerSession)
Sets the MaxUrlsIngestedPerSession attribute of the UrlIngesterPreferences class
Parameters:
maxUrlsIngestedPerSession - The new MaxUrlsIngestedPerSession value
Since:

setMostRecentKeywords

public static void setMostRecentKeywords(String keywords)
Sets the MostRecentKeywords attribute of the PhatClientPreferences class
Parameters:
keywords - The new MostRecentKeywords value
Since:

setMostRecentSpace

public static void setMostRecentSpace(String space)
Sets the MostRecentSpace attribute of the UrlIngesterPreferences class
Parameters:
space - The new MostRecentSpace value
Since: