1 package org.tanukisoftware.wrapper.jmx; 2 3 27 28 31 public class WrapperManager 32 implements WrapperManagerMBean 33 { 34 37 42 public String getVersion() 43 { 44 return org.tanukisoftware.wrapper.WrapperManager.getVersion(); 45 } 46 47 52 public String getBuildTime() 53 { 54 return org.tanukisoftware.wrapper.WrapperManager.getBuildTime(); 55 } 56 57 63 public int getJVMId() 64 { 65 return org.tanukisoftware.wrapper.WrapperManager.getJVMId(); 66 } 67 68 79 public void setConsoleTitle( String title ) 80 { 81 org.tanukisoftware.wrapper.WrapperManager.setConsoleTitle( title ); 82 } 83 84 93 public int getWrapperPID() 94 { 95 return org.tanukisoftware.wrapper.WrapperManager.getWrapperPID(); 96 } 97 98 107 public int getJavaPID() 108 { 109 return org.tanukisoftware.wrapper.WrapperManager.getJavaPID(); 110 } 111 112 118 public void requestThreadDump() 119 { 120 org.tanukisoftware.wrapper.WrapperManager.requestThreadDump(); 121 } 122 123 129 public boolean isControlledByNativeWrapper() 130 { 131 return org.tanukisoftware.wrapper.WrapperManager.isControlledByNativeWrapper(); 132 } 133 134 144 public boolean isLaunchedAsService() 145 { 146 return org.tanukisoftware.wrapper.WrapperManager.isLaunchedAsService(); 147 } 148 149 157 public boolean isDebugEnabled() 158 { 159 return org.tanukisoftware.wrapper.WrapperManager.isDebugEnabled(); 160 } 161 162 169 public void restart() 170 { 171 new Thread () 174 { 175 public void run() 176 { 177 try 178 { 179 Thread.sleep( 1000 ); 180 } 181 catch ( InterruptedException e ) 182 { 183 } 184 185 org.tanukisoftware.wrapper.WrapperManager.restart(); 186 } 187 }.start(); 188 } 189 190 199 public void stop( final int exitCode ) 200 { 201 new Thread () 204 { 205 public void run() 206 { 207 try 208 { 209 Thread.sleep( 1000 ); 210 } 211 catch ( InterruptedException e ) 212 { 213 } 214 215 org.tanukisoftware.wrapper.WrapperManager.stop( exitCode ); 216 } 217 }.start(); 218 } 219 220 226 public boolean getHasShutdownHookBeenTriggered() 227 { 228 return org.tanukisoftware.wrapper.WrapperManager.hasShutdownHookBeenTriggered(); 229 } 230 } 231 | Popular Tags |