Published on InterSystems Developer Community (https://community.intersystems.com)

主页 > java请求ExternalFreeze和ExternalThaw返回1

问题
j ay · 二月 18, 2023

java请求ExternalFreeze和ExternalThaw返回1

系统:windows
内存:64GB

环境:jdk11
代码:

       IRISConnection conn = (IRISConnection)
                DriverManager.getConnection
                        ("jdbc:IRIS://localhost:" + superserverPort + "/" + namespace, username, password);
        IRIS iris = IRIS.createIRIS(conn);


        String getLastFullBackupInfo = iris.classMethodString("Backup.General", "GetLastFullBackupInfo");
        System.out.println(getLastFullBackupInfo);
        String getAbortStatus = iris.classMethodString("Backup.General", "GetAbortStatus");
        System.out.println(getAbortStatus);
        String externalFreeze = iris.classMethodString("Backup.General", "ExternalFreeze");
        // 1) 系统的全局缓冲区不足,无法写入进程
        //2) 悬架的长度大于系统默认值(当前为600秒/10分钟)。
        String externalThaw = iris.classMethodString("Backup.General", "ExternalThaw");
        System.out.println(externalFreeze);
        System.out.println(externalThaw);
        conn.close();
#Java #Caché #InterSystems IRIS
产品版本: IRIS 2022.3
$ZV: 2022.3.0.606.0

源 URL:https://cn.community.intersystems.com/post/java%E8%AF%B7%E6%B1%82externalfreeze%E5%92%8Cexternalthaw%E8%BF%94%E5%9B%9E1