input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
public long get create time return poller state get create time
|
get the poll creation time
|
protected void layout error block composite composite if err msg null status msg null servlet util layout error block composite err msg status msg
|
create message and error message block
|
public boolean is recalc au archival unit au return recalcing aus contains au
|
return true if already have scheduled a hash to recalculate the hash
|
protected void reset locals reset transitory state err msg null status msg null last manual ordering null custom field ordering null do export false reset export parameters to defaults selected scope content scope default scope output format output default report data format report default coverage notes format coverage notes default finally reset super locals super reset locals
|
reset the transitory state
|
private boolean set custom field ordering string ordering boolean success false try this custom field ordering new custom field ordering ordering success true catch custom field ordering exception e err msg e get localized message success false do export false return success
|
attempt to set the custom field ordering using the given ordering string
|
public file get state dir if serializer null return serializer poll dir return null
|
return the serialization state directory used by this poll
|
private void assign html custom form kbart exporter kexp if kexp get output format is html kexp set html custom form make html custom form
|
assign an html form of custom options to the exporter if necessary
|
public void start tiny log debug starting configuration config config manager get current config set config config config manager empty configuration config differences null all differences start servlets
|
entry point to start tiny ui without general daemon startup
|
public void do export kbart exporter kexp output stream out throws ioexception long s time base now ms kexp export out log debug export took approximately string util time interval to string time base ms since s out flush out close
|
use the supplied exporter to export the data to the given output stream
|
public peer identity get caller id return poller state get poller id
|
not used by v3
|
public string get default update url return srv abs url my servlet descr format output default name
|
constructs a string representing the direct update url of the default output
|
private boolean is enable preserved return current config get boolean param param enable preserved holdings default enable preserved holdings
|
determine whether preserved option is enabled
|
protected boolean is error state return false
|
not used by v3
|
private boolean use metadata for preserved return current config get boolean param param use metatata for preserved holdings default use metadata for preserved holdings
|
determine whether metadata option is enabled for preserved content
|
private void add output format options table tab add default output formats tab add please choose one of the following actions br tab new row tab new cell align center valign middle tab add output for output format fmt output format values boolean selected output format null fmt output format fmt output default tab add servlet util radio button this key output format fmt name fmt get label selected tab add add footnote fmt get footnote tab add nbsp
|
layout output data format options csv tsv screen
|
private void add report format options table tab tab new row tab new cell align center valign middle tab add format for report data format fmt report data format values boolean selected report data format null fmt report data format fmt report default tab add servlet util radio button this key report format fmt name fmt get label selected tab add add footnote fmt get footnote tab add nbsp
|
layout output report format options kbart title per line sfx data loader
|
private void display page throws ioexception display page false
|
display top level export options no custom options
|
public boolean is my poll return true
|
not used by v3
|
private void display page boolean custom throws ioexception page page new page layout error block page page add layout table of options custom finish page end page page
|
display top level export options
|
public poll spec get poll spec return poller state get poll spec
|
return the poll spec for this poll
|
public cached url set get cached url set return poller state get cached url set
|
return the cached url set for this poll
|
protected kbart custom options get session custom opts return get session custom opts true
|
get the current custom html options from the session
|
public int get version return poller state get protocol version
|
return the poll version
|
protected kbart custom options get session custom opts boolean create if absent object o get session get attribute session key custom opts if o null create if absent kbart custom options opts kbart custom options get default options put session custom opts opts return opts return o null null kbart custom options o
|
get the current custom html options from the session
|
protected void put session custom opts kbart custom options opts get session set attribute session key custom opts opts
|
puts the supplied custom html options into the session
|
public identity manager get identity manager return id manager
|
return the id manager
|
protected void reset session options put session custom opts kbart custom options get default options
|
put a default set of options in the session
|
private void display menu throws ioexception page page new page layout error block page servlet util layout menu page get menu descriptors end page page
|
display top level batch config choices
|
public lcap message get message throw new unsupported operation exception v3 poller does not suppor poller get message
|
return the message that started this poll
|
public int get poll size synchronized the participants return the participants size
|
return the size of the poll
|
private void do save all throws ioexception try input stream in remote api get au config backup stream get machine name try resp set content type application binary resp set header content disposition attachment filename remote api get au config backup file name get machine name output stream out resp get output stream stream util copy in out out close finally ioutil safe close in catch file not found exception e err msg no aus have been configured nothing to backup display menu catch ioexception e log warning do save all e throw e
|
serve the contents of the local au config file as
|
private void display restore throws ioexception page page new page add java script page layout error block page mutable int button number new mutable int submit button number servlet util layout restore this page action tag key verb verb restore au config backup contents button number action select restore titles submit button number button number int value end page page
|
display the restore page
|
protected void end page page page throws ioexception if action null servlet util layout back link page srv link my servlet descr back to journal configuration super end page page
|
common and page adds back link footer
|
protected string get explanation return explanation
|
p retrieves this links explanation
|
public string get key return poller state get poll key
|
return the poll key
|
protected string get link return link
|
p retrieves this links content
|
public boolean is in nav lockss servlet of servlet return is flag set in nav
|
return true if servlet should be in the nav table of of servlet
|
public boolean is in ui home lockss servlet ui home servlet return is flag set in uihome
|
return true if servlet should be in ui home page
|
public boolean has no nav table return is flag set no nav table
|
return true if servlet should not have a nav table
|
private void display edit au au proxy au throws ioexception page page new page fetch au config au layout error block page servlet util layout explanation block page editing configuration of encoded au name au list actions list util list action deactivate action delete if get edit keys is empty actions add 0 update form frm create au edit form actions au true page add frm end page page
|
display form to edit existing au
|
private void display restore au au proxy au throws ioexception page page new page fetch au config au layout error block page servlet util layout explanation block page restoring configuration of encoded au name au list actions list util list new input input hidden action tag action do restore new input input submit button restore form frm create au edit form actions au true page add frm end page page
|
display form to restore unconfigured au
|
private void create au throws ioexception string pid get parameter plugin id plugin get plugin proxy pid if plugin null err msg can t find plugin pid display add au return create au from plugin created true
|
process the create button
|
private void do reactivate au au proxy aup throws ioexception plugin aup get plugin if plugin null err msg can t find plugin aup get plugin id display add au return fetch au config aup if aup is active au update au aup reactivated else create au from plugin reactivated false
|
process the do reactivate button
|
private void display add result throws ioexception page page new page add java script page layout error block page end page page
|
display result of add by auid
|
private void confirm delete au au proxy au throws ioexception string delete foot remote api is remove stopped aus null delete does not take effect until the next daemon restart page page new page fetch au config au layout error block page servlet util layout explanation block page are you sure you want to delete add footnote delete foot encoded au name au form frm create au edit form list util list action confirm delete au false page add frm end page page
|
display the confirm delete page
|
private void do delete au au proxy au throws ioexception string name au get name try remote api delete au au status msg deleted au is active au inactive archival unit br encode text name display au summary return catch archival unit configuration exception e log error can t happen e err msg encode text e get message catch ioexception e log error couldn t save au configuraton e err msg error deleting au br encode text e get message confirm delete au au
|
process the confirm delete button
|
private void do deactivate au au proxy au throws ioexception string name au get name try remote api deactivate au au status msg deactivated archival unit br encode text name display au summary return catch archival unit configuration exception e log error can t happen e err msg encode text e get message catch ioexception e log error couldn t save au configuraton e err msg error deactivating au br encode text e get message confirm deactivate au au
|
process the confirm deactivate button
|
private boolean is equal form val string form val string old val return string util is null string form val string util is null string old val form val equals old val
|
true iff both values are null or null strings or equal strings
|
private void add au id composite comp au proxy au servlet util layout au id comp au auid
|
add auid to form in a hidden field
|
private void add plug id composite comp plugin proxy plugin servlet util layout plugin id comp plugin plugin id
|
add plugin id to form in a hidden field
|
protected void end page page page throws ioexception if action null page add center page add srv link my servlet descr back to journal configuration page add center super end page page
|
common and page adds back link footer
|
public boolean has iso files return has iso files
|
return true iff there are any platform iso files to point to
|
public file get export dir return exportdir
|
return the directory in which to put generated export files
|
public void setup and execute node list metadata node list this metadata node list metadata node list extracted urls collect article urls
|
extracted urls from the given list of metadata
|
public string get oai request handler url return oai request handler url
|
gets the oai request handler url
|
public set get article urls return extracted urls
|
return the set of urls collected in the oai response
|
public string get metadata namespace url return metadata namespace url
|
gets the metadata namespaces url from plugin tools
|
public string get metadata prefix return metadata prefix
|
returns the metadata format prefix that the crawl is interested
|
public string get url container tag name return url container tag name
|
gets the xml tag name that contains urls need to be crawled
|
public string get au set spec return au set spec
|
gets the set spec of the urls belong to
|
protected void log error string msg exception ex logger site error msg ex err list add first ex
|
log the error message and the corresponding exception
|
public list get errors return err list
|
method to check if there is any error occurs in construct request
|
public boolean do remote setup and verification throws ioexception stop if any required parameters are missing error if verify minimum parameters throw new response exception missing required parameters initial page setup return command setup
|
populate the response body
|
private boolean set plugin plugin manager plugin manager get lockss daemon get plugin manager string au id au proxy au proxy string key au id get and verify parameter ap e auid set plugin get any au proxy au id key plugin manager plugin key from id get plugin get plugin id if plugin loaded key return error plugin is not loaded key return true
|
set up the environment for this command
|
public set get updated urls return updated urls
|
get a list of urls extracted from the oai response
|
public boolean do command throws ioexception element info element return disk space info element get xml utils create element get response root ap e info render disk xml info element no further action if this isn t a create command success if is create command return true stop if any required parameters are missing error if verify target verify minimum parameters verify defining parameters throw new response exception missing required parameters create the au if command setup return false return create au
|
populate the response body
|
private boolean verify minimum parameters int count 0 if string util is null string get parameter ap e publication count if string util is null string get parameter ap e classname count if string util is null string get parameter ap e plugin count return count 0
|
did the client provide the minimal parameters required
|
private boolean remove or deactivate au string action au proxy au proxy if au proxy get au proxy get parameter ap e auid null return error invalid archival unit id try if delete equals ignore case action get remote api delete au au proxy else if deactivate equals ignore case action get remote api deactivate au au proxy else throw new response exception unknown activity action catch archival unit configuration exception exception return error action failed exception get message catch ioexception exception return error failed to save configuraton exception get message return true
|
delete deactivate an au
|
public set get oai records return oai records
|
return all the record nodes in the oai response
|
public boolean do remote setup and verification throws exception return true
|
do remote setup
|
public void set lockss daemon lockss daemon lockss daemon lockss daemon lockss daemon
|
save the lockss daemon
|
protected lockss daemon get lockss daemon return lockss daemon
|
get the lockss daemon
|
public string get oai query string return query string
|
print out the oai query string for error tracing
|
protected status service get status service return get lockss daemon get status service
|
get the status service
|
protected plugin proxy get plugin return plugin proxy
|
get the active plugin
|
protected remote api get remote api return get lockss daemon get remote api
|
get the remote api reference from the lockss daemon
|
protected plugin proxy get title plugin string title collection c get remote api get title plugins title if c null c is empty return null return plugin proxy c iterator next
|
look up a plugin for an au title
|
protected void set plugin plugin proxy plugin plugin proxy plugin
|
set the plugin for this command
|
protected string get journal title string au title plugin proxy plugin proxy title config title config if au title null return null plugin proxy get title plugin au title if plugin proxy null log warning unknown au title au title return null title config plugin proxy get title config au title if title config null log warning no title configuration for au title au title return null return title config get journal title
|
lookup the well known journal title for this au
|
public boolean do command xml utils xml utils get xml utils element element add a comment in the response document element xml utils create element get response root ap e comment xml utils add text element date formatter now return true
|
populate the response body just add a comment
|
protected void set plugin au proxy au plugin proxy au get plugin
|
set the plugin for this command
|
protected void set title config title config title config if title config null throw new illegal state exception null title configuration saved title config title config
|
set the plugin title config object for this command
|
protected title config get title config if title config null throw new illegal state exception null title configuration referenced return title config
|
get the plugin title config object
|
protected string get request option string name return string request options get name
|
get a named status table option
|
protected iterator get request option entry set iterator return request options entry set iterator
|
get an interator to all status table request options
|
public boolean do command throws ioexception element info element element edit element element restore element set up the response root active and inactive collection elements info element get xml utils create element get response root ap e info edit element get xml utils create element info element ap e edit restore element get xml utils create element info element ap e restore build the two au lists do au list edit element restore element return true
|
set up two archival unit lists active edit and inactive restore
|
private void add disk info element root string element name string text element element element get xml utils create element root element name xml utils add text element text
|
add disk information text to a named element
|
private void do au list element edit element element restore element remote api remote api collection all any aus available remote api get remote api all remote api get all aus if all is empty add au to list all iterator edit element restore element inactive aus all remote api get inactive aus if all is empty return add au to list all iterator edit element restore element
|
populate the edit and restore lists with au names and ids
|
public boolean do command element element missing count 0 title count 0 total count 0 do title list xml get response root element get xml utils create element get response root ap e active do au list xml element do statistics xml get response root return true
|
populate response with lockss build and version information
|
protected configuration get au config from form properties properties new properties get au properties from form properties ap md audefining get au properties from form properties ap md auedit return config manager from properties unsealed properties
|
get the configuration for this au from values in the request document
|
private string get build property string name string build property build info get build property name return build property null ap value unknown build property
|
fetch a named build info property
|
private void do statistics xml element root xml utils add text get xml utils create element root ap e field1 string value of title count xml utils add text get xml utils create element root ap e field2 string value of missing count xml utils add text get xml utils create element root ap e total string value of total count
|
render varous statistics
|
private void do title list xml element root sorted set title set collection titles iterator iterator titles get remote api find all titles if titles is empty log warning no journal titles defined return title set new tree set iterator titles iterator while iterator has next string title get journal title string iterator next if title null title set add title iterator title set iterator while iterator has next xml utils add text get xml utils create element root ap e publication string iterator next
|
lookup all configurable titles
|
private configuration get current configuration return current config get current config
|
get current configuration
|
protected configuration get au config from form configuration au config properties properties new properties get au properties au config properties get au properties from form properties ap md auedit return config manager from properties properties
|
get the au configuration return defining keys from the current au
|
public boolean do command throws xml exception element info element info element get xml utils create element get response root ap e info render daemon version uptime disk space and build details render config xml info element render uptime xml info element render disk xml info element render build xml info element render au xml info element return true
|
populate response with lockss build and version information
|
private collection get journal titles collection au list tree set journal titles new tree set for iterator iterator au list iterator iterator has next au proxy au proxy au proxy iterator next title config title config au proxy get title config if title config null string journal title title config get journal title if journal title null journal titles add journal title log debug adding title journal title return journal titles
|
get all title db journal names from the au configuration
|
private boolean is equal string new val string old val return string util is null string new val string util is null string old val new val equals old val
|
true if both values are null empty strings or equal strings
|
protected xml utils get xml utils return xml utils
|
get the xml utils object for this response
|
private void render au xml element root string au title string au id element au element get xml utils create element root ap e au xml utils add text get xml utils create element au element ap e name au title null au title xml utils add text get xml utils create element au element ap e auid au id
|
generate per au xml
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.