|
Chapter 3. Tutorial This tutorial will take you through the steps required to get a GigaSpaces System running using the GigaSystemBuilder Plugin. The tutorial uses a worked example application - CongestionCharge. This is based on the administration of London's Congestion Charging scheme, where vehicles entering the congestion zone are required to pay a congestion charge. The congestion charge can be paid in advance of a vehicle entering the congestion zone. Any vehicles that have not paid the charge are fined. In reality it is a bit more complicated, but that's enough for the example. In our example, one process will randomly feed CongestionCharge payments into a space. When a CongestionCharge enters the space an event will be triggered which will cause an action (processCharge) to occur. Similarly when a Vehicle enters the zone, another event will be triggered which will cause an action (processVehicle) to occur. This action will check that the CongestionCharge has been paid and if not a Fine will be created. In addition there will be a service which is called to check that a Vehicle number plate is legitimate. The next section tells you how to cheat, by using the pre-built example. The section after that walks through building the application, step-by-step. There is a detailed description of the generated Eclipse projects, directory structure and Java files for the CongestionCharge project described in the tutorial, in the file 3.1 Cheat: Use the GigaSystemBuilder Examples 3.2 Creating a GigaSpaces Project
Copyright (c) 2001-2009 New Technology/enterprise Ltd. | ||||||||||||||||||