input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
protected void stop app running false stop all au specific managers stop all au managers super stop
|
stop the daemon by stopping the managers in the reverse order of
|
public boolean get follow link flag return follow link
|
check if the crawler need to follow the link it parsed
|
private void stop reindexing log debug number of reindexing tasks being stopped reindexing tasks size quit any running reindexing tasks synchronized reindexing tasks for metadata manager reindexing task task reindexing tasks values task cancel reindexing tasks clear
|
stop any pending reindexing operations
|
public list get sorted rows if rows null return collections empty list return get sorted rows get default sort rules
|
gets a list of
|
public int get bytes per ms hash estimate try return get bytes per ms hash estimate null default digest catch ioexception e return default speed
|
returns a hash estimate based on the default algorithm
|
public list get sorted rows list sort rules collections sort rows new sort rule comparator sort rules get column descriptor map return rows
|
same as get sorted rows but will sort according to the rules
|
public void wait until aus started throws interrupted exception aus started wait full deadline max
|
wait until the initial set of aus have been started
|
public int get slowest hash speed return current config get int param param slowest rate default slowest rate
|
return the hash speed of the slowest cache
|
public boolean are aus started return aus started is full
|
return true if all aus have been started
|
public void set default sort rules list default sort rules this default sort rules default sort rules
|
sets the default
|
public crawl window get crawl window return window
|
returns the crawl window or null
|
public boolean is indexing enabled return reindexing enabled
|
gets indexing enabled state of this manager
|
public void set crawl window crawl window window this window window
|
sets the crawl window null for none to determine when crawling is
|
public crawl rule get crawl rule return rule
|
return the crawl rule
|
public boolean is included string url return rule null true rule match url crawl rule include
|
determine whether a url is part of this crawl spec
|
public list get default sort rules if default sort rules null default sort rules make default sort rules return default sort rules
|
gets the default
|
public void set resortable boolean is resortable this is resortable is resortable
|
set whether the table may be resorted by the user via the ui
|
public void set indexing enabled boolean enable boolean was enabled reindexing enabled reindexing enabled enable log debug enabled reindexing enabled start or stop reindexing if initialized if data source null if was enabled reindexing enabled start reindexing start reindexing else if was enabled reindexing enabled stop any pending reindexing operations stop reindexing
|
set indexing enabled state of this manager
|
public interface link value extends embedded value
|
marker interface for embedded values that represent some form of link
|
public string get url return prefix
|
returns the prefix url
|
public displayed value set color string color this color color return this
|
set the color
|
public string get upper bound return upper bound
|
return the upper bound of the range
|
protected int get actionables return set delable set addable set reactable
|
return all the actionable bits for the set
|
public string get lower bound return lower bound
|
return the lower bound of the range
|
protected int get major order return 1
|
causes this set to sort first
|
public interface mutable extends mime type info public impl set hash filter factory filter factory fact public impl set crawl filter factory filter factory fact public impl set link extractor factory link extractor factory fact public impl set link rewriter factory link rewriter factory fact public impl set file metadata extractor factory map map string file metadata extractor factory map
|
sub interface adds setters
|
public displayed value set display string string display string this display str display string return this
|
set the human friendly display string
|
public string get display string return display str
|
get the human friendly display string if any
|
public tdb au get tdb au return tdb au
|
returns the tdb au on which this title config was based
|
public void set plugin version string plugin version this plugin version plugin version
|
set the required plugin version
|
public boolean has display string return display str null
|
return true if a human friendly display string has been supplied
|
public void set journal title string journal title this journal title journal title
|
set the journal title string
|
public void set properties map string string props this props props
|
set the property list
|
public void set params list config param assignment params this params params
|
set the parameter value list
|
public lockss key store get lockss key store string name return get lockss key store name null
|
return the named lockss key store or null
|
public void set attributes map string string attrs this attrs attrs
|
set the attributes
|
public key manager factory get key manager factory string name return get key manager factory name null
|
convenience method to return the key manager factory from the named
|
public string get journal title return journal title
|
return the journal title string
|
public trust manager factory get trust manager factory string name return get trust manager factory name null
|
convenience method to return the trust manager factory from the named
|
public string get plugin version return plugin version
|
return the minimum plugin version
|
public boolean get bold return bold
|
get the bold
|
public void set estimated size long size this est size size
|
set the estimated size
|
private boolean is available string resource object token assumes synchronized object cur tok in use get resource return cur tok null cur tok equals token
|
p determines if a resource is available
|
private boolean reserve string resource object token assumes synchronized object cur tok in use get resource boolean ret false if cur tok null in use put resource token logger info resource resource now held by token token ret true else if cur tok equals token logger info resource resource still held by token token ret true return ret
|
p reserves a resource if it is available
|
private boolean release string resource object token assumes synchronized object cur tok in use get resource boolean ret false if cur tok null logger info resource resource still not held by token ret true else if cur tok equals token in use remove resource logger info resource resource no longer held by token ret true return ret
|
p releases a resource
|
public configuration get config if params null return config manager empty configuration configuration config config manager new configuration for config param assignment cpa params config param descr cpd cpa get param descr if cpd is default only config put cpd get key cpa get value return config
|
temporary until clients fixed
|
public list get usable tcp ports object server token list unfiltered ports platform util get instance get unfiltered tcp ports port available tcp available new port available public boolean is available int port object token return is tcp port available port token return parse usable port list unfiltered ports server token tcp available
|
return list of unfiltered tcp ports not already assigned to another
|
public boolean matches config configuration config if params null config null return false for config param assignment cpa params config param descr cpd cpa get param descr if cpd is definitional if cpa is editable string util equal strings cpa get value config get cpd get key return false return true
|
return true if the supplied config is consistent with this title
|
public boolean is single au plugin plugin if params null return false for config param descr reqd plugin get au config descrs if reqd is definitional if assigns descr reqd return false return true
|
return true if this title config completely defines an au i ie i
|
public string get footnote return footnote
|
get the footnote
|
public void start service try url set urlstream handler factory new lockss url factory catch error e if start cnt 0 throw e else log warning duplicate init ok if testing start cnt
|
install the urlstream handler factory
|
public collection get titles return filter titles daemon get plugin manager find all title configs
|
return the titles in the set
|
public int compare to object o base title set oset base title set o if get major order oset get major order return get major order oset get major order return get name compare to ignore case oset get name
|
compare two title sets first by artificial sort order then by name
|
public config param descr set key string key this key key return this
|
set the parameter key
|
protected void generate beginning string buffer buffer
|
p generates the leading part of the fragment
|
protected void generate empty string buffer buffer
|
p generates a fragment appropriate for an empty url stem
|
public string get display name return display name null display name get key
|
return the display name or the key if no display name set
|
protected void generate end string buffer buffer
|
p generates the closing part of the fragment
|
public config param descr set display name string display name this display name display name return this
|
set the parameter display name
|
public config param descr set description string description this description description return this
|
set the parameter description
|
private boolean has article metadata archival unit au if au get article iterator metadata target open url null return false has article metadata if there is a metadata extractor if use metadata extractor plugin p au get plugin if p get article metadata extractor metadata target open url au null return true otherwise has metadata if can create it from title config s tdb au title config tc au get title config return tc null tc get tdb au null
|
determines whether the au has article metadata
|
protected void common header string buffer buffer buffer append pac file n buffer append generated buffer append time base now date to string buffer append by lockss cache buffer append get proxy host buffer append n n
|
p generates a typical header
|
public config param descr set type int type this type type if no size has been set set a reasonable default for some types if size 1 switch type case type year size 4 break case type boolean size 4 break case type int case type long case type pos int size 10 break case type time interval size 10 break default return this
|
set the expected value type
|
public int get size return size 1 size 0
|
return the suggested input field size or 0 if no suggestion
|
public config param descr set size int size this size size return this
|
set the suggested input field size
|
public config param descr set definitional boolean is definitional definitional is definitional return this
|
set the definitional flag
|
public boolean is definitional return definitional
|
a parameter is definitional if its value is integral to the identity
|
public config param descr set default only boolean is default only default only is default only return this
|
set the default only flag
|
protected void common header string buffer buffer buffer append ezproxy config generated buffer append time base now date to string buffer append by lockss cache buffer append get proxy host buffer append n
|
p generates a typical header
|
public boolean is default only return default only
|
default only parameters in a title config are not copied to the au
|
protected void common header string buffer buffer buffer append generated buffer append time base now date to string buffer append by lockss cache buffer append get proxy host buffer append n n
|
p generates a typical header
|
public config param descr set derived boolean is derived derived is derived return this
|
set the derived flag
|
public boolean is derived return derived
|
derived values are computed from explicitly set values such as
|
protected string encode acl name return get proxy host replace all domains
|
p encodes this caches host name with dashes to produce an
|
public void cancel if is finished status reindexing status success status reindexing status failed super cancel set finished
|
cancel current task without rescheduling
|
public string get sample value string res sample values get type if res null res sample value return res
|
return a legal value for the parameter
|
public void reschedule if is finished status reindexing status success status reindexing status rescheduled super cancel set finished
|
cancel and mark current task for rescheduling
|
public string short string string buffer sb new string buffer 40 sb append get display name if key equals display name sb append sb append key sb append return sb to string
|
returns a short string suitable for error messages
|
protected object post unmarshal resolve lockss app context return unique instance this
|
p a post deserialization resolution method for serializers that
|
public string generate ezproxy fragment set url stems string url return new ezproxy fragment builder url generate fragment url stems
|
generate an ezproxy config fragment from the url stem map
|
public string generate pac file set url stems string url boolean is direct first return new pac file fragment builder url is direct first generate fragment url stems
|
generate a pac file string from the url stem map
|
protected int get major order return 2
|
sort this second
|
public set get url stems return get plugin mgr get all stems
|
convenience method to get url stem map for all aus
|
private collection get aus return get plugin mgr get all aus
|
convenience method to get all aus
|
public void set editable boolean is editable this is editable is editable
|
set the editable flag
|
private void task warning string s int hashcode s hash code if au log table add hashcode log warning s
|
issue warning this reindexing task
|
public void set value string value this value value is editable string util is null string value
|
set the input field value reset the default editability true iff
|
protected void now running running sem fill
|
declare that the thread is running and initialized
|
private void now exited exited sem fill
|
declare that the thread is just about to exit
|
public boolean wait running deadline timeout try return running sem wait full timeout catch interrupted exception e return running sem is full
|
wait until the thread is running and initialized
|
public boolean wait running return wait running deadline max
|
wait until the thread is running and initialized
|
public boolean wait exited deadline timeout if is interrupted return false try if log is debug3 log debug3 waiting for get name to exit return exited sem wait full timeout catch interrupted exception e interrupt maintain interrupted status return exited sem is full
|
wait until the thread has exited more precisely until just before
|
public boolean wait exited return wait exited deadline max
|
wait until the thread has exited more precisely until just before
|
public void set priority string name int default priority int prio get priority from param name default priority if prio 1 log debug3 leaving priority of get name thread at get priority return log debug2 setting priority of get name thread to prio set priority prio
|
set the priority of the thread from a parameter value
|
public void start wdog long interval stop wdog if interval 0 this interval interval log event starting true timer dead deadline in interval timer req timer queue schedule timer dead timer callback null else log event not starting true
|
start a watchdog timer that will expire if not poked for interval
|
public void start wdog string name long default interval start wdog get interval from param name default interval
|
start a watchdog timer that will expire if not poked for interval
|
public void stop wdog if interval 0 interval 0 if timer req null timer queue cancel timer req timer req null log event stopping false
|
stop the watchdog so that it will not trigger
|
public string get name if thread null return thread get name else return name
|
return the name of the thread the lockss runnable is running in if
|
public void poke wdog if timer dead null interval 0 timer dead expire in interval log event resetting false
|
refresh the watchdog for another interval milliseconds
|
public void set thread name string new name name new name if thread null thread set name name
|
set the name of the thread the lockss runnable is running in if
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.