Output of pizza_example.py
Opening mypizzadatabase
Opening PSpace
Opening working set
Created new database
Id CustomerId Name Status
------------------------------------------
0 3 Janet Smith 3
2 7 Kate Smith 3
4 10 Greg Johnson 2
6 5 Peter Johnson 0
7 9 Rihanna Smith 2
8 3 Janet Smith 0
toppings: {0: (1.38, 'Red peppers')}
Closing WorkingSet
Closing PSpace
Closing PersistStore
Opening mypizzadatabase
Opening PSpace
Opening working set
Opened existing database
Id CustomerId Name Status
------------------------------------------
0 3 Janet Smith 3
2 7 Kate Smith 3
4 10 Greg Johnson 2
6 5 Peter Johnson 0
7 9 Rihanna Smith 2
8 3 Janet Smith 0
10 4 Peter Howard 0
12 9 Rihanna Smith 3
13 9 Rihanna Smith 3
14 9 Rihanna Smith 3
15 3 Janet Smith 3
17 10 Greg Johnson 0
18 7 Kate Smith 0
19 5 Peter Johnson 3
toppings: {0: (1.38, 'Red peppers'), 1: (1.62, 'Mushrooms')}
Closing WorkingSet
Closing PSpace
Closing PersistStore
Opening mypizzadatabase
Opening PSpace
Opening working set
Opened existing database
Id CustomerId Name Status
------------------------------------------
0 3 Janet Smith 3
2 7 Kate Smith 3
4 10 Greg Johnson 2
6 5 Peter Johnson 0
7 9 Rihanna Smith 2
8 3 Janet Smith 0
10 4 Peter Howard 0
11 12 Greg Smith 3
12 9 Rihanna Smith 3
13 9 Rihanna Smith 3
14 9 Rihanna Smith 3
15 3 Janet Smith 3
16 12 Greg Smith 0
17 10 Greg Johnson 0
18 7 Kate Smith 0
19 5 Peter Johnson 3
22 4 Peter Howard 2
23 11 Peter Gates 1
24 2 Greg Gates 2
25 7 Kate Smith 1
26 3 Janet Smith 1
27 3 Janet Smith 1
29 5 Peter Johnson 2
toppings: {0: (1.38, 'Red peppers'), 1: (1.62, 'Mushrooms'), 2: (1.79, 'Garlic')}
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 = 13
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 = 13
time to sync databases = 0.003999948501586914 seconds
TPizzaDeliveryDatabase
{
Vehicles =
{
1 : TVehicle(8,KEP.912)
2 : TVehicle(8,XWI.575)
3 : TVehicle(3,VEP.026)
4 : TVehicle(3,USJ.650)
5 : TVehicle(5,ARW.948)
6 : TVehicle(4,CTK.145)
7 : TVehicle(6,ZES.306)
8 : TVehicle(1,JDK.287)
9 : TVehicle(2,LLB.054)
10 : TVehicle(6,UBJ.956)
}
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 = 47
Street = Regent St
City = London
ZipPostCode = 3334
StateProvinceCounty = Florida
Country = India
}
FirstName = Peter
LastName = Smith
PhoneNumber = 5776 225 090
}
1 : TEmployee
{
Address = TAddress
{
Number = 43
Street = Old Kent Road
City = Paris
ZipPostCode = 5121
StateProvinceCounty = Alaska
Country = India
}
FirstName = Rihanna
LastName = Howard
PhoneNumber = 9999 922 558
}
2 : TEmployee
{
Address = TAddress
{
Number = 43
Street = Old Kent Road
City = Berlin
ZipPostCode = 5655
StateProvinceCounty = New South Wales
Country = USA
}
FirstName = John
LastName = Howard
PhoneNumber = 6687 375 895
}
}
Toppings =
{
0 : TTopping
{
Price = 1.38
Description = Red peppers
}
1 : TTopping
{
Price = 1.62
Description = Mushrooms
}
2 : TTopping
{
Price = 1.79
Description = Garlic
}
}
Customers =
{
0 : TCustomer
{
Address = TAddress
{
Number = 38
Street = Mayfair St
City = Paris
ZipPostCode = 8363
StateProvinceCounty = Texas
Country = Australia
}
FirstName = Kate
LastName = Smith
PhoneNumber = 3311 755 284
Email = Greg.Howard@gmail.com
DateOfFirstOrder = Jul 01 2016 06:37
PaymentMethod = EftPos
}
1 : TCustomer
{
Address = TAddress
{
Number = 5
Street = Oxford St
City = Berlin
ZipPostCode = 3344
StateProvinceCounty = California
Country = Australia
}
FirstName = Janet
LastName = Johnson
PhoneNumber = 2766 725 414
Email = Kate.Johnson@gmail.com
DateOfFirstOrder = Sep 11 2016 06:47
PaymentMethod = CreditCard
}
2 : TCustomer
{
Address = TAddress
{
Number = 14
Street = Mayfair St
City = Berlin
ZipPostCode = 6515
StateProvinceCounty = New South Wales
Country = England
}
FirstName = Greg
LastName = Gates
PhoneNumber = 0955 771 226
Email = Kate.Gates@gmail.com
DateOfFirstOrder = Dec 04 2017 17:37
PaymentMethod = EftPos
}
3 : TCustomer
{
Address = TAddress
{
Number = 38
Street = Old Kent Road
City = Perth
ZipPostCode = 7466
StateProvinceCounty = Florida
Country = England
}
FirstName = Janet
LastName = Smith
PhoneNumber = 2156 739 046
Email = Kate.Howard@gmail.com
DateOfFirstOrder = Jan 13 2016 10:30
PaymentMethod = CreditCard
}
4 : TCustomer
{
Address = TAddress
{
Number = 7
Street = Regent St
City = Paris
ZipPostCode = 4853
StateProvinceCounty = Florida
Country = England
}
FirstName = Peter
LastName = Howard
PhoneNumber = 4161 749 881
Email = Peter.Smith@gmail.com
DateOfFirstOrder = Feb 03 2017 13:34
PaymentMethod = Cash
}
5 : TCustomer
{
Address = TAddress
{
Number = 5
Street = Oxford St
City = New York
ZipPostCode = 3648
StateProvinceCounty = New South Wales
Country = USA
}
FirstName = Peter
LastName = Johnson
PhoneNumber = 0080 297 517
Email = Kate.Gates@gmail.com
DateOfFirstOrder = Jul 25 2017 02:38
PaymentMethod = CreditCard
}
6 : TCustomer
{
Address = TAddress
{
Number = 38
Street = Mayfair St
City = Paris
ZipPostCode = 3268
StateProvinceCounty = California
Country = Australia
}
FirstName = John
LastName = Howard
PhoneNumber = 9117 958 919
Email = Kate.Smith@gmail.com
DateOfFirstOrder = Apr 26 2016 06:29
PaymentMethod = EftPos
}
7 : TCustomer
{
Address = TAddress
{
Number = 35
Street = Oxford St
City = London
ZipPostCode = 4989
StateProvinceCounty = New South Wales
Country = England
}
FirstName = Kate
LastName = Smith
PhoneNumber = 8847 419 337
Email = Rihanna.Matthews@gmail.com
DateOfFirstOrder = Oct 15 2017 12:05
PaymentMethod = Cash
}
8 : TCustomer
{
Address = TAddress
{
Number = 50
Street = Mayfair St
City = London
ZipPostCode = 2140
StateProvinceCounty = New South Wales
Country = USA
}
FirstName = Peter
LastName = Johnson
PhoneNumber = 3522 587 263
Email = Rihanna.Matthews@gmail.com
DateOfFirstOrder = Oct 04 2017 05:31
PaymentMethod = Cash
}
9 : TCustomer
{
Address = TAddress
{
Number = 50
Street = Mayfair St
City = Paris
ZipPostCode = 2189
StateProvinceCounty = Alaska
Country = USA
}
FirstName = Rihanna
LastName = Smith
PhoneNumber = 8640 629 896
Email = Peter.Matthews@gmail.com
DateOfFirstOrder = Jan 25 2017 10:31
Failure : mcsf = 1 ec = connection has been closed
Failure : mcsf = 1 ec = An existing connection was forcibly closed by the remote host
PaymentMethod = Cash
}
10 : TCustomer
{
Address = TAddress
{
Number = 17
Street = Oxford St
City = New York
ZipPostCode = 6880
StateProvinceCounty = New South Wales
Country = England
}
FirstName = Greg
LastName = Johnson
PhoneNumber = 8195 303 958
Email = Greg.Gates@gmail.com
DateOfFirstOrder = Jan 26 2017 12:19
PaymentMethod = EftPos
}
11 : TCustomer
{
Address = TAddress
{
Number = 25
Street = Old Kent Road
City = Berlin
ZipPostCode = 6537
StateProvinceCounty = Florida
Country = England
}
FirstName = Peter
LastName = Gates
PhoneNumber = 8858 992 019
Email = Janet.Gates@gmail.com
DateOfFirstOrder = Oct 18 2017 19:55
PaymentMethod = Cash
}
12 : TCustomer
{
Address = TAddress
{
Number = 40
Street = Regent St
City = Berlin
ZipPostCode = 2606
StateProvinceCounty = Texas
Country = USA
}
FirstName = Greg
LastName = Smith
PhoneNumber = 3673 548 498
Email = Peter.Johnson@gmail.com
DateOfFirstOrder = Sep 09 2017 11:26
PaymentMethod = Cash
}
}
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