SchedulerAPI
run
Executes scheduled tasks
Parameters:ids={id1,id2...}
Returns:
<?xml version="1.0"?>
<result>done</result>
Example: http://server-ip-or-name/bldb/schedulerAPI?method=run&ids=21,22
livepeers
This method lists out all live peers
Parameters:Nil
Returns:
<?xml version="1.0"?>
<result>
<peer status="NOBUSY">4ECAPSVSG1</peer>
<peer status="NOBUSY">4ecappcsg11</peer>
<peer status="NOBUSY">4ecappcsg12</peer>
<peer status="BUSY">4ecappcsg14</peer>
<peer status="BUSY">4ecappcsg7</peer>
<peer status="BUSY">4ecapsvsg5</peer>
<peer status="BUSY">dev-server</peer>
</result>
Example: http://server-ip-or-name/bldb/schedulerAPI?method=livepeers
queue
This method lists all tasks that currently executing by peers and ready to execute by peer in any moment.
Parameters:Nil
Returns:
<?xml version="1.0"?>
<result>
<task status="EXCECUTING" id="1174" peer="dev-server"/>
<task status="EXCECUTING" id="1401" peer="4ecappcsg11"/>
</result>
Example: http://server-ip-or-name/bldb/schedulerAPI?method=queue
syncContract
This method synchronize bloomberg data with Market Contracts those mapped with reference database.
Accepts optional parameter.
Parameter contract synchronizes only specified contract
Nil parameter synchronizes all new contracts that haven't synchronized so far
Parameters:[contract=<contract_ticker>] if no parameter specified, this synchronizes all new contracts those haven't synchronized yet.
Returns:
<?xml version="1.0"?>
<result>true/false</result>
Example:
http://server-ip-or-name/bldb/schedulerAPI?method=synContract&contract=CL010
http://server-ip-or-name/bldb/schedulerAPI?method=synContract
syncSecurity
This method synchronize bloomberg data with Securities those mapped with reference database.
Accepts optional parameter.
Parameter security synchronizes only specified contract
Nil parameter synchronizes all new securities that haven't synchronized so far
Parameters:[security=<security_ticker>] if no parameter specified, this synchronizes all new securities those haven't synchronized yet.
Returns:
<?xml version="1.0"?>
<result>true/false</result>
Example:
http://server-ip-or-name/bldb/schedulerAPI?method=synSecurity&contract=AIGC
http://server-ip-or-name/bldb/schedulerAPI?method=synSecurity