Usage of scheduleAtFixedRate() API
Hi All,
what will happen if the tasks that are to be executed will take more time than the scheduled time period or delay if the API scheduleWithFixedRate() is used.
e.g
I want to run a task every one hour. Now if for any reason that task takes more than one hour to complete and we are using the above api, then will the task be terminated and will be run afresh after one hour or will it behave like the API scheduleWithFixedDelay()???
Hi,
The documentation clearly explains it.
"In fixed-rate execution, each execution is scheduled relative to the scheduled execution time of the initial execution. If an execution is delayed for any reason (such as garbage collection or other background activity), two or more executions will occur in rapid succession to "catch up." In the long run, the frequency of execution will be exactly the reciprocal of the specified period (assuming the system clock underlying Object.wait(long) is accurate)."
Kaj
Similar Messages
-
Retrieving billing/usage through Azure API
I'm looking to retrieve my account usage details through Azure API but couldn't find the relevant API for that.
I know I can download the CSV file of usage details in Azure Portal Account->Subscriptions->Download Usage Details, and would need to retrieve the same through API.
Any help is appreciated. Thanks in advance.Hi ksrishna,
Thanks for your posting!
Currently we don't got the billing usage file using API. You could download in the account page on the portal. Also, you could vote this feature via this customer feedback page:
http://feedback.azure.com/forums/170030-billing/suggestions/1143971-billing-usage-api
Regards,
Will
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Hi All From long time I waiting to usage of essbase api. Now I got that time. Basically what essbase api?. where to use it?. how to use use it?. what is the importance of these API?. Give instructions like LAYMAN PLease. Is there any material step by step , How write macros by using essbase API & aslo how to run ?. thanx in advance ...thanx
API: Application Programming Interface - The API's (VB, C++, Java) are sets of functions that allow you to create applications that interact with Essbase server. Almost everything you can do with client tools can be done with the API (emhapsis on 'Almost').I have used the VB API for Essbase to create numerous administrative utilities for things like subvar configuration, member info gathering, as well as a few user tools, including a replication interface that allows finance users to replicate (and generate and run the necessary calcs) by choosing a few parameters clicking a replicate button. This app replaced an another system that was basically a folder with hundreds of esscmd scripts and batch files which incorporated many 'challenges' due to security, user error, and a they were not dynamic (outline changes effect replication tasks).The nice thing about the API is that you are able to design an application that will include a layer of business logic or rules, that control how users interact with Essbase.Last parting of advice.. Use the APIs when appropriate, but don't invent reasons to use them. KISS: Keep it simple stupid.Jeff McAhrenDallas, Texas
-
Audit usage for REST API in SharePoint 2013
Hi,
Is there any OOB way for SharePoint to log access in REST API so that it will track which application/user uses the REST API?
Thanks,
KennyHi,
According to your post, my understanding is that you wanted to audit usage for REST API in SharePoint 2013.
Per my knowleadge, there is no out of the box way to accomplish this with SharePoint.
SharePoint 2013 introduces a Representational State Transfer (REST) service that is comparable to the existing SharePoint
client object models.
This means that developers can perform Create,
Read, Update, and Delete (CRUD) operations from their apps for SharePoint, solutions, and client applications, using REST web technologies and standard Open Data Protocol (OData) syntax.
More information:
REST API reference and samples
Thanks,
Linda Li
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Linda Li
TechNet Community Support -
Usage of Reservations API HOOK - OE_RESERVE_CONC_HOOK
Hello All,
Can someone please provide me a sample on how to implement Reserve Orders API Hook, we have Unique reservations needs.
regards
girishI might have rushed it a little: It works for a short period after the boot, but then theres that nasty kworker thread again:
Cn Avg residency P-states (frequencies)
C0 (cpu running) (51.7%) Turbo Mode 51.7%
polling 0.0ms ( 0.0%) 2.27 Ghz 5.9%
C1 mwait 0.0ms ( 0.0%) 1.60 Ghz 7.8%
C2 mwait 0.2ms ( 5.7%) 800 Mhz 34.7%
C6 mwait 1.0ms (42.5%)
Wakeups-from-idle per second : 708.5 interval: 3.0s
Power usage (ACPI estimate): 15.6W (1.5 hours) (long term: 12.5W,/1.9h)
Top causes for wakeups:
35.3% (604.0) kworker/0:0
33.5% (572.3) [kernel scheduler] Load balancing tick
15.9% (271.7) [iwlagn] <interrupt>
5.2% ( 89.3) firefox
5.1% ( 87.3) [i915] <interrupt>
1.9% ( 32.7) kwin
1.1% ( 19.3) [acpi] <interrupt>
0.4% ( 6.0) [ahci] <interrupt>
0.3% ( 5.7) thunderbird-bin
0.2% ( 2.7) plasma-desktop
0.2% ( 2.7) htop
0.1% ( 2.3) yakuake
0.1% ( 2.0) mysqld
0.1% ( 1.7) [kernel core] sk_reset_timer (tcp_delack_timer)
0.1% ( 1.7) [kernel core] hrtimer_start (tick_sched_timer)
0.1% ( 1.0) sleep
0.1% ( 1.0) thinkwatt
0.1% ( 1.0) X
Suggestion: Enable the CONFIG_INOTIFY kernel configuration option.
This option allows programs to wait for changes in files and directories
instead of having to poll for these changes
I used to have around 10 watts average, now it's up to 15 or sometimes even 20 watts.
Last edited by akurei (2011-05-19 15:37:00) -
APC Attribute Usages - any standard API
Hi,
Please do let me know if there is a standard API for implementing the attribute usages for the attributes.
We are on DB 11.2.0.2.0 and R12.1.3 apps.
ThanksSreedevi,
Can you elaborate more on your requirement? Are you looking for any Configurator API?
Thanks,
Pankaj -
Could anyone provide sample code to replace JMSQueueMBean usage in WL10 api
Hi,
I am working for a Weblogic Server Application Migration project from Weblogic 8.1 to Weblogic 10.3, we need to get rid of all weblogic 8.1 deprecated code. But I am not able to find any equivalent code using Weblogic 10.3 api for the following on google:
Context initCtx = ServiceLocator.getInstance().getInitialContext();
MBeanHome home = (MBeanHome)initCtx.lookup(weblogic.management.MBeanHome.ADMIN_JNDI_NAME);
//eGenera Application Migration Changes starts
/*Set beans = home.getMBeansByClass(weblogic.management.configuration.JMSQueueMBean.class);*/
Set beans = home.getMBeansByType("JMSQueue");
//eGenera Application Migration Changes ends
for (Iterator i = beans.iterator(); i.hasNext(); ) {
JMSQueueMBean queue = (JMSQueueMBean)i.next();
this.setRetryCount(queue.getName(), queue.getRedeliveryLimit());
Can anyone please help me out and provide equivalent code for the above using weblogic 10.3 strategy?This code works for 10.3
http://weblogic-wonders.com/weblogic/2010/01/21/jms-resources-using-jmx/ -
Need Example of Usage of HZ_RELATIONSHIP_V2PUB API
Client is implementing iSupplier and we need to convert all the supplier users programmatically. In this process we also need to create the supplier user and associate a relationship with supplier.
For this we already have the create_relationship procedure within hz_relationship_v2pub API. I can get the code from TCA API document but need an example to create a relationship between party and given supplier.
ThanksAny replies would be helpful.
Thanks -
Problem with stored procedure usage when Toplink api is used
In one of our applications we used the combination of JBoss4.0.2 application server, Oracle Toplink 10g (9.0.4.5), JDBC Driver Version is ..... 10.1.0.2.0, Database Product Version is Oracle9i Enterprise Edition Release 9.2.0.6.0, j2sdk1.4.2_08
We faced problem in the application when it is trying to call stored procedure using Oracle Toplink api
code snippet:
public ByteArrayOutputStream baos = new ByteArrayOutputStream();
public PrintStream pos = new PrintStream(baos);
public String delete(String Id)
String procedureName = "abc";
try
UnitOfWork uow = PersistenceManager.getCurrent().getUnitOfWork();
StoredProcedureCall call = new StoredProcedureCall();
call.setProcedureName(procedureName);
call.addUnamedArgumentValue(Id);
uow.executeNonSelectingCall(call);
uow.commit();
catch (Exception e)
message = e;
e.printStackTrace(pos);
message = message+ baos.toString();
return message;
Stack Trace:
Exception [TOPLINK-4002] (OracleAS TopLink - 10g (9.0.4.5) (Build 040930)): oracle.toplink.exceptions.DatabaseException Exception Description: java.sql.SQLException: ORA-06550: line 1, column 7: PLS-00201: identifier 'abc' must be declared ORA-06550: line 1, column 7: PL/SQL: Statement ignored Internal Exception: java.sql.SQLException: ORA-06550: line 1, column 7: PLS-00201: identifier 'abc' must be declared ORA-06550: line 1, column 7: PL/SQL: Statement ignored Error Code: 6550Local Exception Stack: Exception [TOPLINK-4002] (OracleAS TopLink - 10g (9.0.4.5) (Build 040930)): oracle.toplink.exceptions.DatabaseException Exception Description: java.sql.SQLException: ORA-06550: line 1, column 7: PLS-00201: identifier 'abc' must be declared ORA-06550: line 1, column 7: PL/SQL: Statement ignored Internal Exception: java.sql.SQLException: ORA-06550: line 1, column 7: PLS-00201: identifier 'DELETE_LOADED_RESULT_SET' must be declared ORA-06550: line 1, column 7: PL/SQL: Statement ignored Error Code: 6550 at oracle.toplink.exceptions.DatabaseException.sqlException(DatabaseException.java:227) at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:733) at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeNoSelect(DatabaseAccessor.java:781) at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:642) at oracle.toplink.publicinterface.UnitOfWork.executeCall(UnitOfWork.java:1400) at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(CallQueryMechanism.java:131) at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(CallQueryMechanism.java:115) at oracle.toplink.internal.queryframework.CallQueryMechanism.executeNoSelectCall(CallQueryMechanism.java:164) at oracle.toplink.internal.queryframework.CallQueryMechanism.executeNoSelect(CallQueryMechanism.java:143) at oracle.toplink.queryframework.DataModifyQuery.execute(DataModifyQuery.java:41) at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:493) at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java:1958) at oracle.toplink.publicinterface.UnitOfWork.internalExecuteQuery(UnitOfWork.java:2236) at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1086) at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1038) at oracle.toplink.publicinterface.Session.executeNonSelectingCall(Session.java:816) at com.abc.de.fg.model.resultSet.ResultSetProvider.delete(ResultSetProvider.java:150) at
Could anyone please let me know what might be the problem in this case.Tried and couldn't reproduce the problem using 9.0.4.7.
Here's the code:
System.out.println("storedProcedureUnamedValueTest");
StoredProcedureCall call = new StoredProcedureCall();
String lastName = "Jones";
call.setProcedureName("STOREDPROCEDURE_IN");
call.addUnamedArgumentValue(lastName);
session.executeNonSelectingCall(call);stored procedure definition in data base:
CREATE OR REPLACE PROCEDURE "TEST_904"."STOREDPROCEDURE_IN" (
IN_PARAM VARCHAR2) AS
BEGIN
UPDATE EMPLOYEE SET F_NAME = 'Indiana' WHERE (L_NAME = IN_PARAM);
END;log:
storedProcedureUnamedValueTest
DatabaseSession(15)--Execute query DataModifyQuery()
DatabaseSession(15)--Connection(16)--BEGIN STOREDPROCEDURE_IN('Jones'); END;
DatabaseSession(15)--Connection(16)--reconnecting to external connection poolAndrei -
Usage of Google API for route implementation in the iPhone application
Hi,
We need to show the maps showing some specific locations and the routes from user's current location to these specific locations. We know that Google provides APIs for getting the route between two locations.
Google has some terms and conditions for using their APIs for route. You can find it on the website http://code.google.com/intl/de/apis/maps/iphone/terms.html (point 10.9).
Can anyone please advice if we can use Google APIs in our iPhone application?
Regards,
NileshThis is a user to user help forum for iPhone users, not for app developers with app development questions. As a registered iOS app developer with Apple, you have access to Apple's developer discussions area which is where such a question should be asked.
-
Hi All,
According to client requirements, we have to log errors as well as some events in to the portal standard logs.
Please let me know how to do this.
thanks
Supriya.Hi see this link
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/list%2bof%2blogged%2bon%2busers%2bin%2bthe%2bportal
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/getting%2blogged%2bin%2bportal%2buser%2bdetails%2bin%2bweb%2bdynpro
Thanks ,
Tulasi -
Example usage of hz_party_search.find_parties API
I have been having errors when trying to execute a search using find_parties. Could someone post example usage? Also, how do I find out what properties/attributes I can put on the records? I am still slightly new to PL/SQL (not new to programming) and I couldn't find out where those type definitions are located (e.g., p_contact_point_list, contact_list, etc.).
Hi,
1) Read about the HZ_PARTY_SEARCH API in the Oracle® Trading Community Architecture, Technical Implementation Guide Release 11I, Part No. B13890-03)
This document clearly explains the usage of the API and description about each parameter. It also gives the sample code for few API’s
1) The properties/attributes which you have pass to the API generally depends upon the Match Rule you want to use for identifying the duplicates. It depends on how you defined the match rule, attributes, score and threshold value.
See the API guide, the P_MATCH_RULE_ID is a mandatory parameter.
3) The type definitions are just PL/SQL record variables. Each record type contains parameter. Generally these PL/SQL records represent the TCA entities
For example, define a Match Rule (Match Rule Id = 1001) with has attributes , score and threshold value as below
Threshold value defined as 100
Party First Name score is 25
Party Last Name score is 25
Party Telephone Number is 25
Party Addess1 is 25
Party Email Address is 100
That means, while searching for parties, if the First Name, Last Name, Telephone Number and Address1 matches to any of the existing TCA party, the score becomes 100 which is equal to threshold, and the API identifies it as duplicate
If the above four attributes don’t match, then the score never reaches 100. Result is No duplicate
In other case, if the Email address match with any of the existing TCA party record, the score is 100 which is equal to threshold, API identifies it as duplicates. I have given the score for Email address as 100 because email address never duplicates.
Now, you can pass the above attributes to the HZ_PARTY_SEARCH.FIND_PARTIES API.
P_PARTY_SEARH_REC.first_name = 'ABC'
P_PARTY_SEARCH_REC.last_name = 'XYZ'
P_CONTACT_POINT_LIST(1).PHONE = '123456789'
P_PARTY_SITE_LIST(1).ADDRESS1 = 'Steet name'
Then call the API. Sorry, I don't have the complete code with me. Here I'm just giving an example with what I recalled on my experience. I have used FIND_PARTIES API successfully in the last assingment.
Regards,
Ram -
Thor.API.Operations.tcProvisioningOperationsIntf.set : API Usage
Hi experts,
Need help to write code using Thor.API.Operations.tcProvisioningOperationsIntf.set API.
I want to set task status to completed.
Please provide clue for usage of this API and parameters passing.
[API Link|http://otndnld.oracle.co.jp/document/products/id_mgmt/idm_904/doc_cd/javadocs/operations/Thor/API/Operations/tcProvisioningOperationsIntf.html]
Thanks.864070 wrote:
Hi experts,
Need help to write code using Thor.API.Operations.tcProvisioningOperationsIntf.set API.
I want to set task status to completed.
Please provide clue for usage of this API and parameters passing.
[API Link|http://otndnld.oracle.co.jp/document/products/id_mgmt/idm_904/doc_cd/javadocs/operations/Thor/API/Operations/tcProvisioningOperationsIntf.html]
Thanks.Just an example here:
http://idmclub.wikidot.com/direct-provisioning
and here some discussion:
https://forums.oracle.com/forums/thread.jspa?messageID=10433165 -
Logging settings via CF Admin API
G'day
I've never needed to use the CF Administrator API before
today. Strange
but true.
So I'm taking a look at it. The implementation seems
incomplete, unless
I'm missing something (entirely likely: the docs are a bit
light-weight).
Is there any way to access the functionality of the "Log
Files" page via
the API?
Also, is there any way of persisting the authenticated
administrator object
(CFIDE.adminapi.administrator), rather than having to
recreate it each... I
presume... session? I'd like to have the authentication done
once at
application start-up, then persisted for subsequent usage by
Admin
API-calling code.
I'm tying to avoid storing the pwd in a template, and the
nature of what I
want to do is such that I cannot have someone enter the pwd
every time I
need the code to run.
I was kind of expecting to ceeate an authentication object
that I then pass
to methods needing authentication. Not having it session
based (which
seems wrong for API-driven access to the Administrator).
Basically what I'm trying to do is to have a scheduled task
archive a log
file (as per pressing the "Archive log file" button on the
logfile listing)
should certain circumstances occur. I could mess around with
CFFILE and
what not and DIY easily enough, but I was kind of expecting
not to have to
reinvent the wheel.
Any guidance, thoughts or observations welcomed.
Cheers.
AdamHi,
If it were me, I'd write a remote proxy CFC that marshals
calls to the admin API. This way you could easily add a security
layer to this proxy CFC.
Although the API way is probably cleanest, from an admin
point of view, you might prefer to work with exporting the
configuration XML files?
This could avoid a) writing the AIR app and b) tracking when
a remote service isn't available to call the CFIDE API? This could
cause you major headaches!
Good luck.
D -
Can anuone help me on persistence API problem please?
I would like someone to explain me why when using persistence API
sometime i can insert data in database normally but later when i
have added more functionalities like ajax, and file upload i can
insert data in database using persistence API.
for instance, using this i was able in the begin of my development
but now i am not:
utx.begin();
inst.insert(name, email);
utx.commit();replace the code above by this below i can insert the data
at the same step of my project:
Class.forName("com.mysql.jdbc.jdbc2.optional.MysqlDataSource").newInstance();
con = DriverManager.getConnection("jdbc:mysql://127.0.0.1/loja?user=marcos&password=131283");
String selectStatement = "insert into cadastroswebradio values(?, ?)";
PreparedStatement prepStmt = con.prepareStatement(selectStatement);
prepStmt.setString(1, name);
prepStmt.setString(2, email);So what's the problem? could anyone help me?Thanks!!
this explain either:http://forum.java.sun.com/thread.jspa?threadID=764824Basically i totally not understand your question and i believe also nobody would understand what is your question. You mean your persistence APIs, but you didnt show how the APIs and just use it, i can say that, the only different of that JDBC and your 'persistence', is your JDBC isnt commit function(not include auto-commit). What i can see is that's all.
But the idea of usage DB conn API should be correct with the 3 steps,
Begin - Open connection
Query - insert/update/delete
Close - commit
catch - Rollback
Hopefully it helps.
Maybe you are looking for
-
Error while connecting R/3 to BW
Hello Experts, I have found many posts concerning this issue, but none of them gave me the specific info I need, so here we go: I want to connect R/3 system to BW. When I Create the connection in RSA1, I fill in the required fields, get prompted to l
-
Cant download flash because of active x
i cant download flash because the activex is blocking it..its really annoying me..and i cant listen to music or watch videos.. it says i cant continue because it dosnt trust the website but ive tried everything like adding it to the trust website col
-
Customizing ADF component rendering
Hi, I'm trying to override some ADF component rendering in order to provide some clients with a simple application appearance. To do so, in faces-config.xml: <pre> <render-kit> <render-kit-id>oracle.adf.core</render-kit-id> <renderer> <component-fami
-
Testversion PSE 12 - Test nach 1 Std. abgelaufen?
Hallo, ich hab mir Gestern PSE 12 als Testversion installiert. Alles lief zunächst prima. Aber: Bereits nach 1 Stunde hieß es, "der Testzeitraum ist abelaufen!" Was kann ich tun? Gruß Sebastian
-
How do I create a window (frame) that has the same physical dimensions regardless of screen resolution? Say, for example, 15 cm x 10 cm? I thought I could use the following to compute the pixel dimensions: Toolkit kit = Toolkit.getDefaultToolkit(); i