Output of pizza_example.py
Opening mypizzadatabase
Opening PSpace
Opening working set
Created new database
Id CustomerId Name Status
------------------------------------------
0 2 Greg Gates 1
1 6 John Johnson 2
4 2 Greg Gates 0
5 1 Janet Howard 3
6 8 Rihanna Johnson 2
7 8 Rihanna Johnson 3
8 6 John Johnson 0
9 6 John Johnson 3
toppings: {0: (1.73, 'Garlic')}
Closing WorkingSet
Closing PSpace
Closing PersistStore
Opening mypizzadatabase
Opening PSpace
Opening working set
Opened existing database
Id CustomerId Name Status
------------------------------------------
0 2 Greg Gates 1
1 6 John Johnson 2
4 2 Greg Gates 0
5 1 Janet Howard 3
6 8 Rihanna Johnson 2
7 8 Rihanna Johnson 3
8 6 John Johnson 0
9 6 John Johnson 3
10 6 John Johnson 1
12 4 Janet Matthews 0
15 7 John Gates 1
17 3 Janet Matthews 0
18 8 Rihanna Johnson 1
19 5 John Johnson 3
toppings: {0: (1.73, 'Garlic'), 1: (1.12, 'Garlic')}
Closing WorkingSet
Closing PSpace
Closing PersistStore
Opening mypizzadatabase
Opening PSpace
Opening working set
Opened existing database
Id CustomerId Name Status
------------------------------------------
0 2 Greg Gates 1
1 6 John Johnson 2
2 12 Peter Gates 1
3 12 Peter Gates 0
4 2 Greg Gates 0
5 1 Janet Howard 3
6 8 Rihanna Johnson 2
7 8 Rihanna Johnson 3
8 6 John Johnson 0
9 6 John Johnson 3
10 6 John Johnson 1
12 4 Janet Matthews 0
15 7 John Gates 1
16 12 Peter Gates 3
17 3 Janet Matthews 0
18 8 Rihanna Johnson 1
19 5 John Johnson 3
20 8 Rihanna Johnson 0
23 1 Janet Howard 2
25 4 Janet Matthews 0
26 12 Peter Gates 1
27 1 Janet Howard 2
28 1 Janet Howard 3
toppings: {0: (1.73, 'Garlic'), 1: (1.12, 'Garlic'), 2: (1.72, 'Jalapenos')}
Closing WorkingSet
Closing PSpace
Closing PersistStore
Replication test mypizzadatabase to myreplicatedpizzadatabase
Opening mypizzadatabase
Opening PSpace
Opening working set
Creating server listening on port 3000
num server operations = 16
Opening myreplicatedpizzadatabase
Opening PSpace
Opening working set
Creating client connecting to '127.0.0.1':3000
num client operations = 0
num client operations = 0
num client operations = 0
num client operations = 0
num client operations = 0
num client operations = 16
time to sync databases = 0.003999948501586914 seconds
TPizzaDeliveryDatabase
{
Vehicles =
{
1 : TVehicle(5,BYX.118)
2 : TVehicle(6,JQO.074)
3 : TVehicle(6,ZIL.729)
4 : TVehicle(7,BMS.832)
5 : TVehicle(1,CWN.606)
6 : TVehicle(8,AQD.433)
7 : TVehicle(4,NOC.102)
8 : TVehicle(6,MYF.585)
9 : TVehicle(2,ZBR.494)
10 : TVehicle(3,VVW.895)
}
VehicleTypes =
{
1 : TVehicleType(Ford Fiesta)
2 : TVehicleType(Mazda3)
3 : TVehicleType(Kia Rio)
4 : TVehicleType(Toyota Yaris)
5 : TVehicleType(Honda Civic)
6 : TVehicleType(Mitsubishi Lancer)
7 : TVehicleType(Subaru Impreza)
8 : TVehicleType(Volkswagen Passat)
}
Employees =
{
0 : TEmployee
{
Address = TAddress
{
Number = 41
Street = Regent St
City = London
ZipPostCode = 9993
StateProvinceCounty = Alaska
Country = India
}
FirstName = Kate
LastName = Gates
PhoneNumber = 8416 084 729
}
1 : TEmployee
{
Address = TAddress
{
Number = 13
Street = Mayfair St
City = Berlin
ZipPostCode = 9569
StateProvinceCounty = Florida
Country = India
}
FirstName = Greg
LastName = Gates
PhoneNumber = 3769 939 802
}
2 : TEmployee
{
Address = TAddress
{
Number = 26
Street = Mayfair St
City = Berlin
ZipPostCode = 1695
StateProvinceCounty = Texas
Country = USA
}
FirstName = Greg
LastName = Johnson
PhoneNumber = 8007 831 113
}
}
Toppings =
{
0 : TTopping
{
Price = 1.73
Description = Garlic
}
1 : TTopping
{
Price = 1.12
Description = Garlic
}
2 : TTopping
{
Price = 1.72
Description = Jalapenos
}
}
Customers =
{
0 : TCustomer
{
Address = TAddress
{
Number = 36
Street = Old Kent Road
City = Berlin
ZipPostCode = 1422
StateProvinceCounty = Texas
Country = USA
}
FirstName = Kate
LastName = Howard
PhoneNumber = 9871 233 698
Email = Rihanna.Johnson@gmail.com
DateOfFirstOrder = Feb 06 2016 15:02
PaymentMethod = EftPos
}
1 : TCustomer
{
Address = TAddress
{
Number = 20
Street = Mayfair St
City = Paris
ZipPostCode = 8361
StateProvinceCounty = California
Country = England
}
FirstName = Janet
LastName = Howard
PhoneNumber = 4727 599 423
Email = Greg.Johnson@gmail.com
DateOfFirstOrder = Jan 04 2016 19:55
PaymentMethod = Cash
}
2 : TCustomer
{
Address = TAddress
{
Number = 7
Street = Mayfair St
City = Paris
ZipPostCode = 6673
StateProvinceCounty = California
Country = Australia
}
FirstName = Greg
LastName = Gates
PhoneNumber = 1793 552 773
Email = Peter.Matthews@gmail.com
DateOfFirstOrder = Sep 25 2017 15:07
PaymentMethod = Cash
}
3 : TCustomer
{
Address = TAddress
{
Number = 19
Street = Oxford St
City = Paris
ZipPostCode = 5111
StateProvinceCounty = California
Country = Australia
}
FirstName = Janet
LastName = Matthews
PhoneNumber = 8018 122 705
Email = Janet.Johnson@gmail.com
DateOfFirstOrder = Sep 22 2016 00:38
PaymentMethod = CreditCard
}
4 : TCustomer
{
Address = TAddress
{
Number = 13
Street = Mayfair St
City = Berlin
ZipPostCode = 8530
StateProvinceCounty = Texas
Country = England
}
FirstName = Janet
LastName = Matthews
PhoneNumber = 5604 778 895
Email = Peter.Smith@gmail.com
DateOfFirstOrder = Feb 21 2017 17:20
PaymentMethod = EftPos
}
5 : TCustomer
{
Address = TAddress
{
Number = 4
Street = Regent St
City = Berlin
ZipPostCode = 3387
StateProvinceCounty = Alaska
Country = India
}
FirstName = John
LastName = Johnson
PhoneNumber = 1878 203 690
Email = Rihanna.Johnson@gmail.com
DateOfFirstOrder = Oct 11 2017 01:18
PaymentMethod = CreditCard
}
6 : TCustomer
{
Address = TAddress
{
Number = 16
Street = Mayfair St
City = Paris
ZipPostCode = 1733
StateProvinceCounty = Texas
Country = England
}
FirstName = John
LastName = Johnson
PhoneNumber = 6692 829 954
Email = Janet.Howard@gmail.com
DateOfFirstOrder = Sep 10 2016 15:03
PaymentMethod = CreditCard
}
7 : TCustomer
{
Address = TAddress
{
Number = 19
Street = Old Kent Road
City = Berlin
ZipPostCode = 4816
StateProvinceCounty = Alaska
Country = USA
}
FirstName = John
LastName = Gates
PhoneNumber = 6732 083 032
Email = Janet.Johnson@gmail.com
DateOfFirstOrder = Mar 19 2016 22:21
PaymentMethod = Cash
}
8 : TCustomer
{
Address = TAddress
{
Number = 9
Street = Mayfair St
City = Berlin
ZipPostCode = 3993
StateProvinceCounty = California
Country = Australia
}
FirstName = Rihanna
LastName = Johnson
PhoneNumber = 7593 009 290
Email = John.Smith@gmail.com
DateOfFirstOrder = Jun 18 2017 14:20
PaymentMethod = EftPos
}
9 : TCustomer
{
Address = TAddress
{
Number = 47
Street = Oxford St
City = Berlin
ZipPostCode = 8056
StateProvinceCounty = New South Wales
Country = England
}
FirstName = Kate
LastName = Smith
PhoneNumber = 4981 071 751
Email = Peter.Johnson@gmail.com
DateOfFirstOrder = Jun 18 2017 07:36
PaymentMethod = EftPos
}
10 : TCustomer
{
Address = TAddress
{
Failure : mcsf = 1 ec = connection has been closed
Failure : mcsf = 1 ec = An existing connection was forcibly closed by the remote host
Number = 46
Street = Oxford St
City = Paris
ZipPostCode = 2776
StateProvinceCounty = Alaska
Country = England
}
FirstName = Peter
LastName = Howard
PhoneNumber = 0096 807 103
Email = Peter.Johnson@gmail.com
DateOfFirstOrder = Sep 21 2017 05:35
PaymentMethod = EftPos
}
11 : TCustomer
{
Address = TAddress
{
Number = 7
Street = Old Kent Road
City = Berlin
ZipPostCode = 7201
StateProvinceCounty = California
Country = USA
}
FirstName = Rihanna
LastName = Matthews
PhoneNumber = 1010 822 774
Email = Rihanna.Smith@gmail.com
DateOfFirstOrder = Dec 09 2017 21:53
PaymentMethod = CreditCard
}
12 : TCustomer
{
Address = TAddress
{
Number = 40
Street = Oxford St
City = New York
ZipPostCode = 8700
StateProvinceCounty = California
Country = Australia
}
FirstName = Peter
LastName = Gates
PhoneNumber = 1389 044 992
Email = Janet.Matthews@gmail.com
DateOfFirstOrder = Jan 20 2017 08:36
PaymentMethod = EftPos
}
}
Orders = [00000004.0000000b,00000004.0000000c,00000004.0000000d,00000004.0000000e,00000004.0000000f,00000004.00000010,
00000004.00000011,00000004.00000012,00000004.00000013,00000004.00000014,00000004.00000015,00000004.00000016,
00000004.00000017,00000004.00000018,00000004.00000019,00000004.0000001a,00000004.0000001b,00000004.0000001c,
00000004.0000001d,00000004.0000001e,00000004.0000001f,00000004.00000020,00000004.00000021,00000004.00000022,
00000004.00000023,00000004.00000024,00000004.00000025,00000004.00000026,00000004.00000027,00000004.00000028]
}
Closing client
Closing Iocp
Closing WorkingSet
Closing PSpace
Closing PersistStore
Closing server
Closing Iocp
Closing WorkingSet
Closing PSpace
Closing PersistStore