sun.rmi.log.ReliableLog Java Examples
The following examples show how to use
sun.rmi.log.ReliableLog.
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 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 #2
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 #3
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 #4
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 #5
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 #6
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 #7
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 #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 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 #10
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 #11
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(); }
Example #12
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 #13
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 #14
Source File: SnapshotSize.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) throws Exception { SnapshotSize handler = new SnapshotSize(); ReliableLog log = new ReliableLog(".", handler); if (log.snapshotSize() != handler.lastSnapshotSize) { throw new Error(); } String[] snapshots = { "some", "sample", "objects", "to", "snapshot" }; for (int i = 0; i < snapshots.length; i++) { log.snapshot(snapshots[i]); if (log.snapshotSize() != handler.lastSnapshotSize) { throw new Error(); } } }
Example #15
Source File: Activation.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Recover activation state from the reliable log and initialize * activation services. */ private static void startActivation(int port, RMIServerSocketFactory ssf, String logName, String[] childArgs) throws Exception { ReliableLog log = new ReliableLog(logName, new ActLogHandler()); Activation state = (Activation) log.recover(); state.init(port, ssf, log, childArgs); }
Example #16
Source File: SnapshotSize.java From hottub with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) throws Exception { SnapshotSize handler = new SnapshotSize(); ReliableLog log = new ReliableLog(".", handler); if (log.snapshotSize() != handler.lastSnapshotSize) { throw new Error(); } String[] snapshots = { "some", "sample", "objects", "to", "snapshot" }; for (int i = 0; i < snapshots.length; i++) { log.snapshot(snapshots[i]); if (log.snapshotSize() != handler.lastSnapshotSize) { throw new Error(); } } }
Example #17
Source File: Activation.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Recover activation state from the reliable log and initialize * activation services. */ private static void startActivation(int port, RMIServerSocketFactory ssf, String logName, String[] childArgs) throws Exception { ReliableLog log = new ReliableLog(logName, new ActLogHandler()); Activation state = (Activation) log.recover(); state.init(port, ssf, log, childArgs); }
Example #18
Source File: SnapshotSize.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) throws Exception { SnapshotSize handler = new SnapshotSize(); ReliableLog log = new ReliableLog(".", handler); if (log.snapshotSize() != handler.lastSnapshotSize) { throw new Error(); } String[] snapshots = { "some", "sample", "objects", "to", "snapshot" }; for (int i = 0; i < snapshots.length; i++) { log.snapshot(snapshots[i]); if (log.snapshotSize() != handler.lastSnapshotSize) { throw new Error(); } } }
Example #19
Source File: SnapshotSize.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) throws Exception { SnapshotSize handler = new SnapshotSize(); ReliableLog log = new ReliableLog(".", handler); if (log.snapshotSize() != handler.lastSnapshotSize) { throw new Error(); } String[] snapshots = { "some", "sample", "objects", "to", "snapshot" }; for (int i = 0; i < snapshots.length; i++) { log.snapshot(snapshots[i]); if (log.snapshotSize() != handler.lastSnapshotSize) { throw new Error(); } } }
Example #20
Source File: Activation.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Recover activation state from the reliable log and initialize * activation services. */ private static void startActivation(int port, RMIServerSocketFactory ssf, String logName, String[] childArgs) throws Exception { ReliableLog log = new ReliableLog(logName, new ActLogHandler()); Activation state = (Activation) log.recover(); state.init(port, ssf, log, childArgs); }
Example #21
Source File: SnapshotSize.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) throws Exception { SnapshotSize handler = new SnapshotSize(); ReliableLog log = new ReliableLog(".", handler); if (log.snapshotSize() != handler.lastSnapshotSize) { throw new Error(); } String[] snapshots = { "some", "sample", "objects", "to", "snapshot" }; for (int i = 0; i < snapshots.length; i++) { log.snapshot(snapshots[i]); if (log.snapshotSize() != handler.lastSnapshotSize) { throw new Error(); } } }
Example #22
Source File: Activation.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
/** * Recover activation state from the reliable log and initialize * activation services. */ private static void startActivation(int port, RMIServerSocketFactory ssf, String logName, String[] childArgs) throws Exception { ReliableLog log = new ReliableLog(logName, new ActLogHandler()); Activation state = (Activation) log.recover(); state.init(port, ssf, log, childArgs); }
Example #23
Source File: SnapshotSize.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) throws Exception { SnapshotSize handler = new SnapshotSize(); ReliableLog log = new ReliableLog(".", handler); if (log.snapshotSize() != handler.lastSnapshotSize) { throw new Error(); } String[] snapshots = { "some", "sample", "objects", "to", "snapshot" }; for (int i = 0; i < snapshots.length; i++) { log.snapshot(snapshots[i]); if (log.snapshotSize() != handler.lastSnapshotSize) { throw new Error(); } } }
Example #24
Source File: Activation.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
/** * Recover activation state from the reliable log and initialize * activation services. */ private static void startActivation(int port, RMIServerSocketFactory ssf, String logName, String[] childArgs) throws Exception { ReliableLog log = new ReliableLog(logName, new ActLogHandler()); Activation state = (Activation) log.recover(); state.init(port, ssf, log, childArgs); }
Example #25
Source File: SnapshotSize.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) throws Exception { SnapshotSize handler = new SnapshotSize(); ReliableLog log = new ReliableLog(".", handler); if (log.snapshotSize() != handler.lastSnapshotSize) { throw new Error(); } String[] snapshots = { "some", "sample", "objects", "to", "snapshot" }; for (int i = 0; i < snapshots.length; i++) { log.snapshot(snapshots[i]); if (log.snapshotSize() != handler.lastSnapshotSize) { throw new Error(); } } }
Example #26
Source File: Activation.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
/** * Recover activation state from the reliable log and initialize * activation services. */ private static void startActivation(int port, RMIServerSocketFactory ssf, String logName, String[] childArgs) throws Exception { ReliableLog log = new ReliableLog(logName, new ActLogHandler()); Activation state = (Activation) log.recover(); state.init(port, ssf, log, childArgs); }
Example #27
Source File: Activation.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
/** * Recover activation state from the reliable log and initialize * activation services. */ private static void startActivation(int port, RMIServerSocketFactory ssf, String logName, String[] childArgs) throws Exception { ReliableLog log = new ReliableLog(logName, new ActLogHandler()); Activation state = (Activation) log.recover(); state.init(port, ssf, log, childArgs); }
Example #28
Source File: Activation.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * Recover activation state from the reliable log and initialize * activation services. */ private static void startActivation(int port, RMIServerSocketFactory ssf, String logName, String[] childArgs) throws Exception { ReliableLog log = new ReliableLog(logName, new ActLogHandler()); Activation state = (Activation) log.recover(); state.init(port, ssf, log, childArgs); }
Example #29
Source File: Activation.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Recover activation state from the reliable log and initialize * activation services. */ private static void startActivation(int port, RMIServerSocketFactory ssf, String logName, String[] childArgs) throws Exception { ReliableLog log = new ReliableLog(logName, new ActLogHandler()); Activation state = (Activation) log.recover(); state.init(port, ssf, log, childArgs); }
Example #30
Source File: SnapshotSize.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) throws Exception { SnapshotSize handler = new SnapshotSize(); ReliableLog log = new ReliableLog(".", handler); if (log.snapshotSize() != handler.lastSnapshotSize) { throw new Error(); } String[] snapshots = { "some", "sample", "objects", "to", "snapshot" }; for (int i = 0; i < snapshots.length; i++) { log.snapshot(snapshots[i]); if (log.snapshotSize() != handler.lastSnapshotSize) { throw new Error(); } } }