Class ReadOnlyStatus


  • public class ReadOnlyStatus
    extends java.lang.Object
    Hook run by the context as early as possible to detect if the DB connection is read-only. This object can be used by other objects to skip certain steps. Later actions may flip the state of the status.
    Since:
    5.4.6
    See Also:
    which sets this status in the configuration service.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  ReadOnlyStatus.IsAware
      Implemented by classes that can report if a given read-only status would cause them to be in read-only mode.
    • Constructor Summary

      Constructors 
      Constructor Description
      ReadOnlyStatus​(boolean isReadOnlyDb, boolean isReadOnlyRepo)  
      ReadOnlyStatus​(boolean isReadOnly, boolean isReadOnlyDb, boolean isReadOnlyRepo, ome.util.SqlAction sqlAction, java.lang.String omeroDataDir, java.lang.String omeroManagedDir)  
    • Constructor Detail

      • ReadOnlyStatus

        public ReadOnlyStatus​(boolean isReadOnlyDb,
                              boolean isReadOnlyRepo)
      • ReadOnlyStatus

        public ReadOnlyStatus​(boolean isReadOnly,
                              boolean isReadOnlyDb,
                              boolean isReadOnlyRepo,
                              ome.util.SqlAction sqlAction,
                              java.lang.String omeroDataDir,
                              java.lang.String omeroManagedDir)
                       throws java.sql.SQLException
        Throws:
        java.sql.SQLException
    • Method Detail

      • isReadOnlyDb

        public boolean isReadOnlyDb()
      • isReadOnlyRepo

        public boolean isReadOnlyRepo()