public enum Action extends Enum<Action>
| Enum Constant and Description |
|---|
CLEAR_CACHE
Purge le contenu d'un cache.
|
CLEAR_CACHE_KEY
Purge la clé d'un cache.
|
CLEAR_CACHES
Purge le contenu de tous les caches (ie, for ALL_CACHE_MANAGERS {cacheManager.clearAll()}).
|
CLEAR_COUNTER
Réinitialisation d'un compteur non périodique.
|
CLEAR_HOTSPOTS
Réinitialisation des hotspots.
|
GC
Garbage Collect.
|
HEAP_DUMP
Heap dump.
|
INVALIDATE_SESSION
Invalidation d'une session http.
|
INVALIDATE_SESSIONS
Invalidations des sessions http.
|
KILL_THREAD
Tue un thread java.
|
LOGOUT
Invalidation de la session http courante.
|
MAIL_TEST
Test d'envoi du rapport pdf par mail.
|
PAUSE_JOB
Met un job quartz en pause.
|
PURGE_OBSOLETE_FILES
Purge les fichiers .rrd et .ser.gz obsolètes.
|
RESUME_JOB
Enlève la pause d'un job quartz.
|
SEND_THREAD_INTERRUPT
Envoi un signal interrupt à un thread java.
|
| Modifier and Type | Field and Description |
|---|---|
static boolean |
GC_ENABLED
Booléen selon que l'action 'Garbage collector' est possible.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
checkSystemActionsEnabled()
Vérifie que le paramètre pour activer les actions systèmes est positionné.
|
String |
execute(Collector collector,
CollectorServer collectorServer,
HttpSession currentSession,
String counterName,
String sessionId,
String threadId,
String jobId,
String cacheId,
String cacheKey)
Exécute l'action.
|
String |
execute(Collector collector,
CollectorServer collectorServer,
String counterName,
String sessionId,
String threadId,
String jobId,
String cacheId) |
String |
getContextName(String counterName) |
static Action |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Action |
valueOfIgnoreCase(String action)
Convertit le code d'une action en énumération de l'action.
|
static Action[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Action MAIL_TEST
public static final Action CLEAR_COUNTER
public static final Action GC
public static final Action INVALIDATE_SESSIONS
public static final Action INVALIDATE_SESSION
public static final Action LOGOUT
public static final Action HEAP_DUMP
public static final Action CLEAR_CACHES
public static final Action CLEAR_CACHE
public static final Action CLEAR_CACHE_KEY
public static final Action KILL_THREAD
public static final Action SEND_THREAD_INTERRUPT
public static final Action PAUSE_JOB
public static final Action RESUME_JOB
public static final Action CLEAR_HOTSPOTS
public static final Action PURGE_OBSOLETE_FILES
public static final boolean GC_ENABLED
public static Action[] values()
for (Action c : Action.values()) System.out.println(c);
public static Action valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static Action valueOfIgnoreCase(String action)
action - Stringpublic static void checkSystemActionsEnabled()
public String execute(Collector collector, CollectorServer collectorServer, String counterName, String sessionId, String threadId, String jobId, String cacheId) throws IOException
IOExceptionpublic String execute(Collector collector, CollectorServer collectorServer, HttpSession currentSession, String counterName, String sessionId, String threadId, String jobId, String cacheId, String cacheKey) throws IOException
collector - Collector pour une réinitialisation et test de mailcollectorServer - Serveur de collecte pour test de mail (null s'il n'y en a pas)currentSession - session http de l'utilisateur exécutant l'action (null sinon)counterName - Nom du compteur pour une réinitialisationsessionId - Identifiant de session pour invalidation (null sinon)threadId - Identifiant du thread sous la forme pid_ip_idjobId - Identifiant du job sous la forme pid_ip_idcacheId - Identifiant du cache à vidercacheKey - Identifiant d'une clé de cache à viderIOException - eCopyright © 2008–2017 Emeric Vernat. All rights reserved.