public class AgentUpdateThread extends Thread
Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Modifier and Type | Method and Description |
|---|---|
static boolean |
isUpdatingNow()
This returns
true if the agent is currently in the process of performing an update. |
void |
run() |
static void |
updateAgentNow(AgentMain agent,
boolean wait)
This static method will immediately begin to update the agent.
|
activeCount, checkAccess, clone, 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, yieldpublic static void updateAgentNow(AgentMain agent, boolean wait) throws IllegalStateException
agent - the running agent that is to be updatedwait - if true, this will wait for the update thread
to die. Note that if the agent update is successful, and you pass
wait=true, this method will never return. It will only
return if the update failed and the VM is still alive. Pass
false if you want to fire-and-forget the agent update
thread and return immediately.IllegalStateException - if the agent is already being updatedUnsupportedOperationException - if the agent is not allowed to update itselfpublic static boolean isUpdatingNow()
true if the agent is currently in the process of performing an update.
When this returns true, it should be assumed the agent's VM will die shortly.true if an update thread is running and the update is being performedCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.