Command | Description |
Interpreter and Service |
print | Print current transaction and customer information |
exit or quit | Terminate the client. |
refresh |
Tell all managers to refresh remote references. |
kill (WC|RM|TM) [name] |
Kill specified manager. |
shutdown (WC|RM|TM) [name] |
Gracefully shutdown specified manager. |
Transactions and Customer |
begin | begin transaction |
commit | commit transaction |
abort | abort transaction |
new [UUID] | Set current customer id. If UUID is not given, a random customer id is created. |
Managing Resources |
add (car|seat|room) qty price | add resources |
delete (car|seat|room) qty | delete resources |
delete flight | cancel flight and all associate reservations. |
query (car|seat|room) loc | query available resource at loc |
price (car|seat|room) loc | query price of resource at loc |
list (car|seat|room) | list registered resources. |
Managing Reservations |
reserve f1 ... fN loc bookCar bookRoom |
make a reservation for current customer.
f1 ... fN are flights.
bookCar and bookRoom are boolean values. |
cancel [customer] | cancel reservation for given or current customer |
query itinerary [customer] | query itinerary of given or current customer |
price itinerary [customer] | query price of itinerary of given or current customer |
list customer | list registered customers. |