|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.mmtk.vm.gcspy.ServerInterpreter
org.jikesrvm.mm.mmtk.gcspy.ServerInterpreter
public class ServerInterpreter
Generic GCspy Server Interpreter This class implements the GCspy server. The server runs as a separate pthread and communicates with GCspy clients. It handles commands from the client and passes data to it. Mostly it forwards calls to the C gcspy library.
| Field Summary |
|---|
| Fields inherited from class org.mmtk.vm.gcspy.ServerInterpreter |
|---|
DEBUG, initialised, MAX_LEN, MAX_SPACES, server, spaces |
| Constructor Summary | |
|---|---|
ServerInterpreter()
|
|
| Method Summary | |
|---|---|
void |
addEvent(int num,
String name)
Add an event to the ServerInterpreter. |
int |
computeHeaderSize()
Discover the smallest header size for objects. |
void |
init(String name,
int port,
boolean verbose)
Create a new ServerInterpreter singleton. |
boolean |
isConnected(int event)
Are we connected to a GCspy client? |
void |
serverSafepoint(int event)
Indicate that we are at a server safe point (e.g. the end of a GC). |
void |
setGeneralInfo(String info)
Set the general info for the ServerInterpreter. |
void |
startCompensationTimer()
Start compensation timer so that time spent gathering data is not confused with the time spent in the application and the VM. |
void |
startServer(boolean wait)
Start the server, running its main loop in a pthread. |
void |
stopCompensationTimer()
Stop compensation timer so that time spent gathering data is not confused with the time spent in the application and the VM.r |
| Methods inherited from class org.mmtk.vm.gcspy.ServerInterpreter |
|---|
addSpace, getServerAddress |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServerInterpreter()
| Method Detail |
|---|
public void init(String name,
int port,
boolean verbose)
init in class ServerInterpretername - The name of the serverport - The number of the port on which to communicateverbose - Whether the server is to run verbosely
public void addEvent(int num,
String name)
addEvent in class ServerInterpreternum - the event numbername - the event namepublic void setGeneralInfo(String info)
setGeneralInfo in class ServerInterpreterinfo - the informationpublic void startServer(boolean wait)
startServer in class ServerInterpreterwait - Whether to wait for the client to connectpublic boolean isConnected(int event)
isConnected in class ServerInterpreterevent - The current event
public void startCompensationTimer()
startCompensationTimer in class ServerInterpreterpublic void stopCompensationTimer()
stopCompensationTimer in class ServerInterpreterpublic void serverSafepoint(int event)
serverSafepoint in class ServerInterpreterevent - The current eventpublic int computeHeaderSize()
computeHeaderSize in class ServerInterpreter
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||