input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public void set sqlstatement string p sqlstatement m sqlstatement p sqlstatement | sets the sql statement used to retrieve the data |
public string get schedule manager name return m schedule manager name to string | get the schedule manager name |
public void stop providing iterator i m idlist iterator while i has next integer l id integer i next try remove schedule l id int value catch jmexception jme log error could not remove schedule in stop providing jme | stops the provider from providing causing |
public void set period long p period if p period 0 throw new invalid parameter exception schedulable period may be not less or equals than 0 m schedule period p period | sets the schedule period between two scheduled call |
protected void remove schedule int p id throws jmexception server invoke m schedule manager name remove schedule new object new integer p id new string integer type get name | remove a schedule from the schedule manager |
public void set date format string date format if date format null date format trim length 0 m date formatter new simple date format else m date formatter new simple date format date format | sets the date format used to parse date times |
public void start schedules check if not already started if is started loop over all available schedule instance and start them now iterator i m schedules entry set iterator while i has next schedule instance l instance schedule instance i next try l instance start catch jmexception jme log error could not start a schedule jme m schedule is started true | starts all the containing schedules |
public void set repetitions long p number of calls if p number of calls 0 p number of calls 1 m initial repetitions p number of calls | sets the initial number of scheduled calls |
public void stop schedules boolean p do it now check if it is already started if is started loop over all available schedule instance and start them now iterator i m schedules entry set iterator while i has next schedule instance l instance schedule instance i next try l instance stop catch jmexception jme log error could not stop a schedule jme m schedule is started false | stops all the sontaining schedules |
public void perform date p time of call long p remaining repetitions log info schedulable examples is called at p time of call remaining repetitions p remaining repetitions test name m name value m value | just log the call |
public boolean is hasingleton return m is hasingleton | determines whether or not the service |
public void set schedules final element p schedules m schedules p schedules | sets the xml configuration attribute |
public void set hasingleton boolean hasingleton m is hasingleton hasingleton | determines whether or not the service |
public void restart schedule stop schedules true start schedules | stops the server right now and starts it right now |
protected text get node node list p list string p name if p list null return null for int i 0 i p list get length i node l node p list item i switch l node get node type case node element node element l child element l node if l child get node name equals p name return text l child get first child return null | loops of the given node list and looks for the element |
public void accumulate string counter name long add counter counter null synchronized counter map counter counter counter map get counter name if counter null counter new counter counter name counter map put counter name counter counter add to count add | accumulate a count into a named counter |
public property editor find editor final class type return property editor manager find editor type | locate a value editor for a given target type |
public void unregister provider string p provider object name int l index m providers index of p provider object name if l index 0 provider not found then do nothing return stop the provider from providing schedules try object name l provider name new object name p provider object name server invoke l provider name stop providing new object new string catch jmexception jme log error could not call stop providing on the provider jme ignore exceptions finally finally remove the provider m providers remove p provider object name | unregister a provider which in turn calls stop providing |
private string make string final string array string buffer buff new string buffer for int i 0 i array length i buff append array i if i 1 array length buff append return buff to string | turn a string into an comma seperated list |
public string get editor search path return make string property editor manager get editor search path | gets the package names that will be searched for property editors |
public void set editor search path final string path property editor manager set editor search path make array path | sets the package names that will be searched for property editors |
public void set editors final properties props throws class not found exception iterator iter props key set iterator while iter has next string type name string iter next string editor type name props get property type name register editor type name editor type name | set property editors based on the given properties map |
public string set final string name final string value return property set name value | set a system property |
public string get final string name final string default value return property get name default value | get a system property |
public string get final string name return property get name | get a system property |
public string remove final string name return property remove name | remove a system property |
public void remove schedule int p identification schedule instance l instance schedule instance m schedules get new integer p identification try l instance stop catch jmexception jme log error could not stop a schedule jme m schedules remove new integer p identification | removes a schedule so that no notification is sent anymore |
private list make list final string array list list new array list array length for int i 0 i array length i list set i array i return list | turn a string into an array list |
public list get array final string base final list default values string array make array default values return make list property get array base array | get an array style system property |
public list get array string name return make list property get array name | get an array style system property |
public boolean exists string name return property exists name | check if a system property of the given name exists |
public void restart schedule stop schedule true start schedule | stops the server right now and starts it right now |
public property group get group string basename return property get group basename | get a property group for under the given system property base |
public string get schedules iterator i m schedules entry set iterator string buffer l return new string buffer boolean l first true while i has next schedule instance l instance schedule instance i next if l first l return append l instance m identification l first false else l return append l instance m identification return l return to string | returns a list of the identifications of all registered |
public property group get group string basename int index return property get group basename index | get a property group for under the given system property base |
public void add listener final property listener listener property add listener listener | add a property listener |
public void add listeners final property listener listeners property add listeners listeners | add an array of property listeners |
public boolean remove listener final property listener listener return property remove listener listener | remove a property listener |
public void load final url url throws ioexception log trace loading system properties from url properties props system get properties input stream is url open connection get input stream props load is is close log info loaded system properties from url | load some system properties from the given url |
public void load final string url throws ioexception malformed urlexception load strings to url url server home | load some system properties from the given url |
public object get transaction propagation context transaction tx transaction old tx null object tpc null try old tx tm get transaction if tx null tx equals old tx we are being called in the context of this transaction tpc get transaction propagation context else tm suspend tm resume tx tpc get transaction propagation context tm suspend tm resume old tx catch exception e e print stack trace finally return tpc | return a transaction propagation context for the transaction |
public void set urllist final string list throws malformed urlexception ioexception string tokenizer stok new string tokenizer list while stok has more tokens string url stok next token load url | load system properties for each of the given comma separated urls |
public void set properties final properties props throws ioexception log debug merging with system properties props system get properties put all props | set system properties by merging the given properties object |
public void set paused boolean p is paused m is paused p is paused | pauses or restarts the schedules which either suspends the |
public map show all return new htmlmap system get properties | return a map of system |
public string get servlet info return a factory servlet for naming proxies | returns a short description of the servlet |
public void init servlet config config throws servlet exception super init config try see if the servlet is bound to a particular invoker string name config get init parameter invoker name if name null local invoker name new object name name log debug local invoker name local invoker name catch malformed object name exception e throw new servlet exception failed to build invoker name e lookup the mbean server mbean server mbean server locator locate elba if mbean server null throw new servlet exception failed to locate the mbean server | initializes the servlet |
public string get servlet info return an http to jmx invocation servlet | returns a short description of the servlet |
public string to string if filter config null return naming access filter string buffer sb new string buffer naming access filter sb append filter config sb append return sb to string | return a string representation of the filter |
public void set adapter name string adapter name this adapter name adapter name | use the code set adapter name code method to set the name the |
public void add invoke invoke invoke ops add invoke | use the code add invoke code method to add an invoke operation |
public void set start at startup boolean p start at startup m start on start p start at startup | set the scheduler to start when mbean started or not |
public void add set attribute setter setter ops add setter | use the code add set attribute code method to add a set attribute |
public void add get attribute getter getter ops add getter | use the code add get attribute code method to add a get attribute |
public void add property editor property editor holder peh editors add peh | use the code add property editor code method to make a property editor |
public void run try boot catch throwable e system err println exception durring application class application run e print stack trace system err | this is what actually loads the application classes and |
public application boot create application boot return new application boot | this can be used to boot another application |
public void set target object name target this target target | the code set target code method sets the object name |
synchronized public void start application application boot boot data throws exception if boot data null throw new null pointer exception invalid argument boot data argument was null application boots add boot data thread group threads new thread group boot thread group boot data application class new thread threads boot data main start | boots the application in a new threadgroup and thread |
protected void verbose string msg if verbose system out println boot msg | logs verbose message to the console |
protected linked list process command line linked list args throws exception linked list rc new linked list process boot options args while args size 0 application boot d process app boot command line args if d null rc add d if rc size 0 throw new invalid command line exception an application class name must be provided return rc | processes the boot classs command line arguments |
protected void destroy service unregister all providers iterator i m schedules entry set iterator while i has next schedule instance l instance schedule instance i next unregister provider l instance m provider to string | when service is destroyed it will call the unregister provider |
public void add parameter param param params add param | the code add parameter code method adds a parameter for |
public void start database manager start dbmanager in new thread new thread public void run try string driver org hsqldb jdbc driver string args if persist true args new string driver driver url jdbc hsqldb hsql localhost port user sa password dir get database path else args new string driver driver url jdbc hsqldb hsql user sa password org hsqldb util database manager swing main args catch exception e log error failed to start database manager e start | start of database manager accesible from the localhost 8082 |
protected void process boot options linked list args throws exception iterator i args iterator while i has next string arg string i next if arg equals ignore case verbose verbose true i remove continue if arg equals ignore case help show usage system exit 0 didn t recognize it a boot option then we must have started the application boot options return | processes to global options |
protected void stop service throws exception connection connection statement statement string jdbc driver org hsqldb jdbc driver string db url jdbc hsqldb hsql localhost port string no persistdb url jdbc hsqldb hsql string user sa string password if persist false connection driver manager get connection no persistdb url user password statement connection create statement statement execute query shutdown immediately else try new org hsqldb jdbc driver class for name jdbc driver new instance connection driver manager get connection db url user password statement connection create statement statement execute query shutdown compact log info database closed clean finally embedded dbserver null | we now close the connection clean by calling the |
public void set user final string user this user user | user id used to connect to a mail server |
public element get configuration return config | configuration for the mail service |
protected void stop service stop the schedule right now stop schedules true | stops all available schedules |
public void set configuration final element element config element | configuration for the mail service |
public void set jndiname final string name if name starts with java jndi name java name else jndi name name | the jndi name under the java namespace to which javax |
public void set value param value this value value | the code set value code method specifies the value to be used |
public boolean is notification enabled notification p notification if p notification instanceof timer notification timer notification l timer notification timer notification p notification return l timer notification get notification id equals m id return false | determine if the notification should be sent to this scheduler |
protected class for name string string throws class not found exception if void equals string return void class else if boolean equals string return boolean class else if float equals string return float class else if double equals string return double class else if int equals string return int class else if long equals string return long class else if short equals string return short class else if byte equals string return byte class else if char equals string return char class else return org elba util classes load class string | resolve string based jmx types |
public boolean write schema types types throws exception complex type representation of simple type bean class element simple type types create element simple type types write schema element xml type simple type simple type set attribute name xml type get local part element simple content types create element simple content simple type append child simple content element extension types create element extension simple content append child extension extension set attribute base types get namespaces get create prefix xmltype xsd string get namespace uri xmltype xsd string get local part return true | return xml schema for the specified type |
public void set arg string arg this arg arg | the code set arg code method sets the string representation |
protected void read params element e element param elements get child elements e parameter for int i 0 i param elements length i element param param elements i string pname param get attribute name string value param get attribute value string locked param get attribute locked parameters put pname value locked null locked equals ignore case true | reads out the additional parameter elements |
public map get parameters table return parameters | returns the set of parameters |
public void generate wsdl message context arg0 throws axis fault arg0 set property constants action handler present property boolean true super generate wsdl arg0 | sets the presence flag in the context such that any provider |
public axis server get engine if server null we need to extract the engine from the rootcontext string installation get init parameter org elba net axis constants configuration context call the static service method to find the installed engine server jmxengine configuration provider jecp get axis server installation return server | override axis servlet |
public void invoke message context msg context throws axis fault msg context get response message get content length | force deserialisation by accessing the msgcontext |
protected principal get principal string user name if user name null return nobody principal nobody principal else return new simple principal user name | creates a new principal belonging to the given username |
protected void validate principal user principal string passwd throws axis fault build passchars char pass chars passwd null passwd to char array null do the validation only if authenticated or validation enforced if should validate unauthenticated calls user principal nobody principal nobody principal have to use pointer comparison here but it s a singleton right if auth mgr is valid user principal pass chars throw new axis fault server unauthenticated org apache axis utils messages get message cant auth01 user principal get name null null | validates the given principal with the given password |
protected subject associate principal user principal string passwd pointer comparison again if should validate unauthenticated calls user principal nobody principal nobody principal security association set principal user principal security association set credential passwd null passwd to char array null else elba security normally does not like nobody null security association set principal null security association set credential null return auth mgr get active subject | associates the call context with the given info |
public void undo message context msg context unbelievable this foresight | todo called when a fault occurs to undo whatever invoke did |
protected string get service class name option name return bean name option | return the option in the configuration that contains the service class |
protected object get attribute string context string attribute name try object name m bean name new object name context mbean server server mbean server locator locate elba return server get attribute m bean name attribute name catch jmexception e return null | find attribute through jmx server and mbean |
public engine configuration get client engine configuration string context return engine configuration get attribute context client engine configuration | return client config associated with mbean |
public engine configuration get server engine configuration string context return engine configuration get attribute context server engine configuration | return server config associated with mbean |
public axis server get axis server string context return axis server get attribute context axis server | return axis server associated with mbean |
protected principal get principal string user name if user name equals return anybody principal anybody principal else return new simple principal user name | creates a new principal belonging to the given username |
protected void remove namespaces message context msg context message msg msg context get response message try soapenvelope soap envelope msg get soapenvelope boolean result soap envelope remove namespace declaration soap env catch axis fault e of method remove namespaces | flag the soap envelope not to use namespaces |
public object get value throws exception property editor editor property editors get editor type editor set as text arg return editor get value | the code get value code method uses property editors to convert |
protected collection get associated principals message context msg context get the active subject subject active subject subject msg context get property message context authuser if active subject null return collections singleton nobody principal nobody principal else return active subject get principals | returns a collection of principals that the context subject |
public void init object arg0 | nothing to be done |
public void invoke message context msg context throws axis fault try if user transaction get status status status no transaction msg context get property constants transaction property null user transaction begin msg context set property constants transaction property marker catch system exception e throw new axis fault could not analyze tx setting e catch not supported exception e throw new axis fault could not begin tx e | begins a new transaction if not yet started |
protected boolean does user have role principal principal set roles return realm mapping does user have role principal roles | return whether the given principal has the given roles |
public void set input stream input stream stream super set input stream stream is stream | override input stream setter to sync protected cache |
public void configure engine axis engine engine throws configuration exception build deployment get deployment configure engine engine engine refresh global options | configures the given axis engine with the given descriptor |
public void write engine config axis engine engine noop | not supported yet |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.