input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
public void start service is inited true if log is debug2 log debug2 get class name start service
|
called to start each service in turn after all services have been
|
public metadata exception get exception return ex
|
return the exception thrown by the validator
|
public void stop service shutting down true checkpoint here unregister config logically we should set the app null here but that breaks several tests which sometimes stop managers twice the app null
|
called to stop a service
|
public lockss app get app return the app
|
return the app instance in which this manager is running
|
protected boolean is app inited return the app is app inited
|
return true iff all the app services have been initialized
|
protected boolean is inited return is inited
|
return true iff this managers init has completed
|
public void set failed deserialization mode int mode switch mode case failed deserialization ignore case failed deserialization rename case failed deserialization copy this failed deserialization mode mode break default string error string attempt to set failed deserialization mode to mode logger error error string throw new illegal argument exception error string
|
p sets the failed deserialization mode for this instance
|
protected void reset config if this instanceof configurable manager configurable manager cmgr configurable manager this configuration cur current config get current config cmgr set config cur config manager empty configuration cur differences null all differences else throw new runtime exception not a configurable manager
|
convenience method to re invoke the managers set config new old
|
public boolean is app inited return app inited
|
true iff all managers have been inited
|
public void set failed serialization mode boolean save temp files failed serialization mode save temp files
|
p sets the failed serialization mode for this instance
|
public boolean is app running return app running
|
true if all managers have been started
|
public date get start date if start date null this happens during testing start date time base now date return start date
|
return the time the app started running
|
public string get version info string v app build info get build info string platform version plat configuration get platform version if plat null v app v app plat display string return v app
|
return a string describing the version of the app and platform
|
private boolean refill int min size throws ioexception if ring size min size return true while reader eof reader eof ring refill buffer reader if is trace logger debug3 refilled ring to string if ring size min size return true return false
|
ensure sufficient chars in ring for shortest tag were interested in
|
public lockss manager get manager by key string manager key lockss manager mgr lockss manager manager map get manager key if mgr null throw new illegal argument exception unavailable manager manager key return mgr
|
return a lockss manager
|
public config manager get config manager return config manager get config manager
|
return the config manager instance
|
public void set serialization read back mode boolean serialization read back serialization read back mode serialization read back
|
p sets the serialization read back mode for this instance
|
public watchdog service get watchdog service return watchdog service get manager watchdog service
|
return the watchdog service instance
|
public mail service get mail service return mail service get manager mail service
|
return the mail manager instance
|
public boolean is daemon inited return is app inited
|
true iff all managers have been inited
|
public sched service get sched service return sched service get manager sched service
|
return the sched service instance
|
public resource manager get resource manager return resource manager get manager resource manager
|
return the resource manager instance
|
public servlet manager get servlet manager return servlet manager get manager servlet manager
|
return the servlet manager instance
|
public boolean is daemon running return is app running
|
true if all managers have been started
|
protected lockss manager init manager manager desc desc throws exception string manager name get manager class name desc lockss manager mgr instantiate manager desc try call init on the service mgr init service this return mgr catch exception ex log error unable to instantiate lockss manager manager name ex throw ex
|
load and init the specified manager
|
public string get testing mode return testing mode
|
return the current testing mode
|
public boolean is clockss return is clockss
|
true if running as a clockss daemon
|
public void stop app stop
|
stop the app
|
protected void stop app running false stop all single managers list rkeys list util reverse copy manager map as list for iterator it rkeys iterator it has next string key string it next lockss manager lm lockss manager manager map get key try lm stop service manager map remove key catch exception e log warning couldn t stop service lm e
|
stop the app by stopping the managers in the reverse order of
|
public boolean is detect clockss subscription return is clockss get clockss params is detect subscription
|
convenience method returns
|
protected void start app throws exception start date time base now date log info get version info starting initialize our properties from the urls given init properties repeat the version info as we may now be logging to a different target and to include the platform version which wasn t availabe before the config was loaded log info get version info starting managers startup all services init managers log info started
|
run the app
|
protected void init properties config manager config mgr config manager make config manager prop urls group names config mgr init service this config mgr start service log info waiting for config if config mgr wait config log critical initial config load timed out system exit constants exit code resource unavailable log info config loaded prev exit once current config get boolean param param app exit once default app exit once config mgr register configuration callback new configuration callback public void configuration changed configuration new config configuration prev config configuration differences changed keys set config new config prev config changed keys
|
init our configuration and extract any parameters we will use locally
|
public void stop daemon stop app
|
stop the daemon
|
protected lockss app get lockss context return lockss context
|
p retrieves the serialization context
|
public alert manager get alert manager return alert manager get manager alert manager
|
return the alert manager instance
|
public lockss daemon get daemon return lockss daemon the app
|
return the daemon instance in which this manager is running
|
protected boolean is daemon inited return is app inited
|
return true iff all the daemon services have been initialized
|
public hash service get hash service return hash service get manager hash service
|
return the hash service instance
|
public void set max size long bytes int files this max size bytes this max files files
|
set the target maximum amount of disk space to use in bytes
|
public poll manager get poll manager return poll manager get manager poll manager
|
return the poll manager instance
|
public void clear synchronized cmap try tfile umount catch fs sync exception e log warning couldn t umount tfile e for entry ent cmap values if ent ctf null try delete file ent catch exception e log warning error deleting ent ctf cmap clear
|
clears the cache
|
public psm manager get psm manager return psm manager get manager psm manager
|
return the psm manager instance
|
protected string get attribute value string attribute string buffer sb return get attribute value attribute sb to string
|
return attribute value with any html entities decoded
|
protected string get attribute value string attribute string src string val get encoded attribute value attribute src return val null null translate decode val
|
return attribute value with any html entities decoded
|
public lcap datagram comm get datagram comm manager return lcap datagram comm get manager datagram comm manager
|
return the datagram communication manager instance
|
public lcap stream comm get stream comm manager return lcap stream comm get manager stream comm manager
|
return the stream communication manager instance
|
public lcap datagram router get datagram router manager return lcap datagram router get manager datagram router manager
|
return the datagram router manager instance
|
public lcap router get router manager return lcap router get manager router manager
|
return the communication router manager instance
|
public static interface permission helper public archival unit get au generate a url cacher for the given url suitable for fetching and possibly storing a permission page see link base crawler param store permission scheme param url return url cacher for the given url public url cacher make permission url cacher string url public buffered input stream reset input stream buffered input stream is string url throws ioexception public void store permission page url cacher uc buffered input stream is throws ioexception public void set previous content type string previous content type public crawler status get crawler status
|
encapsulation for the methods that the permission map needs from a
|
public proxy manager get proxy manager return proxy manager get manager proxy manager
|
return the proxy handler instance
|
public crawl manager get crawl manager return crawl manager get manager crawl manager
|
return the crawl manager instance
|
public repository manager get repository manager return repository manager get manager repository manager
|
return the repository manager instance
|
public system metrics get system metrics return system metrics get manager system metrics
|
return the system metrics instance
|
protected void throw if null object obj if obj null logger debug attempting to serialize null throw new null pointer exception
|
p throws a
|
public plugin manager get plugin manager return plugin manager get manager plugin manager
|
return the plugin manager instance
|
static private lockss daemon get daemon return lockss daemon get lockss daemon
|
get the curren lockss daemon
|
public metadata manager get metadata manager return metadata manager get manager metadata manager
|
return the metadata manager instance
|
static public publication date parse string pub date str return new publication date pub date str
|
static for parsing a publication date string for the
|
static public publication date parse string pub date str locale locale return new publication date pub date str locale
|
static for parsing a publication date string for the
|
public string to string string s integer to string year if quarter 0 s q quarter else if season 0 s s season else if month 0 s string format 02d month if day 0 s string format 02d day return s
|
return string representation of the publication date in extended
|
public icp manager get icp manager return icp manager get manager icp manager
|
p retrieves the icp manager
|
public remote api get remote api return remote api get manager remote api
|
return the remote api instance
|
public int get day of month return day
|
get the 1 based day of month for this date
|
public node manager manager get node manager manager return node manager manager get manager node manager manager
|
return the node manager manager instance
|
public double get health throws health unavailable exception if out of range value seen throw new health value exception health evaluation script disabled because it previously returned out of range value long s system current time millis double res eval log debug string format preserved au s health metric eval took sms au get name system current time millis s if res 0 0 res 1 0 return res else out of range value seen true throw new health value exception script returned out of range value res
|
get the health of an archival unit
|
public double get poll agreement return aus get v3 agreement
|
return the aus most recent poll agreement
|
public double get highest poll agreement return aus get highest v3 agreement
|
return the aus highest poll agreement
|
public archival unit status get archival unit status return archival unit status get manager archival unit status
|
return the archival unit status instance
|
public long get days since last poll long last poll aus get last top level poll time return last poll 0 1 time base ms since last poll constants day
|
return the number of days since the aus last completed poll
|
public int get number of repairers identity manager id mgr au util get daemon au get identity manager collection repairers id mgr get caches to repair from au if repairers null return 0 return repairers size
|
return the estimated number of peers willing to repair this au
|
public true zip manager get true zip manager return true zip manager get manager truezip manager
|
return true zip manager instance
|
public boolean has crawled return aus has crawled
|
return true if the au has at least one successful crawl
|
public boolean is available from publisher return au util is pub down au
|
return true if the au is still available from its original site
|
public clockss params get clockss params return clockss params get manager clockss params
|
return the clockss params instance
|
public mime type info get mime type info string content type string mime header util get mime type from content type content type mime type info res mime type info map get mime if res null parent null return parent get mime type info mime return res
|
return immutable view of mime type info for the specified content type
|
public lockss au manager get au manager string key archival unit au lockss au manager mgr null linked map au mgr map linked map au manager maps get au if au mgr map null mgr lockss au manager au mgr map get key if mgr null log error key not found for au au throw new illegal argument exception unavailable au manager key return mgr
|
return an au specific lockss manager
|
public lockss repository get lockss repository archival unit au return lockss repository get au manager lockss repository au
|
get lockss repository instance
|
public document get table document throws xml dom builder xml dom exception if table document null table document create document return table document
|
returns the document form of the status table
|
public node manager get node manager archival unit au return node manager get au manager node manager au
|
return the node manager instance
|
public history repository get history repository archival unit au return history repository get au manager history repository au
|
return the history repository instance
|
protected string get db root directory configuration config config manager get current config string root dir config get config manager param tmpdir suppress warnings unchecked list string d space list config get list config manager param platform disk space list if d space list null d space list is empty root dir d space list get 0 return root dir
|
get the root directory for creating the database files
|
public interface debug only extends status accessor
|
marker interface for status accessors that should be included in the
|
public activity regulator get activity regulator archival unit au return activity regulator get au manager activity regulator au
|
return activity regulator instance
|
public void stop au managers archival unit au linked map au mgr map linked map au manager maps get au if au mgr map null suppress warnings unchecked list string rkeys list util reverse copy au mgr map as list for string key rkeys lockss au manager mgr lockss au manager au mgr map get key try mgr stop service catch exception e log warning couldn t stop au manager mgr e continue to try to stop other managers au manager maps remove au
|
stop the managers for the au in the reverse order in which they
|
public string get title footnote return title footnote
|
get the title footnote for this table
|
public void set title footnote string footnote this title footnote footnote
|
set the title footnote for this table
|
public connection new connection throws sqlexception if data source null throw new sqlexception no datasource connection conn data source get connection conn set auto commit false return conn
|
create a new database connection using the datasource
|
public void set options bit set options this options options
|
sets the options for this table
|
public bit set get options return options
|
returns the options for this table
|
public list get summary info return summary info
|
returns a list of
|
public class no such table exception extends exception public no such table exception string msg super msg public no such table exception string msg exception cause super msg cause
|
thrown for various errors related to status queries
|
public void set summary info list summary info this summary info summary info
|
sets a list of
|
public list get column descriptors return column descriptors
|
gets a list of
|
public void stop all au managers archival unit au while au archival unit collection util get an element au manager maps key set null log debug2 stopping all managers for au stop au managers au au manager maps clear
|
calls stop service on all au managers for all aus
|
public map get column descriptor map if column descriptor map null column descriptor map new hash map for iterator iter column descriptors iterator iter has next column descriptor col column descriptor iter next column descriptor map put col get column name col return column descriptor map
|
returns a map that maps column name to column descriptor
|
private int start reindexing connection conn null int count 0 try conn new connection count start reindexing conn catch sqlexception ex log debug cannot connect to database indexing not started ex finally safe close conn return count
|
ensure as many reindexing tasks as possible are running if manager is
|
public void set column descriptors list column descriptors set column descriptors column descriptors null
|
sets a list of
|
public oai request data get oai request data return oai request data
|
gets the oai request data object and return it
|
public oai handler get oai handler return oai handler
|
getter for the optional custom oai handler
|
public void set oai handler oai handler oai handler this oai handler oai handler
|
setter for the optional custom oai handler
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.