|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.maintainj.aspect.JoinPointMap
public class JoinPointMap
Holds multiple JoinPointList instances one for each thread.
Also used as a utility class to write to trace file.
Field Summary | |
---|---|
static int |
jpHashcode
|
static long |
jpIndex
|
Constructor Summary | |
---|---|
JoinPointMap()
|
Method Summary | |
---|---|
static void |
addToMergedJPList(ISequenceJoinPoint jp)
|
static void |
clear()
Clears all lists and sets the jpHashcode to zero. |
static JoinPointList |
get(int threadId,
java.lang.String threadName)
Gets the JoinPointList for the given threadId. |
static boolean |
getAddJoinPoint()
Returns true if join points should be added to list |
static boolean |
isEmpty()
Returns true if there is no trace information. |
static void |
main(java.lang.String[] args)
|
static void |
setAddJoinPoint(boolean addJp)
Sets if join points should be added to this list |
static void |
splitJPFile(java.lang.String traceFile,
int chunkSize)
|
static java.lang.String[][] |
writeToFile(java.lang.String fileName)
Writes the join points of the use case to a file. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int jpHashcode
public static long jpIndex
Constructor Detail |
---|
public JoinPointMap()
Method Detail |
---|
public static void addToMergedJPList(ISequenceJoinPoint jp)
public static void clear()
public static JoinPointList get(int threadId, java.lang.String threadName)
threadId
- id of the thread for which JoinPointList is neededthreadName
- name of the thread for which JoinPointList is needed
public static boolean getAddJoinPoint()
public static boolean isEmpty()
public static void main(java.lang.String[] args)
public static void setAddJoinPoint(boolean addJp)
addJoinPoint
- set to true if join points should be added
to list. Set to false otherwise.public static void splitJPFile(java.lang.String traceFile, int chunkSize)
public static java.lang.String[][] writeToFile(java.lang.String fileName)
fileName
- name of the trace file. Do not give any extension.
The extension .ser is automatically added to the file name.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |