Module openj9.dtfj

Interface SearchListener


public interface SearchListener
This interface is used when searching a dump or an address space to report back when a match is found.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    foundMatch(AddressSpace space, long address)
    Called to report a match has been found.
    byte[]
    This method determines the pattern to be searched for.
  • Method Details

    • getPattern

      byte[] getPattern()
      This method determines the pattern to be searched for. This is called before the search begins.
      Returns:
      the pattern of bytes to search for
    • foundMatch

      boolean foundMatch(AddressSpace space, long address)
      Called to report a match has been found. The listener must return true to continue the search.
      Parameters:
      space - the AddressSpace in which the match was found
      address - the address where the match was found
      Returns:
      true if the search is to continue