src/share/classes/sun/tools/attach/HotSpotVirtualMachine.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -193,10 +193,14 @@
// print command line flag
public InputStream printFlag(String name) throws IOException {
return executeCommand("printflag", name);
}
+ public InputStream executeJCmd(String command) throws IOException {
+ return executeCommand("jcmd", command);
+ }
+
// -- Supporting methods
/*
* Execute the given command in the target VM - specific platform