com.ibm.websphere.filemonitor

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 javax.management.JMX#newMBeanProxy method.
    • Method Summary

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

      • notifyFileChanges

        void notifyFileChanges(java.util.Collection<java.lang.String> createdFiles,
                               java.util.Collection<java.lang.String> modifiedFiles,
                               java.util.Collection<java.lang.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