Class PVFactory

java.lang.Object
org.yamcs.studio.data.PVFactory

public class PVFactory extends Object
  • Field Details

    • SIMPLE_PV_THREAD

      public static ExecutorService SIMPLE_PV_THREAD
      The default background thread for PV change event notification. It will only be created on its first use.
  • Method Details

    • getInstance

      public static PVFactory getInstance()
    • createPV

      public IPV createPV(String name)
    • createPV

      public IPV createPV(String name, boolean readOnly, Executor notificationThread, ExceptionHandler exceptionHandler)
      Create a PV.
      Parameters:
      name - name of the PV. Must not be null.
      readOnly - true if the client doesn't need to write to the PV.
      notificationThread - the thread on which the read and write listener will be notified. Must not be null.
      exceptionHandler - the handler to handle all exceptions happened in pv connection layer. If this is null, pv read listener or pv write listener will be notified on read or write exceptions respectively.
    • getDefaultPVNotificationThread

      public static ExecutorService getDefaultPVNotificationThread()