Posts that level20peon is monitoring
|
Jan 21, 2010
|
Topic: feature request - remove auctions after n days / after x complete auctions Greetings, Try:
The URL is actually Don’t worry about formatting options; I’ve fixed it up. You can use <pre></pre> to block code out, or highlight code inline with <code></code>. — Morgan Schweers, CyberFOX! |
|
Jan 21, 2010
|
Topic: feature request - remove auctions after n days / after x complete auctions Greetings, curl "http://username:password@localhost:9099/event?name=delete¶m={ebay_identifier}"
That triggers an event named ‘delete’, which listens for item numbers and removes them from JBidwatcher. This is actually how the UI deletes items, by throwing them into JBidwatcher’s internal event queue named ‘delete’. There are a dozen or so internal event queues, all handled with Java threads. I built it this way so it would have a responsive UI which would produce queue entries, with all the real work done by named queue consumers. Then, when I implemented the web mode, I threw in a few lines of code (about 6!) which added a hook into the event system via the web interface. It’s amazingly powerful for firing asynchronous events, but also completely unused. I don’t even have a list anywhere of all the events, and the parameters they take, but here are a few of the important queues…this is the first time I’ve documented this publicly, I believe.
Case is important, all the queues except Swing are lower case. Not all of the queues accept a string argument, but I think most of them do. I tried to move towards a database-backed queuing system, but I failed as some of the queues couldn’t accept a string argument, and not every data type serialized well, so I backed those changes out a while ago. To be clear, what you do is request curl “http://user:pass@localhost:9099/event?name={queue}¶m={string}” to put the event on the queue. (I put it in quotes and a curl statement so the forum software wouldn’t auto-URL-ify it. It works just as well from a Ruby script or some-such.)
Hope that helps in some way! As for the scripting layer, I’ve been thinking more about how to offer it as an add-on, for folks who want the extra power. I truly suck at documentation, preferring to show example code over extensive documentation. I’ll see what I can do, though. — Morgan Schweers, CyberFOX! |
|
Jan 21, 2010
|
Topic: java -Xmx512m -Xmx256m -Xmx128m Greetings, As for MySQL, out of curiosity, is there a reason you can’t use the jbidwatcher database name? I don’t dispute that it’s a bug, and I’ll definitely dig into it, but in the mean time why not use the ‘jbidwatcher’ database under MySQL as it stands? — Morgan Schweers, CyberFOX! |
|
Jan 20, 2010
|
Topic: feature request - remove auctions after n days / after x complete auctions Greetings, This is one example of why I wish I had gotten scripting into JBidwatcher; I could give you a quickie script in probably 5-10 minutes which you could add into the scripting edition of JBidwatcher that would do exactly what you want, but my scripting version adds 10MB to JBidwatcher’s size. :( I never came up with a killer feature that would sell folks on the additional weight. — Morgan Schweers, CyberFOX! |
|
Jan 20, 2010
|
Topic: java -Xmx512m -Xmx256m -Xmx128m Greetings, That’s a Java option, not a JBidwatcher option, which is why I ask. JBidwatcher doesn’t limit its own memory usage, the command line option tells Java to limit it. — Morgan Schweers, CyberFOX! |