Class YamcsPlugin

All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class YamcsPlugin extends AbstractUIPlugin
  • Field Details

  • Constructor Details

    • YamcsPlugin

      public YamcsPlugin()
  • Method Details

    • start

      public void start(org.osgi.framework.BundleContext context) throws Exception
      Specified by:
      start in interface org.osgi.framework.BundleActivator
      Overrides:
      start in class AbstractUIPlugin
      Throws:
      Exception
    • addListener

      public static void addListener(YamcsAware listener)
    • removeListener

      public static void removeListener(YamcsAware listener)
    • getService

      public static <T extends PluginService> T getService(Class<T> clazz)
    • getUser

      public static UserInfo getUser()
    • getServerInfo

      public static GetServerInfoResponse getServerInfo()
    • hasAnyObjectPrivilege

      public static boolean hasAnyObjectPrivilege(String objectPrivilegeType)
    • hasObjectPrivilege

      public static boolean hasObjectPrivilege(String objectPrivilegeType, String object)
    • hasSystemPrivilege

      public static boolean hasSystemPrivilege(String systemPrivilege)
    • isAuthorizationEnabled

      public static boolean isAuthorizationEnabled()
    • stop

      public void stop(org.osgi.framework.BundleContext context) throws Exception
      Specified by:
      stop in interface org.osgi.framework.BundleActivator
      Overrides:
      stop in class AbstractUIPlugin
      Throws:
      Exception
    • getDefault

      public static YamcsPlugin getDefault()
    • setDateFormat

      public void setDateFormat(String pattern)
    • formatInstant

      public String formatInstant(Instant instant)
      Formats a Yamcs instant. Timezone information is not added. Must be called on SWT thread due to reuse of dateformatter.
    • formatInstant

      public String formatInstant(Instant instant, boolean tzOffset)
      Formats a Yamcs instant. Must be called on SWT thread due to reuse of dateformatter.
      Parameters:
      tzOffset - whether timezone offset is added to the output string.
    • parseTime

      public Instant parseTime(String time) throws ParseException
      Throws:
      ParseException
    • isSpellEnabled

      public boolean isSpellEnabled()
    • getSoundSystem

      public static SoundSystem getSoundSystem()
    • getYamcsClient

      public static YamcsClient getYamcsClient()
    • getArchiveClient

      public static ArchiveClient getArchiveClient()
    • getStorageClient

      public static StorageClient getStorageClient()
    • getProcessorClient

      public static ProcessorClient getProcessorClient()
    • getMissionDatabaseClient

      public static MissionDatabaseClient getMissionDatabaseClient()
    • getSpellClient

      public static StudioSpellApiClient getSpellClient()
    • getInstance

      public static String getInstance()
    • getProcessor

      public static String getProcessor()
    • getProcessorInfo

      public static ProcessorInfo getProcessorInfo()
    • getClearance

      public static Mdb.SignificanceInfo.SignificanceLevelType getClearance()
    • getMissionDatabase

      public static MissionDatabase getMissionDatabase()
    • getMissionTime

      public static Instant getMissionTime()
    • getMissionTime

      public static Instant getMissionTime(boolean wallClockIfUnset)
    • getTimeZone

      public static TimeZone getTimeZone()
    • getZoneId

      public static ZoneId getZoneId()
    • getProductString

      public static String getProductString()
    • nextCommandSequenceNumber

      public static int nextCommandSequenceNumber()
    • listeners

      public static Iterator<YamcsAware> listeners()
    • updateEntities

      public static void updateEntities(RemoteEntityHolder holder)
    • disconnect

      public static void disconnect(boolean lost)
    • getImageDescriptor

      public static ImageDescriptor getImageDescriptor(String path)
      Obtain image descriptor for image in plugin
      Parameters:
      path - Path to image within plugin
      Returns:
      ImageDescriptor
    • getContext

      public org.osgi.framework.BundleContext getContext()