|
TPTP 4.5.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.hyades.loaders.util.XMLLoader
org.eclipse.hyades.loaders.util.BinaryLoader
org.eclipse.hyades.trace.ui.internal.piclient.XMLTraceDataProcessor
public class XMLTraceDataProcessor
| Field Summary | |
|---|---|
protected static int |
BUFFER_SIZE
|
protected java.lang.String |
END_TAG
|
protected java.lang.String |
END_TAG_REPLACE
|
protected java.lang.String |
END_TRACE
|
protected java.io.OutputStream |
fileWriter
|
protected boolean |
firstEvent
|
protected static char[] |
ID1_IN
|
protected static char[] |
ID1_OUT
|
protected static char[] |
ID2_IN
|
protected static char[] |
ID2_OUT
|
protected static java.lang.String |
INCOMMING_DATA
|
protected static java.lang.String |
NEW_LINE
|
protected boolean |
newFile
|
protected long |
prevTotalBytesRead
|
protected java.lang.String |
profileFileName
|
protected boolean |
specialProcessing
|
protected java.lang.String |
START_TAG
|
protected java.lang.String |
START_TRACE
|
protected long |
startTime
|
protected int |
tempRemaining
|
protected long |
totalBytesRead
|
protected boolean |
validTag
|
protected java.lang.String |
XML_VERSION
|
protected java.lang.String |
XML_VERSION_TAG
|
| Fields inherited from class org.eclipse.hyades.loaders.util.XMLLoader |
|---|
context, currentAttributeName, currentElementName, currentLoader, debug, defaultLoader, depth, error, file, fragmentsCount, LE_IN, LE_OUT, loaders, p, rootElement, sb, scanner, startDocument |
| Constructor Summary | |
|---|---|
XMLTraceDataProcessor(org.eclipse.hyades.models.hierarchy.TRCAgent agent)
|
|
XMLTraceDataProcessor(org.eclipse.hyades.models.hierarchy.TRCAgentProxy agentProxy)
XMLDataProcessor constructor comment. |
|
XMLTraceDataProcessor(org.eclipse.hyades.models.hierarchy.TRCMonitor monitor)
XMLDataProcessor constructor comment. |
|
| Method Summary | |
|---|---|
boolean |
checkAndRemoveEndTag(java.lang.String filename)
Check the non-zip format profiling file for an trace end tag and remove it if there exist one. |
void |
cleanUp()
|
protected boolean |
copyFile(java.io.File f,
java.io.File newFileName)
|
protected void |
copyZip(java.util.zip.ZipInputStream zipInputStream,
java.util.zip.ZipOutputStream zipOutputStream)
|
void |
createWriter()
|
void |
dataServerExited()
|
void |
dispose()
|
void |
endTrace(java.io.OutputStream randomFile)
|
protected org.eclipse.hyades.models.hierarchy.TRCAgentProxy |
getAgentProxy()
|
protected java.lang.String |
getDumpFileName()
|
java.lang.String |
getProfileFileName()
Returns the profileFileName. |
protected java.lang.String |
getTimeStamp()
|
java.io.OutputStream |
getWriter()
Returns the fw. |
protected void |
handleOutOfMemoryError()
|
void |
incommingData(byte[] data,
int length,
java.net.InetAddress peer)
|
void |
incommingData(byte[] buffer,
int offset,
int length,
java.net.InetAddress peer)
Insert the method's description here. |
void |
incommingData(char[] data,
int length,
java.net.InetAddress peer)
|
void |
incommingData(char[] buffer,
int offset,
int length,
java.net.InetAddress peer)
Insert the method's description here. |
void |
incommingStream(java.io.InputStream inputStream,
java.net.InetAddress peer)
|
void |
invalidDataType(byte[] data,
int length,
java.net.InetAddress peer)
|
void |
invalidDataType(byte[] data,
int offset,
int length,
java.net.InetAddress peer)
Insert the method's description here. |
boolean |
isNewProfileFile()
|
protected boolean |
isValidTag(byte[] buf,
int offset,
int length)
|
void |
loadEvent(byte[] buffer,
int offset,
int length,
boolean loadToModel)
|
void |
loadEvent(byte[] buffer,
int offset,
int length,
boolean loadToModel,
boolean toProfileFile)
|
protected void |
loadEventHook(byte[] buffer,
int length)
|
protected void |
loadEventHook(byte[] buffer,
int offset,
int length)
|
void |
loadEvents(java.io.InputStream inputStream,
int offset,
int length)
|
protected java.io.OutputStream |
makeWriter()
|
protected void |
notifyListener(Agent a,
org.eclipse.hyades.models.hierarchy.TRCAgentProxy agent)
|
protected boolean |
renameFile(java.io.File f,
java.io.File newFileName)
|
void |
setProfileFileName(java.lang.String profileFileName)
Sets the profileFileName. |
void |
setWriter(java.io.OutputStream fw)
Sets the fw. |
protected boolean |
startsWith(byte[] container,
int offset,
int length,
byte[] bytes)
|
void |
startTrace(java.io.OutputStream randomFile)
|
protected void |
stopAgent()
|
void |
waitingForData()
Insert the method's description here. |
protected void |
writeByte(byte[] data,
int offset,
int length)
|
void |
writeHeader(java.io.Writer randomFile)
|
void |
writeXMLVersion(java.io.OutputStream randomFile)
|
| Methods inherited from class org.eclipse.hyades.loaders.util.BinaryLoader |
|---|
isLoadXml, loadEvents, setLoadXml |
| Methods inherited from class org.eclipse.hyades.loaders.util.XMLLoader |
|---|
addToResource, attributeName, attributeName, attributeValueCharacters, attributeValueCharacters, characters, checkForStopProcessing, createOutputFile, endDocument, endElement, endElement, error, error, getContext, getLoader, getName, getProcessedFragments, isIgnoredElement, loadEvent, loadEvent, loadEvent, loadEvent, log, log, makeParser, makeScanner, printLoadInfo, processGlobalForwardReferences, restartParser, setCollectionMode, setLoadToModel, startDocument, startElement, startElement, toString, writeToBinaryOutputFile, writeToTextOutputFile |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected boolean newFile
protected static final java.lang.String NEW_LINE
protected static final int BUFFER_SIZE
protected boolean firstEvent
protected java.io.OutputStream fileWriter
protected java.lang.String profileFileName
protected final java.lang.String START_TAG
protected final java.lang.String END_TAG
protected final java.lang.String XML_VERSION_TAG
protected final java.lang.String END_TAG_REPLACE
protected final java.lang.String START_TRACE
protected final java.lang.String END_TRACE
protected final java.lang.String XML_VERSION
protected static final char[] ID1_IN
protected static final char[] ID1_OUT
protected static final char[] ID2_IN
protected static final char[] ID2_OUT
protected static final java.lang.String INCOMMING_DATA
protected boolean specialProcessing
protected long totalBytesRead
protected long prevTotalBytesRead
protected long startTime
protected boolean validTag
protected int tempRemaining
| Constructor Detail |
|---|
public XMLTraceDataProcessor(org.eclipse.hyades.models.hierarchy.TRCAgent agent)
public XMLTraceDataProcessor(org.eclipse.hyades.models.hierarchy.TRCAgentProxy agentProxy)
public XMLTraceDataProcessor(org.eclipse.hyades.models.hierarchy.TRCMonitor monitor)
| Method Detail |
|---|
public void setWriter(java.io.OutputStream fw)
fw - The fw to setpublic java.io.OutputStream getWriter()
public void setProfileFileName(java.lang.String profileFileName)
profileFileName - The profileFileName to setpublic java.lang.String getProfileFileName()
public void createWriter()
protected java.lang.String getDumpFileName()
protected java.io.OutputStream makeWriter()
throws java.io.IOException
java.io.IOException
protected boolean renameFile(java.io.File f,
java.io.File newFileName)
protected boolean copyFile(java.io.File f,
java.io.File newFileName)
f - newFileName -
protected void copyZip(java.util.zip.ZipInputStream zipInputStream,
java.util.zip.ZipOutputStream zipOutputStream)
throws java.io.IOException
zipInputStream - zipStream -
java.io.IOExceptionprotected java.lang.String getTimeStamp()
public void dataServerExited()
dataServerExited in interface DataServerListenerpublic void dispose()
public void endTrace(java.io.OutputStream randomFile)
protected boolean isValidTag(byte[] buf,
int offset,
int length)
protected boolean startsWith(byte[] container,
int offset,
int length,
byte[] bytes)
container - bytes -
protected void loadEventHook(byte[] buffer,
int offset,
int length)
protected void loadEventHook(byte[] buffer,
int length)
public void incommingData(byte[] buffer,
int offset,
int length,
java.net.InetAddress peer)
incommingData in interface ExtendedDataServerListenerbuffer - byte[]length - intpeer - java.net.InetAddress
public void incommingData(char[] buffer,
int offset,
int length,
java.net.InetAddress peer)
incommingData in interface ExtendedDataServerListenerbuffer - char[]length - intpeer - java.net.InetAddress
public void invalidDataType(byte[] data,
int offset,
int length,
java.net.InetAddress peer)
invalidDataType in interface ExtendedDataServerListenerdata - byte[]length - intpeer - java.net.InetAddresspublic void waitingForData()
waitingForData in interface org.eclipse.hyades.execution.core.IDataProcessorpublic void startTrace(java.io.OutputStream randomFile)
public void writeHeader(java.io.Writer randomFile)
public void writeXMLVersion(java.io.OutputStream randomFile)
protected org.eclipse.hyades.models.hierarchy.TRCAgentProxy getAgentProxy()
protected void handleOutOfMemoryError()
protected void notifyListener(Agent a,
org.eclipse.hyades.models.hierarchy.TRCAgentProxy agent)
protected void stopAgent()
protected void writeByte(byte[] data,
int offset,
int length)
public boolean isNewProfileFile()
public boolean checkAndRemoveEndTag(java.lang.String filename)
filename - file to be checked
public void incommingData(byte[] data,
int length,
java.net.InetAddress peer)
incommingData in interface org.eclipse.hyades.execution.core.IDataProcessor
public void incommingData(char[] data,
int length,
java.net.InetAddress peer)
incommingData in interface org.eclipse.hyades.execution.core.IDataProcessor
public void invalidDataType(byte[] data,
int length,
java.net.InetAddress peer)
invalidDataType in interface org.eclipse.hyades.execution.core.IDataProcessor
public void incommingStream(java.io.InputStream inputStream,
java.net.InetAddress peer)
incommingStream in interface ExtendedDataServerListener
public void loadEvents(java.io.InputStream inputStream,
int offset,
int length)
throws InvalidEventException
InvalidEventExceptionpublic void cleanUp()
cleanUp in interface org.eclipse.hyades.loaders.util.IXMLLoadercleanUp in class org.eclipse.hyades.loaders.util.XMLLoader
public void loadEvent(byte[] buffer,
int offset,
int length,
boolean loadToModel,
boolean toProfileFile)
throws org.eclipse.hyades.loaders.util.InvalidXMLException
loadEvent in class org.eclipse.hyades.loaders.util.XMLLoaderorg.eclipse.hyades.loaders.util.InvalidXMLException
public void loadEvent(byte[] buffer,
int offset,
int length,
boolean loadToModel)
throws org.eclipse.hyades.loaders.util.InvalidXMLException
loadEvent in class org.eclipse.hyades.loaders.util.BinaryLoaderorg.eclipse.hyades.loaders.util.InvalidXMLException
|
TPTP 4.5.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||