Package net.commerce.zocalo.ajax.events

This package describes significant events that will be logged via Log4J and cometd (an AJAX technology).

See:
          Description

Interface Summary
TimingUpdater a callback that allows a Dispatcher to adding timing info to an Event describing an Action.
 

Class Summary
Action the base of the hierarchy of actions to be disseminated via Log4J and comet.
Ask An Action representing the fact that a user entered a new offer to Sell.
BestAsk An Action representing the fact that there's a new best offer to sell.
BestBid An Action representing the fact that there's a new best bid price in the market
Bid An Action representing the fact that a user entered a new offer to buy.
BookTrade Action representing the fact that a user traded with the order book.
IndividualTimingEvent An event relevant to one subject in an experiment.
LimitTrade Action representing the fact that a user traded with the order book.
MakerTrade Action representing the fact that a user traded with the Market Maker.
NewChart Event used to notify web pages that a delayed price chart is ready.
OrderRemoval Action representing the fact that a user removed an order from the book.
PriceAction base class of actions that represent price changes.
PriceAction.TimeComparator  
PriceChange Event used to notify web pages of new prices in a market.
Redemption Action representing the fact that coupons were redeemed when the claim was settled.
SelfDealing A user accepted his own offer.
Trade Action representing the fact that a user accepted a standing offer.
Transition Action representing changes from one Session state to the next.
 

Package net.commerce.zocalo.ajax.events Description

This package describes significant events that will be logged via Log4J and cometd (an AJAX technology). The events are used to add information to the log, to store records in the database, to update the strip chart showing bidding activity to experimental subjects, and to notify the UI of significant events. Log4J provides a general framework for connecting together reports of events that can be output in a variety of formats and piped dynamically without changing the call site.

All the event objects here descend from: Actions. They represent particular events, which are published using Log4J and cometd.

Action objects describe trades and other changes in prices including new bids (Bid and Ask), retracted bids (OrderRemoval and SelfDealing), changes in the best bid and ask (BestBid, and BestAsk), and completed trades (Trade). There are also Actions representing Transition actions affecting experiments.

Event) objects are created when something significant happens in the server.

Events are instances of subclasses of Action, which extends LoggingEvent. This makes it possible for them to be handed directly to a logger which causes them to be passed as an argument to the AppenderSkeleton's append(LoggingEvent). method.


© Copyright 2007-2009 Chris Hibbert. All rights reserved.
© 2006 CommerceNet Consortium, LLC.

This software is published under the terms of the MIT license, a copy
of which has been included with this distribution in the LICENSE file.