Examples of DatabaseInstanceManager


Examples of org.exist.xmldb.DatabaseInstanceManager

    @AfterClass
    public static void closeDB() {
        TestUtils.cleanupDB();
        try {
            Collection root = DatabaseManager.getCollection(XmldbURI.LOCAL_DB, "admin", "");
            DatabaseInstanceManager mgr = (DatabaseInstanceManager) root.getService("DatabaseInstanceManager", "1.0");
            mgr.shutdown();
        } catch (XMLDBException e) {
            e.printStackTrace();
            fail(e.getMessage());
        }
    }
View Full Code Here

Examples of org.exist.xmldb.DatabaseInstanceManager

    @AfterClass
    public static void shutdownDB() {
        TestUtils.cleanupDB();
        try {
            org.xmldb.api.base.Collection root = DatabaseManager.getCollection("xmldb:exist://" + XmldbURI.ROOT_COLLECTION, "admin", "");
            DatabaseInstanceManager mgr = (DatabaseInstanceManager) root.getService("DatabaseInstanceManager", "1.0");
            mgr.shutdown();
        } catch (XMLDBException e) {
            e.printStackTrace();
            fail(e.getMessage());
        }
        testCollection = null;
View Full Code Here

Examples of org.exist.xmldb.DatabaseInstanceManager

    @AfterClass
    public static void shutdownDB() throws XMLDBException {
        TestUtils.cleanupDB();
        final Collection root = DatabaseManager.getCollection("xmldb:exist://" + XmldbURI.ROOT_COLLECTION, "admin", "");
        final DatabaseInstanceManager mgr = (DatabaseInstanceManager) root.getService("DatabaseInstanceManager", "1.0");
        mgr.shutdown();
        testCollection = null;
    }
View Full Code Here

Examples of org.exist.xmldb.DatabaseInstanceManager

    @AfterClass
    public static void closeDB() {
        TestUtils.cleanupDB();
        try {
            Collection root = DatabaseManager.getCollection(XmldbURI.LOCAL_DB, "admin", "");
            DatabaseInstanceManager mgr = (DatabaseInstanceManager) root.getService("DatabaseInstanceManager", "1.0");
            mgr.shutdown();
        } catch (XMLDBException e) {
            e.printStackTrace();
            fail(e.getMessage());
        }
    }
View Full Code Here

Examples of org.exist.xmldb.DatabaseInstanceManager

    @AfterClass
    public static void closeDB() {
        TestUtils.cleanupDB();
        try {
            Collection root = DatabaseManager.getCollection(XmldbURI.LOCAL_DB, "admin", "");
            DatabaseInstanceManager mgr = (DatabaseInstanceManager) root.getService("DatabaseInstanceManager", "1.0");
            mgr.shutdown();
        } catch (XMLDBException e) {
            e.printStackTrace();
            fail(e.getMessage());
        }
    }
View Full Code Here

Examples of org.exist.xmldb.DatabaseInstanceManager

        Collection root = DatabaseManager.getCollection(XmldbURI.LOCAL_DB, "admin", "");
      // CollectionManagementService cmgr = (CollectionManagementService)
      // root.getService("CollectionManagementService", "1.0");
      // cmgr.removeCollection("test");

      DatabaseInstanceManager mgr = (DatabaseInstanceManager) root.getService("DatabaseInstanceManager", "1.0");
      mgr.shutdown(2);
    } catch (XMLDBException e) {
      e.printStackTrace();
      fail(e.getMessage());
    }
  }
View Full Code Here

Examples of org.exist.xmldb.DatabaseInstanceManager

    @After
    public void tearDownAfter() {
        if (rootCollection != null) {
            try {
                DatabaseInstanceManager dim =
                        (DatabaseInstanceManager) rootCollection.getService(
                        "DatabaseInstanceManager", "1.0");
                dim.shutdown();
            } catch (Exception e) {
                e.printStackTrace();
                fail(e.getMessage());
            }
        }
View Full Code Here

Examples of org.exist.xmldb.DatabaseInstanceManager

    }

    @After
    public void tearDown() throws Exception {
        DatabaseManager.deregisterDatabase(database);
        DatabaseInstanceManager dim = (DatabaseInstanceManager) root.getService("DatabaseInstanceManager", "1.0");
        dim.shutdown();

        // clear instance variables
        service = null;
        root = null;
    //System.out.println("tearDown PASSED");
View Full Code Here

Examples of org.exist.xmldb.DatabaseInstanceManager

    @After
    public void tearDownAfter() {
        if (rootCollection != null) {
            try {
                DatabaseInstanceManager dim =
                        (DatabaseInstanceManager) rootCollection.getService(
                        "DatabaseInstanceManager", "1.0");
                dim.shutdown();
            } catch (Exception e) {
                e.printStackTrace();
                fail(e.getMessage());
            }
        }
View Full Code Here

Examples of org.exist.xmldb.DatabaseInstanceManager

    files = null;
    try {
      Collection root =
        DatabaseManager.getCollection(XmldbURI.LOCAL_DB, "admin", "");
       
      DatabaseInstanceManager dim =
          (DatabaseInstanceManager) root.getService(
              "DatabaseInstanceManager", "1.0");
      dim.shutdown();
    } catch (Exception e) {
      e.printStackTrace();
      fail(e.getMessage());
    }
        testCollection = null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.