src/com/vehiclerental/Main.java
/**
     * Starts the head office with the Socket server node
     *
     * @throws MPIException if the MPI system fails
     * @throws SQLException if the database can't be used correctly
     */
Starts the head office with the Socket server node
@throws MPIException if the MPI system fails
@throws SQLException if the database can't be used correctly
Starts the head office with the Socket server node @throws MPIException if the MPI system fails @throws SQLException if the database can ' t be used correctly
private static void handleSocketServerNode() throws MPIException, SQLException {
        NodeConfiguration.Current.headOfficeManager = new HeadOfficeManager();
        NodeConfiguration.Current.headOfficeManager.start();
        String processorName = MPI.getProcessorName();
        NodeConfiguration.Current.mpiNodeManager.finalizeNode();
        System.out.println(">>> Head office stopped on " + processorName);
    }
private static void handleSocketServerNode ( ) throws MPIException , SQLException { NodeConfiguration . Current . headOfficeManager = new HeadOfficeManager ( ) ; NodeConfiguration . Current . headOfficeManager . start ( ) ; String processorName = MPI . getProcessorName ( ) ; NodeConfiguration . Current . mpiNodeManager . finalizeNode ( ) ; System . out . println ( ">>> Head office stopped on " + processorName ) ; }
Starts the head office with the Socket server node
 @throws MPIException if the MPI system fails
 @throws SQLException if the database can't be used correctly
Starts the head office with the Socket server node @throws MPIException if the MPI system fails @throws SQLException if the database can ' t be used correctly
//This will be called when the server is stopped