1 package org.tanukisoftware.wrapper.jmx; 2 3 27 28 31 public class WrapperManagerTesting 32 implements WrapperManagerTestingMBean 33 { 34 37 43 public void appearHung() 44 { 45 org.tanukisoftware.wrapper.WrapperManager.appearHung(); 46 } 47 48 52 public void accessViolationNative() 53 { 54 new Thread () 57 { 58 public void run() 59 { 60 try 61 { 62 Thread.sleep( 1000 ); 63 } 64 catch ( InterruptedException e ) 65 { 66 } 67 68 org.tanukisoftware.wrapper.WrapperManager.accessViolationNative(); 69 } 70 }.start(); 71 } 72 73 80 public void stopImmediate( final int exitCode ) 81 { 82 new Thread () 85 { 86 public void run() 87 { 88 try 89 { 90 Thread.sleep( 1000 ); 91 } 92 catch ( InterruptedException e ) 93 { 94 } 95 96 org.tanukisoftware.wrapper.WrapperManager.stopImmediate( exitCode ); 97 } 98 }.start(); 99 } 100 } 101 | Popular Tags |