com.jrockit.memleak.mlp
Class AbstractMemLeak.AsyncCallbackThread

java.lang.Object
  extended by java.lang.Thread
      extended by com.jrockit.memleak.mlp.AbstractMemLeak.AsyncCallbackThread
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
AbstractMemLeak

protected class AbstractMemLeak.AsyncCallbackThread
extends java.lang.Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
AbstractMemLeak.AsyncCallbackThread(com.jrockit.memleak.mlp.CommunicationChannel commChannel)
           
 
Method Summary
 AllocTraceCallback getAllocTraceCallback()
          Returns the allocation trace callback.
 DisconnectCallback getDisconnectCallback()
          Return the callback called if we're disconnected because communication with the server fails.
 TrendAnalysisCallback getTrendCallback()
          Returns the callback that will be called, with the latest trendanalysis, for each Garbage Collect that occurs when trend analysis is enabled.
 void run()
           
 void setAllocTraceCallback(AllocTraceCallback atc)
          Sets the allocation trace callback.
 void setDisconnectCallback(DisconnectCallback disconnectCallback)
          Sets the callback called if we're disconnected because communication with the server fails.
 void setTrendCallback(TrendAnalysisCallback tac)
          Sets the callback that will be called, with the latest trendanalysis, for each Garbage Collect that occurs when trend analysis is enabled.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractMemLeak.AsyncCallbackThread

public AbstractMemLeak.AsyncCallbackThread(com.jrockit.memleak.mlp.CommunicationChannel commChannel)
Parameters:
commChannel -
Method Detail

setAllocTraceCallback

public void setAllocTraceCallback(AllocTraceCallback atc)
Sets the allocation trace callback.

Parameters:
atc - callback that receives the traces.

getAllocTraceCallback

public AllocTraceCallback getAllocTraceCallback()
Returns the allocation trace callback.

Returns:
the callback that receives the traces.

setTrendCallback

public void setTrendCallback(TrendAnalysisCallback tac)
Sets the callback that will be called, with the latest trendanalysis, for each Garbage Collect that occurs when trend analysis is enabled.

Parameters:
tac - the callback

getTrendCallback

public TrendAnalysisCallback getTrendCallback()
Returns the callback that will be called, with the latest trendanalysis, for each Garbage Collect that occurs when trend analysis is enabled.

Returns:
the callback

setDisconnectCallback

public void setDisconnectCallback(DisconnectCallback disconnectCallback)
Sets the callback called if we're disconnected because communication with the server fails. Note that this callback is only called when the communication fails. Normal, client initiated, termination of the communication will not result in the disconnect callback being called.

Parameters:
disconnectCallback - the callback that handles the exception that was thrown due to the communication error.

getDisconnectCallback

public DisconnectCallback getDisconnectCallback()
Return the callback called if we're disconnected because communication with the server fails. Note that this callback is only called when the communication fails. Normal, client initiated, termination of the communication will not result in the disconnect callback being called.

Returns:
the callback that handles the exception that was thrown due to the communication error.

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread


Copyright © 1999, 2011, Oracle and/or its affiliates. All rights reserved.