Tabnine Logo
FileAlterationListener.onStart
Code IndexAdd Tabnine to your IDE (free)

How to use
onStart
method
in
org.apache.commons.io.monitor.FileAlterationListener

Best Java code snippets using org.apache.commons.io.monitor.FileAlterationListener.onStart (Showing top 5 results out of 315)

origin: commons-io/commons-io

/**
 * Check whether the file and its children have been created, modified or deleted.
 */
public void checkAndNotify() {
  /* fire onStart() */
  for (final FileAlterationListener listener : listeners) {
    listener.onStart(this);
  }
  /* fire directory/file events */
  final File rootFile = rootEntry.getFile();
  if (rootFile.exists()) {
    checkAndNotify(rootEntry, rootEntry.getChildren(), listFiles(rootFile));
  } else if (rootEntry.isExists()) {
    checkAndNotify(rootEntry, rootEntry.getChildren(), FileUtils.EMPTY_FILE_ARRAY);
  } else {
    // Didn't exist and still doesn't
  }
  /* fire onStop() */
  for (final FileAlterationListener listener : listeners) {
    listener.onStop(this);
  }
}
origin: io.github.stephenc.docker/docker-client-shaded

/**
 * Check whether the file and its chlidren have been created, modified or deleted.
 */
public void checkAndNotify() {
  /* fire onStart() */
  for (final FileAlterationListener listener : listeners) {
    listener.onStart(this);
  }
  /* fire directory/file events */
  final File rootFile = rootEntry.getFile();
  if (rootFile.exists()) {
    checkAndNotify(rootEntry, rootEntry.getChildren(), listFiles(rootFile));
  } else if (rootEntry.isExists()) {
    checkAndNotify(rootEntry, rootEntry.getChildren(), FileUtils.EMPTY_FILE_ARRAY);
  } else {
    // Didn't exist and still doesn't
  }
  /* fire onStop() */
  for (final FileAlterationListener listener : listeners) {
    listener.onStop(this);
  }
}
origin: com.impetus.fabric/fabric-jdbc-driver-shaded

/**
 * Check whether the file and its children have been created, modified or deleted.
 */
public void checkAndNotify() {
  /* fire onStart() */
  for (final FileAlterationListener listener : listeners) {
    listener.onStart(this);
  }
  /* fire directory/file events */
  final File rootFile = rootEntry.getFile();
  if (rootFile.exists()) {
    checkAndNotify(rootEntry, rootEntry.getChildren(), listFiles(rootFile));
  } else if (rootEntry.isExists()) {
    checkAndNotify(rootEntry, rootEntry.getChildren(), FileUtils.EMPTY_FILE_ARRAY);
  } else {
    // Didn't exist and still doesn't
  }
  /* fire onStop() */
  for (final FileAlterationListener listener : listeners) {
    listener.onStop(this);
  }
}
origin: org.onosproject/onlab-thirdparty

/**
 * Check whether the file and its chlidren have been created, modified or deleted.
 */
public void checkAndNotify() {
  /* fire onStart() */
  for (FileAlterationListener listener : listeners) {
    listener.onStart(this);
  }
  /* fire directory/file events */
  File rootFile = rootEntry.getFile();
  if (rootFile.exists()) {
    checkAndNotify(rootEntry, rootEntry.getChildren(), listFiles(rootFile));
  } else if (rootEntry.isExists()) {
    checkAndNotify(rootEntry, rootEntry.getChildren(), FileUtils.EMPTY_FILE_ARRAY);
  } else {
    // Didn't exist and still doesn't
  }
  /* fire onStop() */
  for (FileAlterationListener listener : listeners) {
    listener.onStop(this);
  }
}
origin: Nextdoor/bender

/**
 * Check whether the file and its chlidren have been created, modified or deleted.
 */
public void checkAndNotify() {
  /* fire onStart() */
  for (FileAlterationListener listener : listeners) {
    listener.onStart(this);
  }
  /* fire directory/file events */
  File rootFile = rootEntry.getFile();
  if (rootFile.exists()) {
    checkAndNotify(rootEntry, rootEntry.getChildren(), listFiles(rootFile));
  } else if (rootEntry.isExists()) {
    checkAndNotify(rootEntry, rootEntry.getChildren(), FileUtils.EMPTY_FILE_ARRAY);
  } else {
    // Didn't exist and still doesn't
  }
  /* fire onStop() */
  for (FileAlterationListener listener : listeners) {
    listener.onStop(this);
  }
}
org.apache.commons.io.monitorFileAlterationListeneronStart

Javadoc

File system observer started checking event.

Popular methods of FileAlterationListener

  • onDirectoryChange
    Directory changed Event.
  • onDirectoryCreate
    Directory created Event.
  • onDirectoryDelete
    Directory deleted Event.
  • onFileChange
    File changed Event.
  • onFileCreate
    File created Event.
  • onFileDelete
    File deleted Event.
  • onStop
    File system observer finished checking event.

Popular in Java

  • Finding current android device location
  • setScale (BigDecimal)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • addToBackStack (FragmentTransaction)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now