Interface ModelServerListener

All Known Implementing Classes:
ModelServerListenerAdapter

public interface ModelServerListener
An interface that represent a model server event listener.
  • Method Details

    • onModelDownloading

      void onModelDownloading(ModelInfo<?,?> model)
      Invoked when model downloading started.
      Parameters:
      model - the model
    • onModelDownloaded

      void onModelDownloaded(ModelInfo<?,?> model, Path downloadPath)
      Invoked when model downloading finished.
      Parameters:
      model - the model
      downloadPath - the model download directory
    • onModelConverting

      void onModelConverting(ModelInfo<?,?> model, String type)
      Invoked when model conversion started.
      Parameters:
      model - the model
      type - the conversion type
    • onModelConverted

      void onModelConverted(ModelInfo<?,?> model, String type)
      Invoked when model conversion finished.
      Parameters:
      model - the model
      type - the conversion type
    • onModelConfigured

      void onModelConfigured(ModelInfo<?,?> model)
      Invoked when model properties configuration finished.
      Parameters:
      model - the model
    • onModelLoading

      void onModelLoading(ModelInfo<?,?> model, ai.djl.Device device)
      Invoked when model loading start.
      Parameters:
      model - the model
      device - the device to load the model
    • onModelLoaded

      void onModelLoaded(ModelInfo<?,?> model)
      Invoked when model loading finished.
      Parameters:
      model - the model
    • onAdapterLoading

      void onAdapterLoading(ModelInfo<?,?> model, Path adapterPath)
      Invoked when adapter loading start.
      Parameters:
      model - the model
      adapterPath - the adapter path
    • onAdapterLoaded

      void onAdapterLoaded(ModelInfo<?,?> model, Adapter adapter)
      Invoked when adapter loading finished.
      Parameters:
      model - the model
      adapter - the adapter