Interface FileNotificationMBean


public interface FileNotificationMBean
Management interface for the MBean "WebSphere:service=com.ibm.ws.kernel.filemonitor.FileNotificationMBean" The Liberty profile makes this MBean available in its platform MBean server so that users may notify the system of file changes when file monitoring is disabled. This interface can be used to request a proxy object via the JMX.newMBeanProxy(javax.management.MBeanServerConnection, javax.management.ObjectName, java.lang.Class<T>) method.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    notifyFileChanges(Collection<String> createdFiles, Collection<String> modifiedFiles, Collection<String> deletedFiles)
    Invokes the notifyFileChanges operation, which can be used to notify the Liberty profile of created, modified, or deleted files.
  • Method Details

    • notifyFileChanges

      void notifyFileChanges(Collection<String> createdFiles, Collection<String> modifiedFiles, Collection<String> deletedFiles)
      Invokes the notifyFileChanges operation, which can be used to notify the Liberty profile of created, modified, or deleted files. This is most useful when file monitoring is disabled. It may be preferable to disable file monitoring and use this operation instead if files are being modified in-place (as part of a build process, for example) and the changes should be made visible to the Liberty profile as a group. If the user does not notify of a particular file change on a given call to notifyFileChanges, that change will remain eligible for subsequent calls.
      Parameters:
      createdFiles - the absolute paths of any created files
      modifiedFiles - the absolute paths of any modified files
      deletedFiles - the absolute paths of any deleted files