buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public void testMessageNumber() { Assert.assertEquals(311, LocalizedFormats.values().length); }
public void testMessageNumber() { Assert.assertEquals(309, LocalizedFormats.values().length); }
public void execute(Tuple tuple) { if(tuple.getSourceStreamId().equals(Constants.SYSTEM_TICK_STREAM_ID)) { long now = System.currentTimeMillis(); if(now - _lastRotate > _messageTimeoutMs) { _batches.rotate(); _lastRotate = now; } ...
public void execute(Tuple tuple) { if(tuple.isTick()) { long now = System.currentTimeMillis(); if(now - _lastRotate > _messageTimeoutMs) { _batches.rotate(); _lastRotate = now; } return; } String batchGroup = _ba...
public void testConstructorIterable() { List<Comparator<File>> list = new ArrayList<Comparator<File>>(); list.add(SizeFileComparator.SIZE_COMPARATOR); list.add(ExtensionFileComparator.EXTENSION_COMPARATOR); Comparator<File> c = new CompositeFileComparator(list); assertTrue("...
public void testConstructorIterable() { List<Comparator<File>> list = new ArrayList<Comparator<File>>(); list.add(SizeFileComparator.SIZE_COMPARATOR); list.add(ExtensionFileComparator.EXTENSION_COMPARATOR); Comparator<File> c = new CompositeFileComparator(list); assertEquals...
public void testAppendConstructStringBuilder() { StringBuilder builder = new StringBuilder("Foo"); StringBuilderWriter writer = new StringBuilderWriter(builder); writer.append("Bar"); assertEquals("FooBar", writer.toString()); assertTrue(builder == writer.getBuilder()); }...
public void testAppendConstructStringBuilder() { StringBuilder builder = new StringBuilder("Foo"); StringBuilderWriter writer = new StringBuilderWriter(builder); writer.append("Bar"); assertEquals("FooBar", writer.toString()); assertEquals(builder, writer.getBuilder()); }...
public void registerAttributes(ManagementResourceRegistration resourceRegistration) { super.registerAttributes(resourceRegistration); for(ConnectorStat attr : ConnectorStat.values()) { resourceRegistration.registerMetric(attr.definition, ReadStatisticHandler.INSTANCE); } }
public void registerAttributes(ManagementResourceRegistration resourceRegistration) { super.registerAttributes(resourceRegistration); for(ConnectorStat attr : ConnectorStat.values()) { resourceRegistration.registerReadOnlyAttribute(attr.definition, ReadStatisticHandler.INSTANCE); ...
static final String INTERLEAVING = "interleaving"; /* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free softwa...
static final String INTERLEAVING = "interleaving"; /* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free softwa...
static final String INTERLEAVING = "interleaving"; /* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free softwa...
static final String INTERLEAVING = "interleaving"; /* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free softwa...
private InjectionMetadata findPersistenceMetadata(String beanName, final Class<?> clazz) { // Quick check on the concurrent map first, with minimal locking. // Fall back to class name as cache key, for backwards compatibility with custom callers. String cacheKey = (StringUtils.hasLength(beanName) ? beanName : cl...
private InjectionMetadata findPersistenceMetadata(String beanName, final Class<?> clazz) { // Quick check on the concurrent map first, with minimal locking. // Fall back to class name as cache key, for backwards compatibility with custom callers. String cacheKey = (StringUtils.hasLength(beanName) ? beanName : cl...
private void setParameterValues(PreparedStatement preparedStatement, List<Object> values, int[] columnTypes) throws SQLException { int colIndex = 0; for (Object value : values) { colIndex++; if (columnTypes == null || colIndex < columnTypes.length) { StatementCreatorUtils.setParameterValue(preparedSta...
private void setParameterValues(PreparedStatement preparedStatement, List<Object> values, int[] columnTypes) throws SQLException { int colIndex = 0; for (Object value : values) { colIndex++; if (columnTypes == null || colIndex > columnTypes.length) { StatementCreatorUtils.setParameterValue(preparedSta...
private final double epsilon = 1e-16;
private final double epsilon = 1e-12;
public Resource requireChild(PathElement element) { if (CORE_ADDRESS.equals(element.getKey())) { if (hasAddressControl(element)) { return CoreAddressResource.INSTANCE; } throw new NoSuchElementException(element.toString()); } else { ret...
public Resource requireChild(PathElement element) { if (CORE_ADDRESS.equals(element.getKey())) { if (hasAddressControl(element)) { return CoreAddressResource.INSTANCE; } throw new NoSuchElementException(element.toString()); } else { ret...
public void verifyNumDefaultListenersRegistered() throws Exception { TestContextManager testContextManager = new TestContextManager(DefaultListenersExampleTestCase.class); assertEquals("Num registered TELs for DefaultListenersExampleTestCase.", 4, testContextManager.getTestExecutionListeners().size()); }
public void verifyNumDefaultListenersRegistered() throws Exception { TestContextManager testContextManager = new TestContextManager(DefaultListenersExampleTestCase.class); assertEquals("Num registered TELs for DefaultListenersExampleTestCase.", 5, testContextManager.getTestExecutionListeners().size()); }
public void testDetection() throws Exception { final ArchiveStreamFactory factory = new ArchiveStreamFactory(); final ArchiveInputStream ar = factory.createArchiveInputStream( new BufferedInputStream(new FileInputStream( ...
public void testDetection() throws Exception { final ArchiveStreamFactory factory = new ArchiveStreamFactory(); final ArchiveInputStream ar = factory.createArchiveInputStream( new BufferedInputStream(new FileInputStream( ...
public void initialize(ExtensionContext context) { TransactionLogger.ROOT_LOGGER.debug("Initializing Transactions Extension"); final LogStoreResource resource = new LogStoreResource(); final boolean registerRuntimeOnly = context.isRuntimeOnlyRegistrationValid(); final SubsystemRegist...
public void initialize(ExtensionContext context) { TransactionLogger.ROOT_LOGGER.debug("Initializing Transactions Extension"); final LogStoreResource resource = new LogStoreResource(); final boolean registerRuntimeOnly = context.isRuntimeOnlyRegistrationValid(); final SubsystemRegist...
public void updateHandler(AuditLogHandler handler) { config.lock(); try { AuditLogHandler existing = config.getConfiguredHandler(handler.getName()); if (!handler.isDifferent(existing)){ if (handlerUpdateTask == null){ handlerUpdateTask = ne...
public void updateHandler(AuditLogHandler handler) { config.lock(); try { AuditLogHandler existing = config.getConfiguredHandler(handler.getName()); if (handler.isDifferent(existing)){ if (handlerUpdateTask == null){ handlerUpdateTask = new...
public void registerDestructionCallback(String name, Runnable callback) { logger.warn("SimpleThreadScope does not support descruction callbacks. " + "Consider using a RequestScope in a Web environment."); }
public void registerDestructionCallback(String name, Runnable callback) { logger.warn("SimpleThreadScope does not support destruction callbacks. " + "Consider using a RequestScope in a Web environment."); }
import backtype.storm.coordination.CoordinatedBolt; package backtype.storm; import backtype.storm.drpc.CoordinatedBolt; public class Constants { public static final String COORDINATED_STREAM_ID = CoordinatedBolt.class.getName() + "/coord-stream"; }
import backtype.storm.coordination.CoordinatedBolt; package backtype.storm; import backtype.storm.coordination.CoordinatedBolt; public class Constants { public static final String COORDINATED_STREAM_ID = CoordinatedBolt.class.getName() + "/coord-stream"; }
public void execute(Tuple input) { _collector.setAnchor(input); _spout.emitBatch((TransactionAttempt) input.getValue(0), _collector); _collector.ack(); }
public void execute(Tuple input) { _collector.setAnchor(input); _spout.emitBatch((TransactionAttempt) input.getValue(0), _collector); _collector.ack(input); }
private int countRowsInTable(String tableName) { return jdbcTemplate.queryForInt("SELECT COUNT(0) FROM " + tableName); }
private int countRowsInTable(String tableName) { return jdbcTemplate.queryForObject("SELECT COUNT(0) FROM " + tableName, Integer.class); }
private NewOperation getCompositeOperation(DeploymentPlanImpl plan) { ModelNode op = new ModelNode(); op.get(OP).set(COMPOSITE); op.get(OP_ADDR).setEmptyList(); ModelNode steps = op.get(STEPS); steps.setEmptyList(); op.get(OPERATION_HEADERS, ROLLBACK_ON_RUNTIME_FAILU...
private NewOperation getCompositeOperation(DeploymentPlanImpl plan) { ModelNode op = new ModelNode(); op.get(OP).set(COMPOSITE); op.get(OP_ADDR).setEmptyList(); ModelNode steps = op.get(STEPS); steps.setEmptyList(); op.get(OPERATION_HEADERS, ROLLBACK_ON_RUNTIME_FAILU...
/** This method isn't private solely to allow a unit test in the same package to call it */ void scan() { try { scanLock.lockInterruptibly(); } catch (InterruptedException ie) { Thread.currentThread().interrupt(); return; } boolean scheduleRe...
/** This method isn't private solely to allow a unit test in the same package to call it */ void scan() { try { scanLock.lockInterruptibly(); } catch (InterruptedException ie) { Thread.currentThread().interrupt(); return; } boolean scheduleRe...
private void processRequest(final HttpExchange http) throws IOException { final URI request = http.getRequestURI(); final String requestMethod = http.getRequestMethod(); boolean isGet = GET.equals(requestMethod); if (!isGet && !POST.equals(requestMethod)) { http.sendResp...
private void processRequest(final HttpExchange http) throws IOException { final URI request = http.getRequestURI(); final String requestMethod = http.getRequestMethod(); boolean isGet = GET.equals(requestMethod); if (!isGet && !POST.equals(requestMethod)) { http.sendResp...
public void testMessagingClient() throws Exception { final String queueName = "queue.standalone"; final ClientSessionFactory sf = createClientSessionFactory("localhost", 5445); final NewModelControllerClient client = NewModelControllerClient.Factory.create(InetAddress.getByName("localhost"...
public void testMessagingClient() throws Exception { final String queueName = "queue.standalone"; final ClientSessionFactory sf = createClientSessionFactory("localhost", 5445); final NewModelControllerClient client = NewModelControllerClient.Factory.create(InetAddress.getByName("localhost"...
public void readElement(final XMLExtendedStreamReader reader, final List<ModelNode> updates) throws XMLStreamException { final ModelNode address = new ModelNode(); address.add(SUBSYSTEM, NewJMSExtension.SUBSYSTEM_NAME); address.protect(); final ModelNode operation = new ModelNode()...
public void readElement(final XMLExtendedStreamReader reader, final List<ModelNode> updates) throws XMLStreamException { final ModelNode address = new ModelNode(); address.add(SUBSYSTEM, NewJMSExtension.SUBSYSTEM_NAME); address.protect(); final ModelNode operation = new ModelNode()...
public void elementTypesNotConvertible() throws Exception { List<Resource> resources = new ArrayList<Resource>(); resources.add(null); resources.add(null); TypeDescriptor sourceType = new TypeDescriptor(getClass().getField("strings")); assertEquals(resources, conversionService.convert(resources, sourceType,...
public void elementTypesNotConvertible() throws Exception { List<String> resources = new ArrayList<String>(); resources.add(null); resources.add(null); TypeDescriptor sourceType = new TypeDescriptor(getClass().getField("strings")); assertEquals(resources, conversionService.convert(resources, sourceType, new...
public interface GenericConverter { package org.springframework.core.convert.support; import org.springframework.core.convert.TypeDescriptor; interface GenericConverter { Object convert(Object source, TypeDescriptor type); }
public interface GenericConverter { package org.springframework.core.convert.support; import org.springframework.core.convert.TypeDescriptor; public interface GenericConverter { Object convert(Object source, TypeDescriptor type); }
public static Archive<?> deployment1() { JavaArchive jar = createJar(ARCHIVE_NAME_CLIENT); jar.addClasses(RemoteLocalCallTestCase.class); jar.addAsManifestResource("META-INF/jboss-ejb-client.xml", "jboss-ejb-client.xml"); return jar; }
public static Archive<?> deployment1() { JavaArchive jar = createJar(ARCHIVE_NAME_CLIENT); jar.addClasses(RemoteLocalCallTestCase.class); jar.addAsManifestResource("META-INF/jboss-ejb-client-receivers.xml", "jboss-ejb-client.xml"); return jar; }
public static Archive<?> clientDeployment() { final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, CLIENT_DEPLOYMENT + ".jar"); jar.addClasses(ClientEjb.class, TransactionalRemote.class, TransactionInvocationTestCase.class, TransactionalStatefulRemote.class); jar.addA...
public static Archive<?> clientDeployment() { final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, CLIENT_DEPLOYMENT + ".jar"); jar.addClasses(ClientEjb.class, TransactionalRemote.class, TransactionInvocationTestCase.class, TransactionalStatefulRemote.class); jar.addA...
private void readServerElement_1_4(final Namespace namespace, final XMLExtendedStreamReader reader, final ModelNode address, final List<ModelNode> list) throws XMLStreamException { parseNamespaces(reader, address, list); ModelNode serverName = null; // attributes final...
private void readServerElement_1_4(final Namespace namespace, final XMLExtendedStreamReader reader, final ModelNode address, final List<ModelNode> list) throws XMLStreamException { parseNamespaces(reader, address, list); ModelNode serverName = null; // attributes final...
public boolean isSensitive(Action.ActionEffect actionEffect) { if (actionEffect == Action.ActionEffect.ACCESS) { return getRequiresAccessPermission(); } else if (actionEffect == Action.ActionEffect.READ_CONFIG || actionEffect == Action.ActionEffect.READ_RUNTIME) { return getR...
public boolean isSensitive(Action.ActionEffect actionEffect) { if (actionEffect == Action.ActionEffect.ADDRESS) { return getRequiresAccessPermission(); } else if (actionEffect == Action.ActionEffect.READ_CONFIG || actionEffect == Action.ActionEffect.READ_RUNTIME) { return get...
public ReadResourceHandler() { this(null, null); } ReadResourceHandler(final FilteredData filteredData, OperationStepHandler overrideHandler) { //todo use AD for validation validator.registerValidator(ModelDescriptionConstants.RECURSIVE, new ModelTypeValidator(ModelType.BOOLEAN, tru...
public ReadResourceHandler() { this(null, null); } ReadResourceHandler(final FilteredData filteredData, OperationStepHandler overrideHandler) { //todo use AD for validation validator.registerValidator(ModelDescriptionConstants.RECURSIVE, new ModelTypeValidator(ModelType.BOOLEAN, tru...
public void writeContent(XMLExtendedStreamWriter writer, SubsystemMarshallingContext context) throws XMLStreamException { context.startSubsystemElement(Namespace.EE_2_0.getUriString(), false); ModelNode eeSubSystem = context.getModelNode(); GlobalModulesDefinition.INSTANCE.marshallAsElement...
public void writeContent(XMLExtendedStreamWriter writer, SubsystemMarshallingContext context) throws XMLStreamException { context.startSubsystemElement(Namespace.EE_3_0.getUriString(), false); ModelNode eeSubSystem = context.getModelNode(); GlobalModulesDefinition.INSTANCE.marshallAsElement...
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { //TODO check profile final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final Module module = deploymentUnit.getAttachment(Attachments.MODULE); final Service...
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { //TODO check profile final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final Module module = deploymentUnit.getAttachment(Attachments.MODULE); final Service...
public static void dumpManagementResourceRegistration(final ExtensionRegistry registry, final String path) throws OperationFailedException{ ManagementResourceRegistration profile = registry.getProfileRegistration(); try { for (PathElement pe : profile.getChildAddresses(PathAddress.EMPTY_...
public static void dumpManagementResourceRegistration(final ExtensionRegistry registry, final String path) throws OperationFailedException{ ManagementResourceRegistration profile = registry.getProfileRegistration(); try { for (PathElement pe : profile.getChildAddresses(PathAddress.EMPTY_...
private void checkFile(String label, File file, Collection<File> files) { for (int i = 0; i < 5; i++) { if (files.contains(file)) { return; // found, test passes } sleepHandleInterruped(pauseTime); } fail(label + " " + file + " not found");...
private void checkFile(String label, File file, Collection<File> files) { for (int i = 0; i < 20; i++) { if (files.contains(file)) { return; // found, test passes } sleepHandleInterruped(pauseTime); } fail(label + " " + file + " not found")...
public void setPersistenceEnabled(boolean enabled) { persistenceEnabled = enabled; } void addAcceptor(final AbstractTransportElement<?> transportSpecification) { acceptors.add(transportSpecification); } void addConnector(final AbstractTransportElement<?> transportSpecification) { ...
public void setPersistenceEnabled(Boolean enabled) { persistenceEnabled = enabled; } void addAcceptor(final AbstractTransportElement<?> transportSpecification) { acceptors.add(transportSpecification); } void addConnector(final AbstractTransportElement<?> transportSpecification) { ...
public void handleMessage(TextMessage message, WebSocketSession wsSession) throws Exception { String payload = message.getPayload(); if (StringUtils.isEmpty(payload)) { logger.trace("Ignoring empty message"); return; } String[] messages; try { messages = getSockJsServiceConfig().getMessageCodec().de...
public void handleMessage(TextMessage message, WebSocketSession wsSession) throws Exception { String payload = message.getPayload(); if (StringUtils.isEmpty(payload)) { logger.trace("Ignoring empty message"); return; } String[] messages; try { messages = getSockJsServiceConfig().getMessageCodec().de...
public void testAdHocData() throws MathException { FastFourierTransformer transformer = new FastFourierTransformer(); Complex result[]; double tolerance = 1E-12; double x[] = {1.3, 2.4, 1.7, 4.1, 2.9, 1.7, 5.1, 2.7}; Complex y[] = { new Complex(21.9, 0.0), ne...
public void testAdHocData() throws MathException { FastFourierTransformer transformer = new FastFourierTransformer(); Complex result[]; double tolerance = 1E-12; double x[] = {1.3, 2.4, 1.7, 4.1, 2.9, 1.7, 5.1, 2.7}; Complex y[] = { new Complex(21.9, 0.0), ne...
protected GenericConverter getDefaultConverter(TypeDescriptor sourceType, TypeDescriptor targetType) { return new MapperConverter(new SpelMapper()); }
protected GenericConverter getDefaultConverter(TypeDescriptor sourceType, TypeDescriptor targetType) { return new MappingConverter(new SpelMapper()); }
public ComponentDescription(final String componentName, final String componentClassName, final EEModuleDescription moduleDescription, final ServiceName deploymentUnitServiceName) { this.moduleDescription = moduleDescription; if (componentName == null) { throw MESSAGES.nullVar("name"); ...
public ComponentDescription(final String componentName, final String componentClassName, final EEModuleDescription moduleDescription, final ServiceName deploymentUnitServiceName) { this.moduleDescription = moduleDescription; if (componentName == null) { throw MESSAGES.nullVar("name"); ...
public void testReflectionEqualsExcludeFields() throws Exception { TestObjectWithMultipleFields x1 = new TestObjectWithMultipleFields(1, 2, 3); TestObjectWithMultipleFields x2 = new TestObjectWithMultipleFields(1, 3, 4); // not equal when including all fields assertTrue(!EqualsBuild...
public void testReflectionEqualsExcludeFields() throws Exception { TestObjectWithMultipleFields x1 = new TestObjectWithMultipleFields(1, 2, 3); TestObjectWithMultipleFields x2 = new TestObjectWithMultipleFields(1, 3, 4); // not equal when including all fields assertTrue(!EqualsBuild...
public void testReflectionHashCodeExcludeFields() throws Exception { TestObjectWithMultipleFields x = new TestObjectWithMultipleFields(1, 2, 3); assertEquals((((17 * 37 + 1) * 37 + 2) * 37 + 3), HashCodeBuilder.reflectionHashCode(x)); assertEquals((((17 * 37 + 1) * 37 + 2) * 37 + 3), HashC...
public void testReflectionHashCodeExcludeFields() throws Exception { TestObjectWithMultipleFields x = new TestObjectWithMultipleFields(1, 2, 3); assertEquals((((17 * 37 + 1) * 37 + 2) * 37 + 3), HashCodeBuilder.reflectionHashCode(x)); assertEquals((((17 * 37 + 1) * 37 + 2) * 37 + 3), HashC...
protected RandomGenerator makeGenerator() { return new ISAACRandom(1000); }
protected RandomGenerator makeGenerator() { return new ISAACRandom(500); }
protected RandomGenerator makeGenerator() { return new Well1024a(100); }
protected RandomGenerator makeGenerator() { return new Well1024a(1000); }
public void remainder(final double[] lhs, final int lhsOffset, final double[] rhs, final int rhsOffset, final double[] result, final int resultOffset) { // compute k such that lhs % rhs = lhs - k rhs final double rem = lhs[lhsOffset] % rhs[rhsOffs...
public void remainder(final double[] lhs, final int lhsOffset, final double[] rhs, final int rhsOffset, final double[] result, final int resultOffset) { // compute k such that lhs % rhs = lhs - k rhs final double rem = FastMath.IEEEremainder(lhs[l...
public SocketBindingGroupElement(XMLExtendedStreamReader reader, final RefResolver<String, InterfaceElement> interfaceResolver, final RefResolver<String, SocketBindingGroupElement> includedGroupResolver) throws XMLStreamException { super(reader); if (interfaceResolv...
public SocketBindingGroupElement(XMLExtendedStreamReader reader, final RefResolver<String, InterfaceElement> interfaceResolver, final RefResolver<String, SocketBindingGroupElement> includedGroupResolver) throws XMLStreamException { super(reader); if (interfaceResolv...
package org.jboss.as.deployment.service; /* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you ca...
package org.jboss.as.deployment.service; /* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you ca...
public Stream newValuesStream() { return new Stream(_topology, _node); }
public Stream newValuesStream() { return new Stream(_topology, _node.name, _node); }
public SpoutNode(String streamId, Fields allOutputFields, String txid, Object spout, SpoutType type) { super(streamId, allOutputFields); this.txId = txid; this.spout = spout; this.type = type; }
public SpoutNode(String streamId, Fields allOutputFields, String txid, Object spout, SpoutType type) { super(streamId, null, allOutputFields); this.txId = txid; this.spout = spout; this.type = type; }
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { PathAddress opAddress = PathAddress.pathAddress(operation.get(ModelDescriptionConstants.OP_ADDR)); PathAddress parent = opAddress.append(ModClusterExtension.DYNAMIC_LOAD_PROVIDER); String nam...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { PathAddress opAddress = PathAddress.pathAddress(operation.get(ModelDescriptionConstants.OP_ADDR)); PathAddress parent = opAddress.append(ModClusterExtension.DYNAMIC_LOAD_PROVIDER); String nam...
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final EEModuleDescription moduleDescription = deploymentUnit.getAttachment(Attachments.EE_MODULE_DESCRIPTION); if(moduleD...
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final EEModuleDescription moduleDescription = deploymentUnit.getAttachment(Attachments.EE_MODULE_DESCRIPTION); if(moduleD...
public void getResourceValue(final ResolutionContext resolutionContext, final ServiceBuilder<?> serviceBuilder, final DeploymentPhaseContext phaseContext, final Injector<ManagedReferenceFactory> injector) { final String applicationName = resolutionContext.getApplicationName(); final String moduleNam...
public void getResourceValue(final ResolutionContext resolutionContext, final ServiceBuilder<?> serviceBuilder, final DeploymentPhaseContext phaseContext, final Injector<ManagedReferenceFactory> injector) { final String applicationName = resolutionContext.getApplicationName(); final String moduleNam...
private void processField(final EEModuleDescription eeModuleDescription, final EJBResourceWrapper annotation, final FieldInfo fieldInfo) { final String fieldName = fieldInfo.name(); final String injectionType = isEmpty(annotation.beanInterface()) || annotation.beanInterface().equals(Object.class.get...
private void processField(final EEModuleDescription eeModuleDescription, final EJBResourceWrapper annotation, final FieldInfo fieldInfo) { final String fieldName = fieldInfo.name(); final String injectionType = isEmpty(annotation.beanInterface()) || annotation.beanInterface().equals(Object.class.get...
public static final PathElement LOGGING_PATH = PathElement.pathElement(ModelDescriptionConstants.TYPE, LOGGING); static { final List<String> JDK6 = ManagementFactory.getCompilationMXBean() == null ? JDK_NOCOMPILATION_TYPES : JDK6_BASE_TYPES; if (PlatformMBeanUtil.JVM_MAJOR_VERSION > 6) { ...
public static final PathElement LOGGING_PATH = PathElement.pathElement(ModelDescriptionConstants.TYPE, LOGGING); static { final List<String> JDK6 = ManagementFactory.getCompilationMXBean() == null ? JDK_NOCOMPILATION_TYPES : JDK6_BASE_TYPES; if (PlatformMBeanUtil.JVM_MAJOR_VERSION > 6) { ...
public ModelNode correct(ModelNode newValue, ModelNode currentValue) { if (newValue.getType() != ModelType.LIST) { return newValue; } else { ModelNode correctValue = new ModelNode(); ...
public ModelNode correct(ModelNode newValue, ModelNode currentValue) { if (newValue.getType() != ModelType.LIST) { return newValue; } else { ModelNode correctValue = new ModelNode(); ...
void assignSlots(Collection<TopologyDetails> topologies, Collection<WorkerSlot> newSlots); package backtype.storm.scheduler; import java.util.Collection; import java.util.Map; public interface INimbus { void prepare(Map stormConf, String schedulerLocalDir); //used slots are slots that are currently assigned ...
void assignSlots(Collection<TopologyDetails> topologies, Collection<WorkerSlot> newSlots); package backtype.storm.scheduler; import java.util.Collection; import java.util.Map; public interface INimbus { void prepare(Map stormConf, String schedulerLocalDir); //used slots are slots that are currently assigned ...
public boolean match(HttpServletRequest request) { Set<T> conditions = getConditions(); if (conditions.isEmpty()) { return true; } for (T condition : conditions) { if (!condition.match(request)) { return false; } } return true; }
public boolean match(HttpServletRequest request) { Set<T> conditions = getConditions(); if (isEmpty()) { return true; } for (T condition : conditions) { if (!condition.match(request)) { return false; } } return true; }
public RealMatrix getInverse() { return solve(MatrixUtils.createRealIdentityMatrix(rDiag.length)); } }
public RealMatrix getInverse() { return solve(MatrixUtils.createRealIdentityMatrix(qrt[0].length)); } }
private void mainSort() { int i, j, ss, sb; int[] runningOrder = new int[256]; int[] copy = new int[256]; boolean[] bigDone = new boolean[256]; int c1, c2; int numQSorted; /* In the various block-sized structures, live data runs from 0 to ...
private void mainSort() { int i, j, ss, sb; int[] runningOrder = new int[256]; int[] copy = new int[256]; boolean[] bigDone = new boolean[256]; int c1, c2; int numQSorted; /* In the various block-sized structures, live data runs from 0 to ...
public void testWilcoxonSignedRankInputValidation() throws Exception { /* * Exact only for sample size <= 30 */ final double[] x1 = new double[30]; final double[] x2 = new double[31]; final double[] y1 = new double[30]; final double[] y2 = new double[31]; ...
public void testWilcoxonSignedRankInputValidation() throws Exception { /* * Exact only for sample size <= 30 */ final double[] x1 = new double[30]; final double[] x2 = new double[31]; final double[] y1 = new double[30]; final double[] y2 = new double[31]; ...
import org.jboss.as.patching.metadata.Patch; /* * JBoss, Home of Professional Open Source. * Copyright 2012, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; yo...
import org.jboss.as.patching.metadata.Patch; /* * JBoss, Home of Professional Open Source. * Copyright 2012, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; yo...
private void addRemoteInvocationServices(final OperationContext context, final List<ServiceController<?>> newControllers) { final LocalEjbReceiver localEjbReceiver = new LocalEjbReceiver(); newControllers.add(context.getServiceTarget().addService(LocalEjbReceiver.SERVICE_NAME, localEjbReceiver) ...
private void addRemoteInvocationServices(final OperationContext context, final List<ServiceController<?>> newControllers) { final LocalEjbReceiver localEjbReceiver = new LocalEjbReceiver(false); newControllers.add(context.getServiceTarget().addService(LocalEjbReceiver.SERVICE_NAME, localEjbReceiver)...
public void writeContent(XMLExtendedStreamWriter streamWriter) throws XMLStreamException { streamWriter.writeStartDocument(); streamWriter.writeStartElement(Element.DOMAIN.getLocalName()); hostModel.writeContent(streamWriter); streamWriter.writeEndDocument(); ...
public void writeContent(XMLExtendedStreamWriter streamWriter) throws XMLStreamException { streamWriter.writeStartDocument(); streamWriter.writeStartElement(Element.HOST.getLocalName()); hostModel.writeContent(streamWriter); streamWriter.writeEndDocument(); ...
public File getConfigurationFile(String relativePath) { File file = primary.getConfigurationFile(relativePath); return file != null ? file : secondary.getFile(relativePath); }
public File getConfigurationFile(String relativePath) { File file = primary.getConfigurationFile(relativePath); return file != null ? file : secondary.getConfigurationFile(relativePath); }
private void parseEviction(XMLExtendedStreamReader reader, ModelNode cache, List<ModelNode> operations) throws XMLStreamException { // ModelNode for the eviction add operation ModelNode evictionAddress = cache.get(ModelDescriptionConstants.OP_ADDR).clone() ; evictionAddress.add(ModelKeys.EVI...
private void parseEviction(XMLExtendedStreamReader reader, ModelNode cache, List<ModelNode> operations) throws XMLStreamException { // ModelNode for the eviction add operation ModelNode evictionAddress = cache.get(ModelDescriptionConstants.OP_ADDR).clone() ; evictionAddress.add(ModelKeys.EVI...
@Message(id = 10350, value = "Expected result from singleton provider only, but instead received %d results.") /* * JBoss, Home of Professional Open Source. * Copyright 2011, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full l...
@Message(id = 10350, value = "Expected result from singleton provider only, but instead received %d results.") /* * JBoss, Home of Professional Open Source. * Copyright 2011, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full l...
private void triggerAfterCompletionWithError(HttpServletRequest request, HttpServletResponse response, HandlerExecutionChain mappedHandler, Error error) throws Exception, ServletException { ServletException ex = new NestedServletException("Handler processing failed", error); if (mappedHandler != null) { map...
private void triggerAfterCompletionWithError(HttpServletRequest request, HttpServletResponse response, HandlerExecutionChain mappedHandler, Error error) throws Exception { ServletException ex = new NestedServletException("Handler processing failed", error); if (mappedHandler != null) { mappedHandler.trigger...
package org.springframework.ui.validation; /* * Copyright 2004-2009 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/lice...
package org.springframework.ui.validation; /* * Copyright 2004-2009 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/lice...
package org.springframework.ui.validation; /* * Copyright 2004-2009 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/lice...
package org.springframework.ui.validation; /* * Copyright 2004-2009 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/lice...
package org.springframework.ui.validation; /* * Copyright 2004-2009 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/lice...
package org.springframework.ui.validation; /* * Copyright 2004-2009 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/lice...
public void readElement(final XMLExtendedStreamReader reader, final ParseResult<Domain> value) throws XMLStreamException { // read attributes first // no required attributes final int count = reader.getAttributeCount(); for (int i = 0; i < count; i ++) { if (reader.getAtt...
public void readElement(final XMLExtendedStreamReader reader, final ParseResult<Domain> value) throws XMLStreamException { // read attributes first // no required attributes final int count = reader.getAttributeCount(); for (int i = 0; i < count; i ++) { if (reader.getAtt...
protected void populateModel(ModelNode operation, ModelNode model) throws OperationFailedException { log.info("Populating the model"); model.setEmptyObject(); model.get(ModelKeys.MAIL_SESSION); }
protected void populateModel(ModelNode operation, ModelNode model) throws OperationFailedException { //log.info("Populating the model"); model.setEmptyObject(); model.get(ModelKeys.MAIL_SESSION); }
public void testNoAuthSingleSignOn( @ArquillianResource(LogoutServlet.class) @OperateOnDeployment(DEPLOYMENT_1) URL baseURL1, @ArquillianResource(LogoutServlet.class) @OperateOnDeployment(DEPLOYMENT_2) URL baseURL2) throws Exception { log.info("+++ testNoAuthSingleSignOn"); S...
public void testNoAuthSingleSignOn( @ArquillianResource(LogoutServlet.class) @OperateOnDeployment(DEPLOYMENT_1) URL baseURL1, @ArquillianResource(LogoutServlet.class) @OperateOnDeployment(DEPLOYMENT_2) URL baseURL2) throws Exception { log.info("+++ testNoAuthSingleSignOn"); S...
public static void moveDirectory(final File srcDir, final File destDir) throws IOException { if (srcDir == null) { throw new NullPointerException("Source must not be null"); } if (destDir == null) { throw new NullPointerException("Destination must not be null"); ...
public static void moveDirectory(final File srcDir, final File destDir) throws IOException { if (srcDir == null) { throw new NullPointerException("Source must not be null"); } if (destDir == null) { throw new NullPointerException("Destination must not be null"); ...
public static Archive<?> getDeployment() { return ShrinkWrapUtils.createJavaArchive("demos/serviceloader-example.jar", ServiceLoaderTestCase.class.getPackage(), TestService.class.getPackage()); }
public static Archive<?> getDeployment() { return ShrinkWrapUtils.createJavaArchive("demos/serviceloader-example.jar", ServiceLoaderTestCase.class.getPackage(), TestService.class.getPackage(), ShrinkWrapUtils.class.getPackage()); }
public void testCannotCommitTransaction() throws Exception { TransactionAttribute txatt = new DefaultTransactionAttribute(); Method m = setNameMethod; MapTransactionAttributeSource tas = new MapTransactionAttributeSource(); tas.register(m, txatt); Method m2 = getNameMethod; // No attributes for m2 Mock...
public void testCannotCommitTransaction() throws Exception { TransactionAttribute txatt = new DefaultTransactionAttribute(); Method m = setNameMethod; MapTransactionAttributeSource tas = new MapTransactionAttributeSource(); tas.register(m, txatt); // Method m2 = getNameMethod; // No attributes for m2 M...
public void statusCodeAndReasonMessage() { Locale locale = Locale.CHINESE; LocaleContextHolder.setLocale(locale); try { StaticMessageSource messageSource = new StaticMessageSource(); messageSource.addMessage("gone.reason", locale, "Gone reason message"); exceptionResolver.setMessageSource(messageSource)...
public void statusCodeAndReasonMessage() { Locale locale = Locale.CHINESE; LocaleContextHolder.setLocale(locale); try { StaticMessageSource messageSource = new StaticMessageSource(); messageSource.addMessage("gone.reason", locale, "Gone reason message"); exceptionResolver.setMessageSource(messageSource)...
public void execute(OperationContext context, ModelNode ignored) throws OperationFailedException { final Resource resource = context.readResource(PathAddress.EMPTY_ADDRESS); final ModelNode model = resource.getModel(); validateAttributeCombinat...
public void execute(OperationContext context, ModelNode ignored) throws OperationFailedException { final Resource resource = context.readResource(PathAddress.EMPTY_ADDRESS); final ModelNode model = resource.getModel(); validateAttributeCombinat...
protected void executeRuntimeStep(final OperationContext context, final ModelNode operation) throws OperationFailedException { final ServiceName componentServiceName = componentServiceName(operation); final EJBComponent component = (EJBComponent) context.getServiceRegistry(false).getRequiredService(...
protected void executeRuntimeStep(final OperationContext context, final ModelNode operation) throws OperationFailedException { final ServiceName componentServiceName = componentServiceName(operation); final EJBComponent component = (EJBComponent) context.getServiceRegistry(false).getRequiredService(...
protected void executeRuntimeStep(OperationContext context, ModelNode operation) throws OperationFailedException { CollectionStatistics statistics = collectionStatistics(operation); if (statistics != null) { handle(statistics, context, operation.require(ModelDescriptionConstants.NAME).as...
protected void executeRuntimeStep(OperationContext context, ModelNode operation) throws OperationFailedException { CollectionStatistics statistics = collectionStatistics(operation); if (statistics != null) { handle(statistics, context, operation.require(ModelDescriptionConstants.NAME).as...
protected void executeRuntimeStep(OperationContext context, ModelNode operation) throws OperationFailedException { EntityStatistics statistics = entityStatistics(operation); if (statistics != null) { handle(statistics, context, operation.require(ModelDescriptionConstants.NAME).asString()...
protected void executeRuntimeStep(OperationContext context, ModelNode operation) throws OperationFailedException { EntityStatistics statistics = entityStatistics(operation); if (statistics != null) { handle(statistics, context, operation.require(ModelDescriptionConstants.NAME).asString()...
protected void executeRuntimeStep(final OperationContext context, final ModelNode operation) throws OperationFailedException { final PathAddress address = PathAddress.pathAddress(operation.get(ModelDescriptionConstants.OP_ADDR)); final String puResourceName = address.getLastE...
protected void executeRuntimeStep(final OperationContext context, final ModelNode operation) throws OperationFailedException { final PathAddress address = PathAddress.pathAddress(operation.get(ModelDescriptionConstants.OP_ADDR)); final String puResourceName = address.getLastE...
protected void executeRuntimeStep(OperationContext context, ModelNode operation) throws OperationFailedException { handleQueryStatistics(context, operation); context.completeStep(); }
protected void executeRuntimeStep(OperationContext context, ModelNode operation) throws OperationFailedException { handleQueryStatistics(context, operation); context.stepCompleted(); }
protected void executeRuntimeStep(OperationContext context, ModelNode operation) throws OperationFailedException { SecondLevelCacheStatistics statistics = getSecondLevelCacheStatistics(operation); if (statistics != null) { handle(statistics, context, operation.require(ModelDescriptionCon...
protected void executeRuntimeStep(OperationContext context, ModelNode operation) throws OperationFailedException { SecondLevelCacheStatistics statistics = getSecondLevelCacheStatistics(operation); if (statistics != null) { handle(statistics, context, operation.require(ModelDescriptionCon...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { PathElement pe = PathAddress.pathAddress(operation.require(ModelDescriptionConstants.OP_ADDR)).getLastElement(); ModelNode model = new ModelNode(); contentAttribute.validateAndSet(operation...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { PathElement pe = PathAddress.pathAddress(operation.require(ModelDescriptionConstants.OP_ADDR)).getLastElement(); ModelNode model = new ModelNode(); contentAttribute.validateAndSet(operation...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { final Resource resource = context.readResourceForUpdate(PathAddress.EMPTY_ADDRESS); final byte[] oldHash = ManagedDMRContentResourceDefinition.HASH.validateOperation(operation).asBytes(); fi...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { final Resource resource = context.readResourceForUpdate(PathAddress.EMPTY_ADDRESS); final byte[] oldHash = ManagedDMRContentResourceDefinition.HASH.validateOperation(operation).asBytes(); fi...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { PathElement pe = PathAddress.pathAddress(operation.require(ModelDescriptionConstants.OP_ADDR)).getLastElement(); ModelNode hashNode = HASH.validateOperation(operation); byte[] hash = hashNo...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { PathElement pe = PathAddress.pathAddress(operation.require(ModelDescriptionConstants.OP_ADDR)).getLastElement(); ModelNode hashNode = HASH.validateOperation(operation); byte[] hash = hashNo...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { ModelNode model = new ModelNode(); ModelNode synthOp = new ModelNode(); synthOp.get(contentAttribute.getName()).set(operation.get(ModelDescriptionConstants.VALUE)); contentAttribute....
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { ModelNode model = new ModelNode(); ModelNode synthOp = new ModelNode(); synthOp.get(contentAttribute.getName()).set(operation.get(ModelDescriptionConstants.VALUE)); contentAttribute....
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { final ModelNode result = context.getResult(); for (String attribute : PlatformMBeanConstants.COMPILATION_READ_ATTRIBUTES) { final ModelNode store = result.get(attribute); tr...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { final ModelNode result = context.getResult(); for (String attribute : PlatformMBeanConstants.COMPILATION_READ_ATTRIBUTES) { final ModelNode store = result.get(attribute); tr...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { ManagementFactory.getMemoryMXBean().gc(); context.completeStep(); }
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { ManagementFactory.getMemoryMXBean().gc(); context.completeStep(OperationContext.RollbackHandler.NOOP_ROLLBACK_HANDLER); }
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { final String memPoolName = PathAddress.pathAddress(operation.require(ModelDescriptionConstants.OP_ADDR)).getLastElement().getValue(); MemoryPoolMXBean memoryPoolMXBean = MemoryPoolMXBeanAttributeHa...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { final String memPoolName = PathAddress.pathAddress(operation.require(ModelDescriptionConstants.OP_ADDR)).getLastElement().getValue(); MemoryPoolMXBean memoryPoolMXBean = MemoryPoolMXBeanAttributeHa...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { try { getMemoryPoolMXBean(operation).resetPeakUsage(); } catch (SecurityException e) { throw new OperationFailedException(new ModelNode().set(e.toString())); } ...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { try { getMemoryPoolMXBean(operation).resetPeakUsage(); } catch (SecurityException e) { throw new OperationFailedException(new ModelNode().set(e.toString())); } ...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { final ModelNode result = context.getResult(); for (String attribute : PlatformMBeanConstants.OPERATING_SYSTEM_READ_ATTRIBUTES) { final ModelNode store = result.get(attribute); ...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { final ModelNode result = context.getResult(); for (String attribute : PlatformMBeanConstants.OPERATING_SYSTEM_READ_ATTRIBUTES) { final ModelNode store = result.get(attribute); ...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { /** * Implementation note: This implementation uses indirect access to the mbean (i.e. via the * {@code MBeanServerConnection} API) in order to avoid adding a compile time dependency on JD...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { /** * Implementation note: This implementation uses indirect access to the mbean (i.e. via the * {@code MBeanServerConnection} API) in order to avoid adding a compile time dependency on JD...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { /** * Implementation note: This implementation uses indirect access to the mbean (i.e. via the * {@code MBeanServerConnection} API) in order to avoid adding a compile time dependency on JD...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { /** * Implementation note: This implementation uses indirect access to the mbean (i.e. via the * {@code MBeanServerConnection} API) in order to avoid adding a compile time dependency on JD...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { final ModelNode result = context.getResult(); for (String attribute : PlatformMBeanConstants.RUNTIME_READ_ATTRIBUTES) { final ModelNode store = result.get(attribute); try { ...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { final ModelNode result = context.getResult(); for (String attribute : PlatformMBeanConstants.RUNTIME_READ_ATTRIBUTES) { final ModelNode store = result.get(attribute); try { ...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { validator.validate(operation); try { long id = operation.require(PlatformMBeanConstants.ID).asLong(); context.getResult().set(ManagementFactory.getThreadMXBean().getThreadCp...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { validator.validate(operation); try { long id = operation.require(PlatformMBeanConstants.ID).asLong(); context.getResult().set(ManagementFactory.getThreadMXBean().getThreadCp...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { lockedValidator.validate(operation); ThreadMXBean mbean = ManagementFactory.getThreadMXBean(); try { ThreadInfo[] infos = mbean.dumpAllThreads( ...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { lockedValidator.validate(operation); ThreadMXBean mbean = ManagementFactory.getThreadMXBean(); try { ThreadInfo[] infos = mbean.dumpAllThreads( ...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { try { long[] ids = ManagementFactory.getThreadMXBean().findDeadlockedThreads(); final ModelNode result = context.getResult(); if (ids != null) { result.se...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { try { long[] ids = ManagementFactory.getThreadMXBean().findDeadlockedThreads(); final ModelNode result = context.getResult(); if (ids != null) { result.se...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { try { long[] ids = ManagementFactory.getThreadMXBean().findMonitorDeadlockedThreads(); final ModelNode result = context.getResult(); if (ids != null) { re...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { try { long[] ids = ManagementFactory.getThreadMXBean().findMonitorDeadlockedThreads(); final ModelNode result = context.getResult(); if (ids != null) { re...