15 |
|
|
16 |
You should have received a copy of the GNU General Public License |
You should have received a copy of the GNU General Public License |
17 |
along with GNU Classpath; see the file COPYING. If not, write to the |
along with GNU Classpath; see the file COPYING. If not, write to the |
18 |
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA |
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
19 |
02111-1307 USA. |
02110-1301 USA. |
20 |
|
|
21 |
Linking this library statically or dynamically with other modules is |
Linking this library statically or dynamically with other modules is |
22 |
making a combined work based on this library. Thus, the terms and |
making a combined work based on this library. Thus, the terms and |
40 |
package gnu.classpath.jdwp.processor; |
package gnu.classpath.jdwp.processor; |
41 |
|
|
42 |
import gnu.classpath.jdwp.exception.JdwpException; |
import gnu.classpath.jdwp.exception.JdwpException; |
43 |
|
import gnu.classpath.jdwp.VMIdManager; |
44 |
|
|
45 |
import java.io.DataOutputStream; |
import java.io.DataOutputStream; |
46 |
import java.nio.ByteBuffer; |
import java.nio.ByteBuffer; |
51 |
* |
* |
52 |
* @author Aaron Luchko <aluchko@redhat.com> |
* @author Aaron Luchko <aluchko@redhat.com> |
53 |
*/ |
*/ |
54 |
public interface CommandSet |
public abstract class CommandSet |
55 |
{ |
{ |
56 |
/** |
/** |
57 |
|
* The VM's ID manager |
58 |
|
*/ |
59 |
|
protected final VMIdManager idMan = VMIdManager.getDefault (); |
60 |
|
|
61 |
|
/** |
62 |
* Runs the given command with the data in distr and writes the data for the |
* Runs the given command with the data in distr and writes the data for the |
63 |
* reply packet to ostr. |
* reply packet to ostr. |
64 |
* |
* |
68 |
* @return true if the JDWP layer should shut down in response to this packet |
* @return true if the JDWP layer should shut down in response to this packet |
69 |
* @throws JdwpException command wasn't carried out successfully |
* @throws JdwpException command wasn't carried out successfully |
70 |
*/ |
*/ |
71 |
public boolean runCommand(ByteBuffer bb, DataOutputStream os, |
public abstract boolean runCommand(ByteBuffer bb, DataOutputStream os, |
72 |
byte command) |
byte command) |
73 |
throws JdwpException; |
throws JdwpException; |
74 |
} |
} |