public void deploy(String routeId,String routeName,JsonValue routeConfig) throws RouterHandlerException {
  Reject.ifNull(routeName);
  write.lock();
  try {
    load(routeId,routeName,routeConfig.copy());
    directoryMonitor.store(routeId,routeConfig);
    logger.info("Deployed the route with id '{}' named '{}'",routeId,routeName);
  }
 catch (  IOException e) {
    throw new RouterHandlerException(format("An error occurred while storing the route '%s'",routeId),e);
  }
 finally {
    write.unlock();
  }
}

public void deploy ( String routeId , String routeName , JsonValue routeConfig ) throws RouterHandlerException { Reject . ifNull ( routeName ) ; write . lock ( ) ; try { load ( routeId , routeName , routeConfig . copy ( ) ) ; directoryMonitor . store ( routeId , routeConfig ) ; logger . info ( "Deployed the route with id '{}' named '{}'" , routeId , routeName ) ; } catch ( IOException e ) { throw new RouterHandlerException ( format ( "An error occurred while storing the route '%s'" , routeId ) , e ) ; } finally { write . unlock ( ) ; } }
deploy a route , meaning that it loads it but also stores it in a file .
