Class Admin

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class Admin
    extends java.lang.Object
    implements java.lang.AutoCloseable
    • Constructor Detail

      • Admin

        public Admin​(java.lang.String userName,
                     char[] password)
              throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException
    • Method Detail

      • close

        public void close()
                   throws java.lang.Exception
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.lang.Exception
      • setHost

        public void setHost​(java.lang.String host)
      • setProtocol

        public void setProtocol​(java.lang.String protocol)
      • setPort

        public void setPort​(int port)
      • getModules

        public java.util.List<InstalledModule> getModules()
                                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • createDatabase

        public Database createDatabase​(Database database)
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • getDatabases

        public java.util.List<Database> getDatabases()
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • deleteDatabase

        public void deleteDatabase​(long uid)
      • installModule

        public ModuleInstallResponse installModule​(java.lang.String filename,
                                                   java.io.InputStream inputStream)
                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • waitForBoostrap

        public void waitForBoostrap()
      • executeCommand

        public CommandResponse executeCommand​(long bdb,
                                              Command command)
                                       throws java.io.IOException
        Throws:
        java.io.IOException