public abstract class QueryMetricsHandler extends AbstractRuntimeOnlyHandler
| Modifier and Type | Method and Description |
|---|---|
protected void |
executeRuntimeStep(OperationContext context,
org.jboss.dmr.ModelNode operation)
Execute this step in
OperationContext.Stage.RUNTIME. |
static OperationStepHandler |
getOriginalName(PersistenceUnitServiceRegistry persistenceUnitRegistry) |
protected abstract void |
handle(org.hibernate.stat.QueryStatistics statistics,
OperationContext context,
String attributeName,
String originalQueryName) |
execute, waitForprotected void executeRuntimeStep(OperationContext context, org.jboss.dmr.ModelNode operation) throws OperationFailedException
AbstractRuntimeOnlyHandlerOperationContext.Stage.RUNTIME.
If the operation fails, context.getFailureDescroption()
must be called, or OperationFailedException must be thrown, before calling context.completeStep().
If the operation succeeded, context.getResult() should
be called and the result populated with the outcome, after which context.completeStep()
must be called.executeRuntimeStep in class AbstractRuntimeOnlyHandlercontext - the operation contextoperation - the operation being executedOperationFailedException - if the operation failed before calling context.completeStep()protected abstract void handle(org.hibernate.stat.QueryStatistics statistics,
OperationContext context,
String attributeName,
String originalQueryName)
public static OperationStepHandler getOriginalName(PersistenceUnitServiceRegistry persistenceUnitRegistry)
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.