This project is an implementation of a Java RMI (Remote Method Invocation) system for managing a parking lot. It includes a server capable of handling parking spot reservations with three primary functions: search, reserve, and cancel. The system architecture allows clients to interact remotely with the server to perform these operations.
The project is structured as follows:
Client/: This directory contains the RMI client implementation that interacts with the parking server.ParkingManager/: Contains the RMI interface definition for the parking service.ParkingManagerImpl/: Contains the implementation of the RMI interface, providing the logic for managing parking reservations.Reservation/: This package should contain classes related to reservation data such asId_reservation,numero_place,nom_client,date_reservation.Server/: This directory holds the RMI server setup and binding code.
- Java JDK 1.8 or later.
- IntelliJ IDEA or any Java IDE with RMI support for ease of development.
- Compile the source code: Use your Java IDE or the command line to compile the source code in the
src/directory. - Start the RMI registry: Run the RMI registry on the command line using
rmiregistryor through the IDE. - Start the server: Run the
Servermodule to initialize the RMI server and register the parking service. - Run the client: Execute the
Clientmodule to interact with the parking service.
The system defines three operations:
- Search (
search): Clients can search for available parking spots. - Reserve (
reserve): Clients can reserve an available parking spot. - Cancel (
cancel): Clients can cancel an existing reservation.