buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
public static void invokeValidator(Validator validator, Object obj, Errors errors) {
invokeValidator(validator, obj, errors, (Class[]) null);
}
| public static void invokeValidator(Validator validator, Object obj, Errors errors) {
invokeValidator(validator, obj, errors, (Object[]) null);
}
|
public void testIsNotIgnoredDoesntIgnoreUnspecifiedBeanMethods() throws Exception {
final String beanKey = "myTestBean";
MethodExclusionMBeanInfoAssembler assembler = new MethodExclusionMBeanInfoAssembler();
Properties ignored = new Properties();
ignored.setProperty(beanKey, "dontExposeMe,setSuperman");
asse... | public void testIsNotIgnoredDoesntIgnoreUnspecifiedBeanMethods() throws Exception {
final String beanKey = "myTestBean";
MethodExclusionMBeanInfoAssembler assembler = new MethodExclusionMBeanInfoAssembler();
Properties ignored = new Properties();
ignored.setProperty(beanKey, "dontExposeMe,setSuperman");
asse... |
public void testMethod() throws Exception {
String str = new ToStringCreator(this).append("myMethod", this.getClass().getMethod("testMethod", null))
.toString();
assertEquals("[ToStringCreatorTests@" + ObjectUtils.getIdentityHexString(this)
+ " myMethod = testMethod@ToStringCreatorTests]", str);
}
| public void testMethod() throws Exception {
String str = new ToStringCreator(this).append("myMethod", this.getClass().getMethod("testMethod"))
.toString();
assertEquals("[ToStringCreatorTests@" + ObjectUtils.getIdentityHexString(this)
+ " myMethod = testMethod@ToStringCreatorTests]", str);
}
|
private ResourceTransformationContext createContext(final TransformationTarget target) {
return Transformers.Factory.create(target, resourceRoot, resourceRegistration, ExpressionResolver.TEST_RESOLVER, RunningMode.NORMAL, ProcessType.STANDALONE_SERVER);
}
| private ResourceTransformationContext createContext(final TransformationTarget target) {
return Transformers.Factory.create(target, resourceRoot, resourceRegistration, ExpressionResolver.DEFAULT, RunningMode.NORMAL, ProcessType.STANDALONE_SERVER);
}
|
public void setUp() throws Exception {
builder = new CSVFormatBuilder('+', '!', null, '#', '!', true, true, CRLF, null);
}
| public void setUp() throws Exception {
builder = new CSVFormatBuilder('+', Character.valueOf('!'), null, Character.valueOf('#'), Character.valueOf('!'), true, true, CRLF, null);
}
|
private static int[][][] compileMultiplicationIndirection(final int parameters, final int order,
final DSCompiler valueCompiler,
final DSCompiler derivativeCompiler,
... | private static int[][][] compileMultiplicationIndirection(final int parameters, final int order,
final DSCompiler valueCompiler,
final DSCompiler derivativeCompiler,
... |
private static List<Pair<Double, MultivariateNormalDistribution>> createComponents(double[] weights,
double[][] means,
double[][][] covariance... | private static List<Pair<Double, MultivariateNormalDistribution>> createComponents(double[] weights,
double[][] means,
double[][][] covariance... |
public List<Pair<Double, T>> getComponents() {
final List<Pair<Double, T>> list = new ArrayList<Pair<Double, T>>();
for (int i = 0; i < weight.length; i++) {
list.add(new Pair<Double, T>(weight[i], distribution.get(i)));
}
return list;
}
| public List<Pair<Double, T>> getComponents() {
final List<Pair<Double, T>> list = new ArrayList<Pair<Double, T>>(weight.length);
for (int i = 0; i < weight.length; i++) {
list.add(new Pair<Double, T>(weight[i], distribution.get(i)));
}
return list;
}
|
public static MixtureMultivariateNormalDistribution estimate(final double[][] data,
final int numComponents)
throws NotStrictlyPositiveException,
DimensionMismatchException {
if (data.length < 2) {
throw new ... | public static MixtureMultivariateNormalDistribution estimate(final double[][] data,
final int numComponents)
throws NotStrictlyPositiveException,
DimensionMismatchException {
if (data.length < 2) {
throw new ... |
public List<Segment> getSegments() {
final List<Interval> list = remainingRegion.asList();
final List<Segment> segments = new ArrayList<Segment>();
for (final Interval interval : list) {
final Vector3D start = line.toSpace(new Vector1D(interval.getInf()));
final Vec... | public List<Segment> getSegments() {
final List<Interval> list = remainingRegion.asList();
final List<Segment> segments = new ArrayList<Segment>(list.size());
for (final Interval interval : list) {
final Vector3D start = line.toSpace(new Vector1D(interval.getInf()));
... |
public List<Segment> getSegments() {
final Line line = (Line) getHyperplane();
final List<Interval> list = ((IntervalsSet) getRemainingRegion()).asList();
final List<Segment> segments = new ArrayList<Segment>();
for (final Interval interval : list) {
final Vector2D star... | public List<Segment> getSegments() {
final Line line = (Line) getHyperplane();
final List<Interval> list = ((IntervalsSet) getRemainingRegion()).asList();
final List<Segment> segments = new ArrayList<Segment>(list.size());
for (final Interval interval : list) {
final Ve... |
public Collection<EventHandler> getEventHandlers() {
final List<EventHandler> list = new ArrayList<EventHandler>();
for (EventState state : eventsStates) {
list.add(state.getEventHandler());
}
return Collections.unmodifiableCollection(list);
}
| public Collection<EventHandler> getEventHandlers() {
final List<EventHandler> list = new ArrayList<EventHandler>(eventsStates.size());
for (EventState state : eventsStates) {
list.add(state.getEventHandler());
}
return Collections.unmodifiableCollection(list);
}
|
public List<LinearConstraint> normalizeConstraints(Collection<LinearConstraint> originalConstraints) {
List<LinearConstraint> normalized = new ArrayList<LinearConstraint>();
for (LinearConstraint constraint : originalConstraints) {
normalized.add(normalize(constraint));
}
... | public List<LinearConstraint> normalizeConstraints(Collection<LinearConstraint> originalConstraints) {
List<LinearConstraint> normalized = new ArrayList<LinearConstraint>(originalConstraints.size());
for (LinearConstraint constraint : originalConstraints) {
normalized.add(normalize(const... |
private void print(final CharSequence value, final int offset, final int len) throws IOException {
if (format.isEncapsulating()) {
printAndEncapsulate(value, offset, len);
} else if (format.isEscaping()) {
printAndEscape(value, offset, len);
} else {
print... | private void print(final CharSequence value, final int offset, final int len) throws IOException {
if (format.isQuoting()) {
printAndEncapsulate(value, offset, len);
} else if (format.isEscaping()) {
printAndEscape(value, offset, len);
} else {
printDelimi... |
protected GenericConverter getDefaultConverter(TypeDescriptor sourceType, TypeDescriptor targetType) {
return new MappingConverter(new SpelMapper());
}
| protected GenericConverter getDefaultConverter(TypeDescriptor sourceType, TypeDescriptor targetType) {
return new MappingConverter(new SpelMapper(), null);
}
|
public interface RealFieldElement<T> extends FieldElement<T> {
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You un... | public interface RealFieldElement<T> extends FieldElement<T> {
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You un... |
public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("/resources/**")
.addResourceLocations("classpath:org/springframework/web/servlet/resource/test/")
.addVersionHash("/**");
}
}
| public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("/resources/**")
.addResourceLocations("classpath:org/springframework/web/servlet/resource/test/")
.addContentVersionStrategy("/**");
}
}
|
public static void beforeClass() {
MixedDomainTestSuite.getSupport(SimpleMixedDomain_7_1_2_Final_TestCase.class);
}
| public static void beforeClass() {
MixedDomainTestSuite.getSupport(MixedDomain_7_1_2_Final_TestSuite.class);
}
|
public static void beforeClass() {
MixedDomainTestSuite.getSupport(SimpleMixedDomain_7_1_3_Final_TestCase.class);
}
| public static void beforeClass() {
MixedDomainTestSuite.getSupport(MixedDomain_7_1_3_Final_TestSuite.class);
}
|
public void recordSubsystemVersions(String moduleName, ModelNode subsystems) {
final Map<String, SubsystemInformation> subsystemsInfo = getAvailableSubsystems(moduleName);
if(subsystemsInfo != null && ! subsystemsInfo.isEmpty()) {
for(final Map.Entry<String, SubsystemInformation> entry :... | public void recordSubsystemVersions(String moduleName, ModelNode subsystems) {
final Map<String, SubsystemInformation> subsystemsInfo = getAvailableSubsystems(moduleName);
if(subsystemsInfo != null && ! subsystemsInfo.isEmpty()) {
for(final Map.Entry<String, SubsystemInformation> entry :... |
public TransformedOperation transformOperation(TransformationContext context, PathAddress address, ModelNode operation) throws OperationFailedException {
final ModelNode transformedOp;
if (!operation.has(attributeName)) {
transformedOp = operation;
} else if ... | public TransformedOperation transformOperation(TransformationContext context, PathAddress address, ModelNode operation) throws OperationFailedException {
final ModelNode transformedOp;
if (!operation.has(attributeName)) {
transformedOp = operation;
} else if ... |
protected void doFilterInternal(
HttpServletRequest request, HttpServletResponse response, FilterChain filterChain)
throws ServletException, IOException {
AsyncExecutionChain chain = AsyncExecutionChain.getForCurrentRequest(request);
SessionFactory sessionFactory = lookupSessionFactory(request);
boolean ... | protected void doFilterInternal(
HttpServletRequest request, HttpServletResponse response, FilterChain filterChain)
throws ServletException, IOException {
AsyncExecutionChain chain = AsyncExecutionChain.getForCurrentRequest(request);
SessionFactory sessionFactory = lookupSessionFactory(request);
boolean ... |
public static final TypeDescriptor NULL = new TypeDescriptor();
/** Constant defining a TypeDescriptor for 'unknown type' */
public static final TypeDescriptor UNKNOWN = new TypeDescriptor(Object.class);
| public static final TypeDescriptor NULL = new TypeDescriptor();
/** Constant defining a TypeDescriptor for 'unknown type' */
private static final TypeDescriptor UNKNOWN = new TypeDescriptor(Object.class);
|
public void testAddDsAndTestConnection() throws Exception {
final ModelNode address = new ModelNode();
address.add("subsystem", "datasources");
address.add("data-source", "MySqlDs_Pool");
address.protect();
final ModelNode operation = new ModelNode();
operation.get(... | public void testAddDsAndTestConnection() throws Exception {
final ModelNode address = new ModelNode();
address.add("subsystem", "datasources");
address.add("data-source", "MySqlDs_Pool");
address.protect();
final ModelNode operation = new ModelNode();
operation.get(... |
public String getComponentId(int taskId) {
if(taskId==Constants.SYSTEM_TASK_ID) {
return Constants.SYSTEM_COMPONENT_ID;
} else {
return _taskToComponent.get(taskId);
}
}
| public String getComponentId(int taskId) {
if(taskId==-1) {
return Constants.SYSTEM_COMPONENT_ID;
} else {
return _taskToComponent.get(taskId);
}
}
|
public interface TrivariateFunction {
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, V... | public interface TrivariateFunction {
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, V... |
public Proxy(ModelNode operation) throws OperationFailedException {
List<Property> list = operation.asPropertyList();
Iterator<Property> it = list.iterator();
host = null;
port = 0;
while (it.hasNext()) {
Property prop = it.next();
if (prop.getName().e... | public Proxy(ModelNode operation) throws OperationFailedException {
List<Property> list = operation.asPropertyList();
Iterator<Property> it = list.iterator();
host = null;
port = 0;
while (it.hasNext()) {
Property prop = it.next();
if (prop.getName().e... |
public void configure(final DeploymentPhaseContext context, final ComponentConfiguration componentConfiguration, final ViewDescription description, final ViewConfiguration configuration) throws DeploymentUnitProcessingException {
for (final Method method : configuration.getProxyFactory().get... | public void configure(final DeploymentPhaseContext context, final ComponentConfiguration componentConfiguration, final ViewDescription description, final ViewConfiguration configuration) throws DeploymentUnitProcessingException {
for (final Method method : configuration.getProxyFactory().get... |
public void start(StartContext context) throws StartException {
String pathname = "file://RaActivator" + deploymentName;
final ServiceContainer container = context.getController().getServiceContainer();
CommonDeployment deploymentMD;
try {
ResourceAdapterActivator activ... | public void start(StartContext context) throws StartException {
String pathname = "file://RaActivator" + deploymentName;
final ServiceContainer container = context.getController().getServiceContainer();
CommonDeployment deploymentMD;
try {
ResourceAdapterActivator activ... |
public static void addService(final ServiceTarget serviceTarget, final String name, final String relativeTo, final String path,
final Integer scanInterval, TimeUnit unit, final Boolean autoDeployZip, final Boolean autoDeployExploded, final Boolean scanEnabled, final Long deploymentTimeout) {
fin... | public static void addService(final ServiceTarget serviceTarget, final String name, final String relativeTo, final String path,
final Integer scanInterval, TimeUnit unit, final Boolean autoDeployZip, final Boolean autoDeployExploded, final Boolean scanEnabled, final Long deploymentTimeout) {
fin... |
public int eventOccurred(double t, double[] y, boolean increasing) {
return CONTINUE;
}
};
final double tolerance = 0.1;
EventState es = new EventState(closeEventsGenerator, 1.5 * gap,
tolerance, 10,
... | public int eventOccurred(double t, double[] y, boolean increasing) {
return CONTINUE;
}
};
final double tolerance = 0.1;
EventState es = new EventState(closeEventsGenerator, 1.5 * gap,
tolerance, 100,
... |
public CreateJmsQueueHandler() {
super("create-jms-queue", true);
}
| public CreateJmsQueueHandler() {
super("create-jms-queue", true, new SimpleTabCompleter(new String[]{"name=", "entries=", "selector=", "durable=", "--help"}));
}
|
package org.jboss.as.protocol;
/*
* 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 can redistri... | package org.jboss.as.protocol;
/*
* 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 can redistri... |
package org.jboss.as.protocol;
/*
* 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 can redistri... | package org.jboss.as.protocol;
/*
* 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 can redistri... |
@Message(id = 14101, value = "Failed to find SFSB instance with session ID %s in cache")
/*
*
* * 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 listing ... | @Message(id = 14101, value = "Failed to find SFSB instance with session ID %s in cache")
/*
*
* * 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 listing ... |
protected EjbDeploymentInformation findEJB(final String appName, final String moduleName, final String distinctName, final String beanName) {
final DeploymentModuleIdentifier ejbModule = new DeploymentModuleIdentifier(appName, moduleName, distinctName);
final Map<DeploymentModuleIdentifier, ModuleDe... | protected EjbDeploymentInformation findEJB(final String appName, final String moduleName, final String distinctName, final String beanName) {
final DeploymentModuleIdentifier ejbModule = new DeploymentModuleIdentifier(appName, moduleName, distinctName);
final Map<DeploymentModuleIdentifier, ModuleDe... |
public static boolean isWarDeployment(final DeploymentUnit context) {
/*
* 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.
*
* ... | public static boolean isWarDeployment(final DeploymentUnit context) {
final Boolean result = context.getAttachment(Attachments.WAR_DEPLOYMENT_MARKER);
return result != null && result;
}
} |
public void run() {
try {
applicationClientDeploymentServiceInjectedValue.getValue().getDeploymentCompleteLatch().await();
mainMethod.invoke(null,new Object[] { parameters});
} catch (InvocationTargetException e) {
l... | public void run() {
try {
applicationClientDeploymentServiceInjectedValue.getValue().getDeploymentCompleteLatch().await();
mainMethod.invoke(null,new Object[] { parameters});
} catch (InvocationTargetException e) {
l... |
protected void execute(DeploymentProcessorTarget processorTarget) {
// set Hibernate persistence provider as the default provider
javax.persistence.spi.PersistenceProviderResolverHolder.setPersistenceProviderResolver(
PersistenceProviderResolverImpl.g... | protected void execute(DeploymentProcessorTarget processorTarget) {
// set Hibernate persistence provider as the default provider
javax.persistence.spi.PersistenceProviderResolverHolder.setPersistenceProviderResolver(
PersistenceProviderResolverImpl.g... |
public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) {
e.getCause().printStackTrace();
server.closeChannel(e.getChannel());
}
| public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) {
LOG.error("server errors in handling the request", e.getCause());
server.closeChannel(e.getChannel());
}
|
protected void tearDown() throws Exception {
FileUtils.deleteDirectory(getTestDirectory());
// reset file cleaner class, so as not to break other tests
/**
* The following block of code can possibly be removed when the
* deprecated {@link FileCleaner} is gone. The... | protected void tearDown() throws Exception {
FileUtils.deleteDirectory(getTestDirectory());
// reset file cleaner class, so as not to break other tests
/**
* The following block of code can possibly be removed when the
* deprecated {@link FileCleaner} is gone. The... |
static final Character DOUBLE_QUOTE_CHAR = Character.valueOf('"');
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to Yo... | static final Character DOUBLE_QUOTE_CHAR = Character.valueOf('"');
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to Yo... |
public static final SimpleAttributeDefinition INSTANCE_ACQUISITION_TIMEOUT_UNIT =
new SimpleAttributeDefinitionBuilder(EJB3SubsystemModel.INSTANCE_ACQUISITION_TIMEOUT_UNIT, ModelType.STRING, true)
.setXmlName(EJB3SubsystemXMLAttribute.INSTANCE_AQUISITION_TIMEOUT_UNIT.getLocalName())
... | public static final SimpleAttributeDefinition INSTANCE_ACQUISITION_TIMEOUT_UNIT =
new SimpleAttributeDefinitionBuilder(EJB3SubsystemModel.INSTANCE_ACQUISITION_TIMEOUT_UNIT, ModelType.STRING, true)
.setXmlName(EJB3SubsystemXMLAttribute.INSTANCE_AQUISITION_TIMEOUT_UNIT.getLocalName())
... |
public void processDeployment(DeploymentUnitContext context) throws DeploymentUnitProcessingException {
if(context.getAttachment(MODULE_ATTACHMENT_KEY) != null)
return; // Skip it if someone else attached a module
final ModuleConfig moduleConfig = context.getAttachment(ModuleConfig.ATTA... | public void processDeployment(DeploymentUnitContext context) throws DeploymentUnitProcessingException {
if(context.getAttachment(MODULE_ATTACHMENT_KEY) != null)
return; // Skip it if someone else attached a module
final ModuleConfig moduleConfig = context.getAttachment(ModuleConfig.ATTA... |
package org.jboss.as.test.smoke.jsr88;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2008, Red Hat Middleware LLC, 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;... | package org.jboss.as.test.smoke.jsr88;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2008, Red Hat Middleware LLC, 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;... |
package org.jboss.as.test.smoke.jsr88;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2008, Red Hat Middleware LLC, 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;... | package org.jboss.as.test.smoke.jsr88;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2008, Red Hat Middleware LLC, 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;... |
public Chromosome mutate(Chromosome original) {
if (!(original instanceof BinaryChromosome)) {
throw new MathIllegalArgumentException(LocalizedFormats.INVALID_BINARY_CHROMOSOME);
}
BinaryChromosome origChrom = (BinaryChromosome) original;
List<Integer> newRepr = new Arra... | public Chromosome mutate(Chromosome original) throws MathIllegalArgumentException {
if (!(original instanceof BinaryChromosome)) {
throw new MathIllegalArgumentException(LocalizedFormats.INVALID_BINARY_CHROMOSOME);
}
BinaryChromosome origChrom = (BinaryChromosome) original;
... |
public GeneticAlgorithm(final CrossoverPolicy crossoverPolicy,
final double crossoverRate,
final MutationPolicy mutationPolicy,
final double mutationRate,
final SelectionPolicy selectionPolicy) {
... | public GeneticAlgorithm(final CrossoverPolicy crossoverPolicy,
final double crossoverRate,
final MutationPolicy mutationPolicy,
final double mutationRate,
final SelectionPolicy selectionPolicy) throws Out... |
public Chromosome mutate(final Chromosome original) {
if (!(original instanceof RandomKey<?>)) {
throw new MathIllegalArgumentException(LocalizedFormats.RANDOMKEY_MUTATION_WRONG_CLASS,
original.getClass().getSimpleName());
}
Ran... | public Chromosome mutate(final Chromosome original) throws MathIllegalArgumentException {
if (!(original instanceof RandomKey<?>)) {
throw new MathIllegalArgumentException(LocalizedFormats.RANDOMKEY_MUTATION_WRONG_CLASS,
original.getClass().getS... |
public V resolveRef(K ref) {
if (ref == null)
throw new IllegalArgumentException("ref is null");
synchronized (map) {
return null;
}
}
| public V resolveRef(K ref) {
if (ref == null)
throw new IllegalArgumentException("ref is null");
synchronized (map) {
return map.get(ref);
}
}
|
public Collection execute(Method unused, Object[] args, CmpEntityBeanContext ctx, EntityProxyFactory factory) throws FinderException {
try {
// invoke implementation method on ejb instance
Object value = finderMethod.invoke(ctx.getComponent().getCache().get(ctx.getPrimaryKey()), args... | public Collection execute(Method unused, Object[] args, CmpEntityBeanContext ctx, EntityProxyFactory factory) throws FinderException {
try {
// invoke implementation method on ejb instance
Object value = finderMethod.invoke(ctx.getComponent().getCache().get(ctx.getPrimaryKey()), args... |
public Collection execute(Method finderMethod, Object[] args, CmpEntityBeanContext ctx, EntityProxyFactory factory) throws FinderException {
// Check in readahead cache.
if (manager.getReadAheadCache().getPreloadDataMap(args[0], false) != null) {
// copy pk [JBAS-1361]
Object... | public Collection execute(Method finderMethod, Object[] args, CmpEntityBeanContext ctx, EntityProxyFactory factory) throws FinderException {
// Check in readahead cache.
if (manager.getReadAheadCache().getPreloadDataMap(args[0], false) != null) {
// copy pk [JBAS-1361]
Object... |
result.add(id != null ? factory.getEntityObject(id) : null);
/*
* 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 listing of individual contributors.
*
* This is f... | result.add(id != null ? factory.getEntityObject(id) : null);
/*
* 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 listing of individual contributors.
*
* This is f... |
public void shutdown() {
synchronized (lock) {
if (shutdown) {
return;
}
ROOT_LOGGER.shuttingDown();
shutdown = true;
// In order to do a controlled shutdown we stop the host controller first
// it will stop all managed... | public void shutdown() {
synchronized (lock) {
if (shutdown) {
return;
}
ROOT_LOGGER.shuttingDown();
shutdown = true;
// In order to do a controlled shutdown we stop the host controller first
// it will stop all managed... |
public void testTailer() throws Exception {
// Create & start the Tailer
final long delayMillis = 50;
final File file = new File(getTestDirectory(), "tailer1-test.txt");
createFile(file, 0);
final TestTailerListener listener = new TestTailerListener();
final String o... | public void testTailer() throws Exception {
// Create & start the Tailer
final long delayMillis = 50;
final File file = new File(getTestDirectory(), "tailer1-test.txt");
createFile(file, 0);
final TestTailerListener listener = new TestTailerListener();
final String o... |
private PicketLinkType createPicketLinkType(C configuration) {
PicketLinkType picketLinkType = new PicketLinkType();
picketLinkType.setStsType(createSTSType());
picketLinkType.setHandlers(new Handlers());
picketLinkType.setEnableAudit(true);
picketLinkType.setIdpOrSP((Provi... | private PicketLinkType createPicketLinkType(C configuration) {
PicketLinkType picketLinkType = new PicketLinkType();
picketLinkType.setStsType(createSTSType());
picketLinkType.setHandlers(new Handlers());
picketLinkType.setEnableAudit(true);
picketLinkType.setIdpOrSP((Provi... |
protected void execute(DeploymentProcessorTarget processorTarget) {
processorTarget.addDeploymentProcessor(OSGiExtension.SUBSYSTEM_NAME, Phase.STRUCTURE, Phase.STRUCTURE_OSGI_MANIFEST, new OSGiManifestStructureProcessor());
processorTarget.addDeploymentProcessor(OSGiExtension... | protected void execute(DeploymentProcessorTarget processorTarget) {
processorTarget.addDeploymentProcessor(OSGiExtension.SUBSYSTEM_NAME, Phase.STRUCTURE, Phase.STRUCTURE_OSGI_MANIFEST, new OSGiManifestStructureProcessor());
processorTarget.addDeploymentProcessor(OSGiExtension... |
private final char mapNullToDisabled(final Character c) {
return c == null ? DISABLED : c.charValue();
}
long getLineNumber() {
return in.getLineNumber();
}
// TODO escape handling needs more work
/**
* Handle an escape sequence.
* The current character must be the es... | private final char mapNullToDisabled(final Character c) {
return c == null ? DISABLED : c.charValue();
}
long getLineNumber() {
return in.getLineNumber();
}
// TODO escape handling needs more work
/**
* Handle an escape sequence.
* The current character must be the es... |
public void addStep(final ModelNode response, final ModelNode operation, final NewStepHandler step, final Stage stage) throws IllegalArgumentException {
assert Thread.currentThread() == initiatingThread;
if (response == null) {
throw new IllegalArgumentException("response is null");
... | public void addStep(final ModelNode response, final ModelNode operation, final NewStepHandler step, final Stage stage) throws IllegalArgumentException {
assert Thread.currentThread() == initiatingThread;
if (response == null) {
throw new IllegalArgumentException("response is null");
... |
private void schedule(Cache<BeanKey<I>, BeanEntry<G>> cache, Locality oldLocality, Locality newLocality) {
// Iterate over sessions in memory
for (Object key: cache.getAdvancedCache().withFlags(Flag.CACHE_MODE_LOCAL, Flag.SKIP_CACHE_LOAD, Flag.SKIP_LOCKING).keySet()) {
// Cache may conta... | private void schedule(Cache<BeanKey<I>, BeanEntry<G>> cache, Locality oldLocality, Locality newLocality) {
// Iterate over sessions in memory
for (Object key: cache.getAdvancedCache().withFlags(Flag.CACHE_MODE_LOCAL, Flag.SKIP_CACHE_LOAD, Flag.SKIP_LOCKING).keySet()) {
// Cache may conta... |
public Object writeReplace() throws ObjectStreamException {
return new SerializedStatefulSessionComponent(getInstance(), id, getComponent().getCreateServiceName().getCanonicalName(), serializableInterceptors);
}
| public Object writeReplace() throws ObjectStreamException {
return new SerializedStatefulSessionComponent(getInstanceReference().get(), id, getComponent().getCreateServiceName().getCanonicalName(), serializableInterceptors);
}
|
private Object lookUpJNDI(String contextName) {
Object result = null;
try {
Context ctx = new InitialContext();
if (contextName.startsWith(SecurityConstants.JAAS_CONTEXT_ROOT))
result = ctx.lookup(contextName);
else
result = ctx.loo... | private Object lookUpJNDI(String contextName) {
Object result = null;
try {
Context ctx = new InitialContext();
if (contextName.startsWith(SecurityConstants.JAAS_CONTEXT_ROOT))
result = ctx.lookup(contextName);
else
result = ctx.loo... |
public void buildMessage() {
MessageResolver resolver = builder.severity(Severity.ERROR).code("invalidFormat").resolvableArg("label", "mathForm.decimalField")
.arg("format", "#,###.##").defaultText("Field must be in format #,###.##").build();
MockMessageSource messageSource = new MockMessageSource();
message... | public void buildMessage() {
MessageResolver resolver = builder.severity(Severity.ERROR).code("invalidFormat").arg("label", new ResolvableArgument("mathForm.decimalField"))
.arg("format", "#,###.##").defaultText("Field must be in format #,###.##").build();
MockMessageSource messageSource = new MockMessageSourc... |
Cache getCache(String name);
/*
* Copyright 2010-2011 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/licenses/LICENSE-2... | Cache getCache(String name);
/*
* Copyright 2010-2011 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/licenses/LICENSE-2... |
Collection<Cache> getCaches();
/*
* Copyright 2010-2011 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/licenses/LICENSE... | Collection<Cache> getCaches();
/*
* Copyright 2010-2011 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/licenses/LICENSE... |
private Map<Method, Method> targetMethodCache = new ConcurrentHashMap<Method, Method>();
EvaluationContext createEvaluationContext(Collection<Cache<?, ?>> caches, Method method, Object[] args,
Object target, Class<?> targetClass) {
DefaultCacheExpressionRootObject rootObject = new DefaultCacheExpressionRootObje... | private Map<Method, Method> targetMethodCache = new ConcurrentHashMap<Method, Method>();
EvaluationContext createEvaluationContext(Collection<Cache> caches, Method method, Object[] args,
Object target, Class<?> targetClass) {
DefaultCacheExpressionRootObject rootObject = new DefaultCacheExpressionRootObject(cac... |
private static void assertFileContains(File f, String string) throws Exception {
String content = new Scanner(f, "UTF-8").useDelimiter("\\Z").next();
assertTrue(string + " not found in " + f + " with content=" + content, content.contains(string));
}
static void assertPatchHasBeenApplied(Pat... | private static void assertFileContains(File f, String string) throws Exception {
String content = new Scanner(f, "UTF-8").useDelimiter("\\Z").next();
assertTrue(string + " not found in " + f + " with content=" + content, content.contains(string));
}
static void assertPatchHasBeenApplied(Pat... |
public BlockingQueueOperationListener(final int capacity) {
this.queue = new ArrayBlockingQueue<TransactionalProtocolClient.PreparedOperation<T>>(capacity);
}
| public BlockingQueueOperationListener(final int capacity) {
this(new ArrayBlockingQueue<TransactionalProtocolClient.PreparedOperation<T>>(capacity));
}
|
public String toString() {
return type.name();
}
| public String toString() {
return type.name()+" ["+content.toString()+"]";
}
|
public double value(double x, double y)
throws FunctionEvaluationException;
| double value(double x, double y)
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Versio... |
public double value(double x, double y, double z)
throws FunctionEvaluationException;
| double value(double x, double y, double z)
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache Licen... |
public static boolean equals(double x, double y, int maxUlps) {
// Check that "maxUlps" is non-negative and small enough so that
// NaN won't compare as equal to anything (except another NaN).
assert maxUlps > 0 && maxUlps < NAN_GAP;
long xInt = Double.doubleToLongBits(x);
l... | public static boolean equals(double x, double y, int maxUlps) {
// Check that "maxUlps" is non-negative and small enough so that
// NaN won't compare as equal to anything (except another NaN).
assert maxUlps > 0 && maxUlps < NAN_GAP;
long xInt = Double.doubleToLongBits(x);
l... |
protected int getBufferSize() {
return 1024;
}
| protected int getBufferSize() {
return 8192;
}
|
public void undeploy(DeploymentUnit context) {
context.removeAttachment(Attachments.SERVICE_MODULE_LOADER);
}
});
// Activate core processors for jar deployment
DeployerChainAddHandler.addDeploymentProcessor(SERVER_NAME, Phase.STRU... | public void undeploy(DeploymentUnit context) {
context.removeAttachment(Attachments.SERVICE_MODULE_LOADER);
}
});
// Activate core processors for jar deployment
DeployerChainAddHandler.addDeploymentProcessor(SERVER_NAME, Phase.STRU... |
public void testWriteDiscoveryGroupAttributeWhenConnectorIsAlreadyDefined() throws Exception {
// /subsystem=messaging/hornetq-server=default/connection-factory=testCF:add(connector={"in-vm" => undefined}, entries=["java:/jms/testCF"])
final ModelNode add = new ModelNode();
add.get(OP).set(A... | public void testWriteDiscoveryGroupAttributeWhenConnectorIsAlreadyDefined() throws Exception {
// /subsystem=messaging/hornetq-server=default/connection-factory=testCF:add(connector={"in-vm" => undefined}, entries=["java:/jms/testCF"])
final ModelNode add = new ModelNode();
add.get(OP).set(A... |
private static void executeWithFailure(ModelControllerClient client, ModelNode operation) throws IOException {
ModelNode result = client.execute(operation);
assertEquals(result.toJSONString(true), FAILED, result.get(OUTCOME).asString());
assertTrue(result.toJSONString(true), result.get(FAILU... | private static void executeWithFailure(ModelControllerClient client, ModelNode operation) throws IOException {
ModelNode result = client.execute(operation);
assertEquals(result.toJSONString(true), FAILED, result.get(OUTCOME).asString());
assertTrue(result.toJSONString(true), result.get(FAILU... |
ServiceBuilder<SessionIdentifierCodec> build(ServiceTarget target, ServiceName name, ServiceName deploymentServiceName);
/*
* JBoss, Home of Professional Open Source.
* Copyright 2014, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution fo... | ServiceBuilder<SessionIdentifierCodec> build(ServiceTarget target, ServiceName name, ServiceName deploymentServiceName);
/*
* JBoss, Home of Professional Open Source.
* Copyright 2014, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution fo... |
public void persist(XMLExtendedStreamWriter writer, ModelNode model, String namespaceURI) throws XMLStreamException {
boolean wildcard = resourceDefinition.getPathElement().isWildcard();
model = wildcard ? model.get(resourceDefinition.getPathElement().getKey()) : model.get(resourceDefinition.getPath... | public void persist(XMLExtendedStreamWriter writer, ModelNode model, String namespaceURI) throws XMLStreamException {
boolean wildcard = resourceDefinition.getPathElement().isWildcard();
model = wildcard ? model.get(resourceDefinition.getPathElement().getKey()) : model.get(resourceDefinition.getPath... |
private static final String hibernate_cfg_xml =
"<?xml version='1.0' encoding='utf-8'?>\n " +
"<!DOCTYPE hibernate-configuration PUBLIC\n" +
"\"-//Hibernate/Hibernate Configuration DTD 3.0//EN\"\n" +
"\"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd\">\n" +
"<hibernate-configuration>... | private static final String hibernate_cfg_xml =
"<?xml version='1.0' encoding='utf-8'?>\n " +
"<!DOCTYPE hibernate-configuration PUBLIC\n" +
"\"-//Hibernate/Hibernate Configuration DTD 3.0//EN\"\n" +
"\"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd\">\n" +
"<hibernate-configuration>... |
public static NimbusClient getConfiguredClient(Map conf) {
String nimbusHost = (String) conf.get(Config.NIMBUS_HOST);
int nimbusPort = ((Long) conf.get(Config.NIMBUS_THRIFT_PORT)).intValue();
return new NimbusClient(nimbusHost, nimbusPort);
}
| public static NimbusClient getConfiguredClient(Map conf) {
String nimbusHost = (String) conf.get(Config.NIMBUS_HOST);
int nimbusPort = Utils.getInt(conf.get(Config.NIMBUS_THRIFT_PORT));
return new NimbusClient(nimbusHost, nimbusPort);
}
|
private void flush(boolean propogate) throws IOException {
int avail = base64.avail();
if (avail > 0) {
byte[] buf = new byte[avail];
int c = base64.readResults(buf, 0, avail);
if (c > 0) {
out.write(buf, 0, c);
}
}
if (... | private void flush(boolean propogate) throws IOException {
int avail = base64.available();
if (avail > 0) {
byte[] buf = new byte[avail];
int c = base64.readResults(buf, 0, avail);
if (c > 0) {
out.write(buf, 0, c);
}
}
... |
public void testConstructors() {
Base64 base64;
base64 = new Base64();
base64 = new Base64(-1);
base64 = new Base64(-1, new byte[]{});
base64 = new Base64(64, new byte[]{});
try {
base64 = new Base64(-1, new byte[]{'A'});
fail("Should have reje... | public void testConstructors() {
Base64 base64;
base64 = new Base64();
base64 = new Base64(-1);
base64 = new Base64(-1, new byte[]{});
base64 = new Base64(64, new byte[]{});
try {
base64 = new Base64(-1, new byte[]{'A'}); // TODO do we need to check sep if... |
public synchronized void start(final StartContext startContext) throws StartException {
transientPoaMap = Collections.synchronizedMap(new HashMap<String, POA>());
persistentPoaMap = Collections.synchronizedMap(new HashMap<String, POA>());
final POA rootPOA = this.rootPOA.getValue();
... | public synchronized void start(final StartContext startContext) throws StartException {
transientPoaMap = Collections.synchronizedMap(new HashMap<String, POA>());
persistentPoaMap = Collections.synchronizedMap(new HashMap<String, POA>());
final POA rootPOA = this.rootPOA.getValue();
... |
package org.jboss.as.jacorb.rmi.ir;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2008, Red Hat Middleware LLC, 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... | package org.jboss.as.jacorb.rmi.ir;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2008, Red Hat Middleware LLC, 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... |
package org.jboss.as.jacorb.rmi.ir;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2008, Red Hat Middleware LLC, 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... | package org.jboss.as.jacorb.rmi.ir;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2008, Red Hat Middleware LLC, 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... |
package org.jboss.as.jacorb.rmi.ir;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2008, Red Hat Middleware LLC, 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... | package org.jboss.as.jacorb.rmi.ir;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2008, Red Hat Middleware LLC, 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... |
package org.jboss.as.jacorb.rmi.ir;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2008, Red Hat Middleware LLC, 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... | package org.jboss.as.jacorb.rmi.ir;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2008, Red Hat Middleware LLC, 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... |
package org.jboss.as.jacorb.rmi.ir;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2008, Red Hat Middleware LLC, 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... | package org.jboss.as.jacorb.rmi.ir;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2008, Red Hat Middleware LLC, 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... |
package org.jboss.as.jacorb.rmi.marshal;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2008, Red Hat Middleware LLC, 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 softwar... | package org.jboss.as.jacorb.rmi.marshal;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2008, Red Hat Middleware LLC, 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 softwar... |
package org.jboss.as.jacorb.rmi.marshal;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2008, Red Hat Middleware LLC, 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 softwar... | package org.jboss.as.jacorb.rmi.marshal;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2008, Red Hat Middleware LLC, 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 softwar... |
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
if (!DeploymentTypeMarker.isType(DeploymentType.WAR, deploymentUnit)) {
return; // Skip non web deployments
}... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
if (!DeploymentTypeMarker.isType(DeploymentType.WAR, deploymentUnit)) {
return; // Skip non web deployments
}... |
public void connectController(String protocol, String host, int port) throws CommandLineException {
if (host == null) {
host = defaultControllerHost;
}
if (port < 0) {
port = defaultControllerPort;
}
if(protocol == null) {
protocol = defa... | public void connectController(String protocol, String host, int port) throws CommandLineException {
if (host == null) {
host = defaultControllerHost;
}
if (port < 0) {
port = defaultControllerPort;
}
if(protocol == null) {
protocol = defa... |
private KernelServices(ServiceContainer container, ModelController controller, StringConfigurationPersister persister, ManagementResourceRegistration rootRegistration,
OperationValidator operationValidator, String mainSubsystemName, ExtensionRegistry extensionRegistry, ModelVersion legacyModelVersion, b... | private KernelServices(ServiceContainer container, ModelController controller, StringConfigurationPersister persister, ManagementResourceRegistration rootRegistration,
OperationValidator operationValidator, String mainSubsystemName, ExtensionRegistry extensionRegistry, ModelVersion legacyModelVersion, b... |
protected <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void, P> resultHandler, P param) {
final String defaultHost = this.defaultHost != null ? this.defaultHost : "localhost";
final WebServerService service = new WebServerService(defaultHost);
context.getBatchBuild... | protected <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void, P> resultHandler, P param) {
final String defaultHost = this.defaultHost != null ? this.defaultHost : "localhost";
final WebServerService service = new WebServerService(defaultHost);
context.getBatchBuild... |
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException {
// Because we use child resources in a read-only manner to configure the cache, replace the local model with the full model
ModelNode cacheModel = Resource.Tools.readModel... | protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException {
// Because we use child resources in a read-only manner to configure the cache, replace the local model with the full model
ModelNode cacheModel = Resource.Tools.readModel... |
protected void executeRuntimeStep(OperationContext context, ModelNode operation) {
// Address is of the form: /subsystem=infinispan/cache-container=*
String containerName = Operations.getPathAddress(operation).getLastElement().getValue();
String name = Operations.getAttributeName(operation);... | protected void executeRuntimeStep(OperationContext context, ModelNode operation) {
// Address is of the form: /subsystem=infinispan/cache-container=*
String containerName = context.getCurrentAddressValue();
String name = Operations.getAttributeName(operation);
CacheContainerMetric m... |
protected void executeRuntimeStep(OperationContext context, ModelNode operation) {
// Address is of the form: /subsystem=infinispan/cache-container=*/*-cache=*
PathAddress address = Operations.getPathAddress(operation);
String containerName = address.getElement(address.size() - 2).getValue()... | protected void executeRuntimeStep(OperationContext context, ModelNode operation) {
// Address is of the form: /subsystem=infinispan/cache-container=*/*-cache=*
PathAddress address = context.getCurrentAddress();
String containerName = address.getElement(address.size() - 2).getValue();
... |
protected void executeRuntimeStep(OperationContext context, ModelNode operation) throws OperationFailedException {
// Address is of the form: /subsystem=infinispan/cache-container=*/*-cache=*
PathAddress address = Operations.getPathAddress(operation);
String containerName = address.getElemen... | protected void executeRuntimeStep(OperationContext context, ModelNode operation) throws OperationFailedException {
// Address is of the form: /subsystem=infinispan/cache-container=*/*-cache=*
PathAddress address = context.getCurrentAddress();
String containerName = address.getElement(address... |
protected void executeRuntimeStep(OperationContext context, ModelNode operation) throws OperationFailedException {
// Address is of the form: /subsystem=infinispan/cache-container=*/*-cache=*/eviction=EVICTION
PathAddress address = Operations.getPathAddress(operation);
String containerName =... | protected void executeRuntimeStep(OperationContext context, ModelNode operation) throws OperationFailedException {
// Address is of the form: /subsystem=infinispan/cache-container=*/*-cache=*/eviction=EVICTION
PathAddress address = context.getCurrentAddress();
String containerName = address.... |
protected void executeRuntimeStep(OperationContext context, ModelNode operation) throws OperationFailedException {
// Address is of the form: /subsystem=infinispan/cache-container=*/*-cache=*/locking=LOCKING
PathAddress address = Operations.getPathAddress(operation);
String containerName = a... | protected void executeRuntimeStep(OperationContext context, ModelNode operation) throws OperationFailedException {
// Address is of the form: /subsystem=infinispan/cache-container=*/*-cache=*/locking=LOCKING
PathAddress address = context.getCurrentAddress();
String containerName = address.ge... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.