Java Code Examples for sun.rmi.log.ReliableLog#close()
The following examples show how to use
sun.rmi.log.ReliableLog#close() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LogTest.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) throws Exception { System.err.println("\nRegression test for bug 4652922\n"); System.setProperty("sun.rmi.log.class", MyLogFile.class.getName()); //System.setProperty("sun.rmi.log.debug", "true"); log = new ReliableLog(".", new TestLogHandler(counter), false); writeUpdatesCrashAndRecover(10, 1, false, 10); writeUpdatesCrashAndRecover(10, 1, true, 20); writeUpdatesCrashAndRecover(10, 2, true, 30); writeUpdatesCrashAndRecover(9, 2, false, 40); writeUpdatesCrashAndRecover(9, 3, true, 50); log.close(); }
Example 2
Source File: LogTest.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) throws Exception { System.err.println("\nRegression test for bug 4652922\n"); System.setProperty("sun.rmi.log.class", MyLogFile.class.getName()); //System.setProperty("sun.rmi.log.debug", "true"); log = new ReliableLog(".", new TestLogHandler(counter), false); writeUpdatesCrashAndRecover(10, 1, false, 10); writeUpdatesCrashAndRecover(10, 1, true, 20); writeUpdatesCrashAndRecover(10, 2, true, 30); writeUpdatesCrashAndRecover(9, 2, false, 40); writeUpdatesCrashAndRecover(9, 3, true, 50); log.close(); }
Example 3
Source File: LogTest.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) throws Exception { System.err.println("\nRegression test for bug 4652922\n"); System.setProperty("sun.rmi.log.class", MyLogFile.class.getName()); //System.setProperty("sun.rmi.log.debug", "true"); log = new ReliableLog(".", new TestLogHandler(counter), false); writeUpdatesCrashAndRecover(10, 1, false, 10); writeUpdatesCrashAndRecover(10, 1, true, 20); writeUpdatesCrashAndRecover(10, 2, true, 30); writeUpdatesCrashAndRecover(9, 2, false, 40); writeUpdatesCrashAndRecover(9, 3, true, 50); log.close(); }
Example 4
Source File: LogTest.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) throws Exception { System.err.println("\nRegression test for bug 4652922\n"); System.setProperty("sun.rmi.log.class", MyLogFile.class.getName()); //System.setProperty("sun.rmi.log.debug", "true"); log = new ReliableLog(".", new TestLogHandler(counter), false); writeUpdatesCrashAndRecover(10, 1, false, 10); writeUpdatesCrashAndRecover(10, 1, true, 20); writeUpdatesCrashAndRecover(10, 2, true, 30); writeUpdatesCrashAndRecover(9, 2, false, 40); writeUpdatesCrashAndRecover(9, 3, true, 50); log.close(); }
Example 5
Source File: LogTest.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) throws Exception { System.err.println("\nRegression test for bug 4652922\n"); System.setProperty("sun.rmi.log.class", MyLogFile.class.getName()); //System.setProperty("sun.rmi.log.debug", "true"); log = new ReliableLog(".", new TestLogHandler(counter), false); writeUpdatesCrashAndRecover(10, 1, false, 10); writeUpdatesCrashAndRecover(10, 1, true, 20); writeUpdatesCrashAndRecover(10, 2, true, 30); writeUpdatesCrashAndRecover(9, 2, false, 40); writeUpdatesCrashAndRecover(9, 3, true, 50); log.close(); }
Example 6
Source File: LogTest.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) throws Exception { System.err.println("\nRegression test for bug 4652922\n"); System.setProperty("sun.rmi.log.class", MyLogFile.class.getName()); //System.setProperty("sun.rmi.log.debug", "true"); log = new ReliableLog(".", new TestLogHandler(counter), false); writeUpdatesCrashAndRecover(10, 1, false, 10); writeUpdatesCrashAndRecover(10, 1, true, 20); writeUpdatesCrashAndRecover(10, 2, true, 30); writeUpdatesCrashAndRecover(9, 2, false, 40); writeUpdatesCrashAndRecover(9, 3, true, 50); log.close(); }
Example 7
Source File: LogTest.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) throws Exception { System.err.println("\nRegression test for bug 4652922\n"); System.setProperty("sun.rmi.log.class", MyLogFile.class.getName()); //System.setProperty("sun.rmi.log.debug", "true"); log = new ReliableLog(".", new TestLogHandler(counter), false); writeUpdatesCrashAndRecover(10, 1, false, 10); writeUpdatesCrashAndRecover(10, 1, true, 20); writeUpdatesCrashAndRecover(10, 2, true, 30); writeUpdatesCrashAndRecover(9, 2, false, 40); writeUpdatesCrashAndRecover(9, 3, true, 50); log.close(); }
Example 8
Source File: LogTest.java From hottub with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) throws Exception { System.err.println("\nRegression test for bug 4652922\n"); System.setProperty("sun.rmi.log.class", MyLogFile.class.getName()); //System.setProperty("sun.rmi.log.debug", "true"); log = new ReliableLog(".", new TestLogHandler(counter), false); writeUpdatesCrashAndRecover(10, 1, false, 10); writeUpdatesCrashAndRecover(10, 1, true, 20); writeUpdatesCrashAndRecover(10, 2, true, 30); writeUpdatesCrashAndRecover(9, 2, false, 40); writeUpdatesCrashAndRecover(9, 3, true, 50); log.close(); }
Example 9
Source File: LogTest.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) throws Exception { System.err.println("\nRegression test for bug 4652922\n"); System.setProperty("sun.rmi.log.class", MyLogFile.class.getName()); //System.setProperty("sun.rmi.log.debug", "true"); log = new ReliableLog(".", new TestLogHandler(counter), false); writeUpdatesCrashAndRecover(10, 1, false, 10); writeUpdatesCrashAndRecover(10, 1, true, 20); writeUpdatesCrashAndRecover(10, 2, true, 30); writeUpdatesCrashAndRecover(9, 2, false, 40); writeUpdatesCrashAndRecover(9, 3, true, 50); log.close(); }
Example 10
Source File: LogTest.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) throws Exception { System.err.println("\nRegression test for bug 4652922\n"); System.setProperty("sun.rmi.log.class", MyLogFile.class.getName()); //System.setProperty("sun.rmi.log.debug", "true"); log = new ReliableLog(".", new TestLogHandler(counter), false); writeUpdatesCrashAndRecover(10, 1, false, 10); writeUpdatesCrashAndRecover(10, 1, true, 20); writeUpdatesCrashAndRecover(10, 2, true, 30); writeUpdatesCrashAndRecover(9, 2, false, 40); writeUpdatesCrashAndRecover(9, 3, true, 50); log.close(); }
Example 11
Source File: LogTest.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) throws Exception { System.err.println("\nRegression test for bug 4652922\n"); System.setProperty("sun.rmi.log.class", MyLogFile.class.getName()); //System.setProperty("sun.rmi.log.debug", "true"); log = new ReliableLog(".", new TestLogHandler(counter), false); writeUpdatesCrashAndRecover(10, 1, false, 10); writeUpdatesCrashAndRecover(10, 1, true, 20); writeUpdatesCrashAndRecover(10, 2, true, 30); writeUpdatesCrashAndRecover(9, 2, false, 40); writeUpdatesCrashAndRecover(9, 3, true, 50); log.close(); }
Example 12
Source File: LogTest.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) throws Exception { System.err.println("\nRegression test for bug 4652922\n"); System.setProperty("sun.rmi.log.class", MyLogFile.class.getName()); //System.setProperty("sun.rmi.log.debug", "true"); log = new ReliableLog(".", new TestLogHandler(counter), false); writeUpdatesCrashAndRecover(10, 1, false, 10); writeUpdatesCrashAndRecover(10, 1, true, 20); writeUpdatesCrashAndRecover(10, 2, true, 30); writeUpdatesCrashAndRecover(9, 2, false, 40); writeUpdatesCrashAndRecover(9, 3, true, 50); log.close(); }
Example 13
Source File: LogTest.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) throws Exception { System.err.println("\nRegression test for bug 4652922\n"); System.setProperty("sun.rmi.log.class", MyLogFile.class.getName()); //System.setProperty("sun.rmi.log.debug", "true"); log = new ReliableLog(".", new TestLogHandler(counter), false); writeUpdatesCrashAndRecover(10, 1, false, 10); writeUpdatesCrashAndRecover(10, 1, true, 20); writeUpdatesCrashAndRecover(10, 2, true, 30); writeUpdatesCrashAndRecover(9, 2, false, 40); writeUpdatesCrashAndRecover(9, 3, true, 50); log.close(); }