protected static void shutdown(int port,InetAddress address) throws IOException {
  if (shutdown) {
    return;
  }
  shutdown=true;
  if (directory != null) {
    ManagerInfo.setLocatorStopping(directory,port,address);
  }
  if (lockFile != null) {
    if (!lockFile.delete() && lockFile.exists()) {
      IOException e=new IOException("Unable to delete " + lockFile.getAbsolutePath());
      e.printStackTrace();
    }
  }
  logger.info(LocalizedStrings.DistributionLocator_LOCATOR_STOPPED);
}

protected static void shutdown ( int port , InetAddress address ) throws IOException { if ( shutdown ) { return ; } shutdown = true ; if ( directory != null ) { ManagerInfo . setLocatorStopping ( directory , port , address ) ; } if ( lockFile != null ) { if ( ! lockFile . delete ( ) && lockFile . exists ( ) ) { IOException e = new IOException ( "Unable to delete " + lockFile . getAbsolutePath ( ) ) ; e . printStackTrace ( ) ; } } logger . info ( LocalizedStrings . DistributionLocator_LOCATOR_STOPPED ) ; }
cleans up the artifacts left by this managed locator vm .
