DefragmentListener/IDefragmentListener interface is provided to track system structure problems during a defragmentation process. DefragmentListener provides the following method, which will be called, when a problem is detected:
Java:
void notifyDefragmentInfo(DefragmentInfo
info);
For an example of the listener implementation see Defragmentation Examples.