| java.lang.Object com.sun.cldchi.tools.memoryprofiler.jdwp.ByteBuffer com.sun.cldchi.tools.memoryprofiler.jdwp.Packet com.sun.cldchi.tools.memoryprofiler.jdwp.Command
Constructor Summary | |
public | Command(int command) Creates a new Command object, assign an unique ID,
the specified command number and sets flags to flNoFlags .
Command number is two-byte integer where hi-order byte specifies the
JDWP command set and low-order byte specifies the command number in the
command set. |
Method Summary | |
public int | getCommand() Gets number of the command assigned for this object. | public static int | getLastID() Returns the ID of the command last created. | public void | setCommand(int command) Assign a command number to the object. | public String | toString() Returns string representation of the object. |
Command | public Command(int command)(Code) | | Creates a new Command object, assign an unique ID,
the specified command number and sets flags to flNoFlags .
Command number is two-byte integer where hi-order byte specifies the
JDWP command set and low-order byte specifies the command number in the
command set. For example, ArrayReference/GetValues JDWP command has a
number 0x0D02 where 0x0D = 14 is a number
of ArrayReference command set and 0x02 is a number of
GetValues command in this command set. For information about numbers
of specific commands and command sets see JDWP specification.
Parameters: command - a command number for this command |
getCommand | public int getCommand()(Code) | | Gets number of the command assigned for this object. For information
about command numbers see description of the constructor.
I suspect this method is not used currently by KJDB
a command number |
getLastID | public static int getLastID()(Code) | | Returns the ID of the command last created. I think that
this method is not used currently by KJDB.
ID of last command |
setCommand | public void setCommand(int command)(Code) | | Assign a command number to the object. For information
about command numbers see description of the constructor.
This method is used internally by constructor.
Parameters: command - a command number to be assigned |
toString | public String toString()(Code) | | Returns string representation of the object. This method is invoked
when reply packet of the command is not received (usually it's a
fatal error). It's useful for locating the problem.
a string representation of the object |
Methods inherited from com.sun.cldchi.tools.memoryprofiler.jdwp.ByteBuffer | public void addByte(int b)(Code)(Java Doc) public void addBytes(byte[] b, int start, int len)(Code)(Java Doc) public void addID(long l, int count)(Code)(Java Doc) public void addInt(int b)(Code)(Java Doc) public void addLong(long l)(Code)(Java Doc) public void addShort(int b)(Code)(Java Doc) public void addString(String s)(Code)(Java Doc) public void deleteBytes(int count)(Code)(Java Doc) public int getByte() throws BoundException(Code)(Java Doc) public int getByte(int off) throws BoundException(Code)(Java Doc) public long getID(int count) throws BoundException(Code)(Java Doc) public long getID(int off, int count) throws BoundException(Code)(Java Doc) public int getInt() throws BoundException(Code)(Java Doc) public int getInt(int off) throws BoundException(Code)(Java Doc) public long getLong() throws BoundException(Code)(Java Doc) public long getLong(int off) throws BoundException(Code)(Java Doc) public int getShort() throws BoundException(Code)(Java Doc) public int getShort(int off) throws BoundException(Code)(Java Doc) public String getString() throws BoundException(Code)(Java Doc) public String getString(int off) throws BoundException(Code)(Java Doc) public boolean isParsed()(Code)(Java Doc) public int length()(Code)(Java Doc) public void putByte(int off, int b) throws BoundException(Code)(Java Doc) public void putBytes(int off, byte[] b, int start, int len) throws BoundException(Code)(Java Doc) public void putID(int off, long l, int count) throws BoundException(Code)(Java Doc) public void putInt(int off, int b) throws BoundException(Code)(Java Doc) public void putLong(int off, long l) throws BoundException(Code)(Java Doc) public void putShort(int off, int b) throws BoundException(Code)(Java Doc) public void resetBuffer()(Code)(Java Doc) public void resetParser()(Code)(Java Doc) public void resetParser(int i)(Code)(Java Doc) public String toString(int start)(Code)(Java Doc) public String toString()(Code)(Java Doc)
|
|
|