buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
public void testNewSample() throws Exception {
double[] design = new double[] {
1, 19, 22, 33,
2, 20, 30, 40,
3, 25, 35, 45,
4, 27, 37, 47
};
double[] y = new double[] {1, 2, 3, 4};
double[][] x = new double[][] {
{19, 22, 33},
... | public void testNewSample() throws Exception {
double[] design = new double[] {
1, 19, 22, 33,
2, 20, 30, 40,
3, 25, 35, 45,
4, 27, 37, 47
};
double[] y = new double[] {1, 2, 3, 4};
double[][] x = new double[][] {
{19, 22, 33},
... |
package org.jboss.as.demos.ejb3.archive.session.singleton;
/*
* 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 fre... | package org.jboss.as.demos.ejb3.archive.session.singleton;
/*
* 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 fre... |
package org.jboss.as.demos.ejb3.archive.session.stateful;
/*
* JBoss, Home of Professional Open Source.
* Copyright (c) 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 ... | package org.jboss.as.demos.ejb3.archive.session.stateful;
/*
* JBoss, Home of Professional Open Source.
* Copyright (c) 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 ... |
package org.jboss.as.demos.ejb3.archive.session.stateless;
/*
* 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 fre... | package org.jboss.as.demos.ejb3.archive.session.stateless;
/*
* 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 fre... |
package org.jboss.as.demos.ejb3.archive.session.stateless;
/*
* JBoss, Home of Professional Open Source.
* Copyright (c) 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... | package org.jboss.as.demos.ejb3.archive.session.stateless;
/*
* JBoss, Home of Professional Open Source.
* Copyright (c) 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... |
public void configureDependency(ServiceBuilder<?> builder, StatelessSessionComponentCreateService service) {
builder.addDependency(RegistryInstallerService.SERVICE_NAME);
builder.addDependency(DependencyType.OPTIONAL, ServiceName.JBOSS.append("clustering", "group", "ejb", "de... | public void configureDependency(ServiceBuilder<?> builder, StatelessSessionComponentCreateService service) {
builder.addDependency(DependencyType.OPTIONAL, RegistryInstallerService.SERVICE_NAME);
builder.addDependency(DependencyType.OPTIONAL, ServiceName.JBOSS.append("cluster... |
public String toString() {
return "registry[" + sessions.size() + " session(s)]";
}
}
| public String toString() {
return "registry[" + sessions.size() + " sessions]";
}
}
|
private void validateChildren(ModelNode children) {
for (String type : children.keys()) {
ModelNode typeNode = children.get(type);
for (String key : typeNode.keys()) {
ArbitraryDescriptorValidator validator = VALID_CHILD_TYPE_KEYS.get(key);
if (validat... | private void validateChildren(ModelNode children) {
for (String type : children.keys()) {
ModelNode typeNode = children.get(type);
for (String key : typeNode.keys()) {
ArbitraryDescriptorValidator validator = VALID_CHILD_TYPE_KEYS.get(key);
if (validat... |
public void newUser() throws IOException {
values.setExistingUser(false);
values.setGroups(ROLES);
PreModificationState userCheckState = new PreModificationState(consoleMock, values);
AssertConsoleBuilder consoleBuilder = new AssertConsoleBuilder().
expectedDisplayTe... | public void newUser() throws IOException {
values.setExistingUser(false);
values.setGroups(ROLES);
PreModificationState userCheckState = new PreModificationState(consoleMock, values);
AssertConsoleBuilder consoleBuilder = new AssertConsoleBuilder().
expectedDisplayTe... |
public void testSetQuantile() {
Percentile percentile = new Percentile(10);
percentile.setQuantile(100); // OK
assertEquals(100, percentile.getQuantile(), 0);
try {
percentile.setQuantile(0);
fail("Expecting IllegalArgumentException");
} catch (I... | public void testSetQuantile() {
Percentile percentile = new Percentile(10);
percentile.setQuantile(100); // OK
assertEquals(100, percentile.getQuantile(), 0);
try {
percentile.setQuantile(0);
fail("Expecting IllegalArgumentException");
} catch (I... |
public void testReadOperationDescription() throws Exception {
NewOperation read = createOperation(READ_OPERATION_DESCRIPTION_OPERATION);
read.getOperation().get(NAME).set(READ_ATTRIBUTE_OPERATION);
ModelNode result = mainControllerClient.execute(read);
checkReadAttributeOperationDesc... | public void testReadOperationDescription() throws Exception {
NewOperation read = createOperation(READ_OPERATION_DESCRIPTION_OPERATION);
read.getOperation().get(NAME).set(READ_ATTRIBUTE_OPERATION);
ModelNode result = mainControllerClient.execute(read);
checkReadAttributeOperationDesc... |
public void addDependencies(ServiceTarget target, ServiceBuilder<?> builder) {
ServiceName baseServiceName = EmbeddedCacheManagerService.getServiceName(null);
ServiceName serviceName = ServiceName.parse((this.cacheName != null) ? this.cacheName : DEFAULT_BACKING_CACHE);
if (!baseServiceName.... | public void addDependencies(ServiceTarget target, ServiceBuilder<?> builder) {
ServiceName baseServiceName = EmbeddedCacheManagerService.getServiceName(null);
ServiceName serviceName = ServiceName.parse((this.cacheName != null) ? this.cacheName : DEFAULT_BACKING_CACHE);
if (!baseServiceName.... |
public ManagedReference getReference() {
PersistenceUnitService service = (PersistenceUnitService)deploymentUnit.getServiceRegistry().getRequiredService(puServiceName).getValue();
EntityManagerFactory emf = service.getEntityManagerFactory();
EntityManager entityManager;
... | public ManagedReference getReference() {
PersistenceUnitService service = (PersistenceUnitService)deploymentUnit.getServiceRegistry().getRequiredService(puServiceName).getValue();
EntityManagerFactory emf = service.getEntityManagerFactory();
EntityManager entityManager;
... |
public static <E> Bag<E> transformedBag(final Bag<E> bag, final Transformer<? super E, ? extends E> transformer) {
final TransformedBag<E> decorated = new TransformedBag<E>(bag, transformer);
if (transformer != null && bag != null && bag.size() > 0) {
@SuppressWarnings("unchecked") // Ba... | public static <E> Bag<E> transformedBag(final Bag<E> bag, final Transformer<? super E, ? extends E> transformer) {
final TransformedBag<E> decorated = new TransformedBag<E>(bag, transformer);
if (transformer != null && bag != null && bag.size() > 0) {
@SuppressWarnings("unchecked") // Ba... |
public static <E> TransformedSortedBag<E> transformedSortedBag(final SortedBag<E> bag,
final Transformer<? super E, ? extends E> transformer) {
final TransformedSortedBag<E> decorated = new TransformedSortedBag<E>(bag, transformer);
if (transformer != null && bag != null && bag.size() ... | public static <E> TransformedSortedBag<E> transformedSortedBag(final SortedBag<E> bag,
final Transformer<? super E, ? extends E> transformer) {
final TransformedSortedBag<E> decorated = new TransformedSortedBag<E>(bag, transformer);
if (transformer != null && bag != null && bag.size() ... |
public static <E> TransformedCollection<E> transformedCollection(final Collection<E> collection,
final Transformer<? super E, ? extends E> transformer) {
final TransformedCollection<E> decorated = new TransformedCollection<E>(collection, transformer);
// null collection & transformer ar... | public static <E> TransformedCollection<E> transformedCollection(final Collection<E> collection,
final Transformer<? super E, ? extends E> transformer) {
final TransformedCollection<E> decorated = new TransformedCollection<E>(collection, transformer);
// null collection & transformer ar... |
public static <E> TransformedList<E> transformedList(final List<E> list,
final Transformer<? super E, ? extends E> transformer) {
final TransformedList<E> decorated = new TransformedList<E>(list, transformer);
if (transformer != null && list !... | public static <E> TransformedList<E> transformedList(final List<E> list,
final Transformer<? super E, ? extends E> transformer) {
final TransformedList<E> decorated = new TransformedList<E>(list, transformer);
if (transformer != null && list !... |
public static <E> TransformedQueue<E> transformedQueue(final Queue<E> queue,
final Transformer<? super E, ? extends E> transformer) {
// throws IAE if queue or transformer is null
final TransformedQueue<E> decorated = new TransformedQueue<E>... | public static <E> TransformedQueue<E> transformedQueue(final Queue<E> queue,
final Transformer<? super E, ? extends E> transformer) {
// throws IAE if queue or transformer is null
final TransformedQueue<E> decorated = new TransformedQueue<E>... |
public static <E> Set<E> transformedSet(final Set<E> set, final Transformer<? super E, ? extends E> transformer) {
final TransformedSet<E> decorated = new TransformedSet<E>(set, transformer);
if (transformer != null && set != null && set.size() > 0) {
@SuppressWarnings("unchecked") // se... | public static <E> Set<E> transformedSet(final Set<E> set, final Transformer<? super E, ? extends E> transformer) {
final TransformedSet<E> decorated = new TransformedSet<E>(set, transformer);
if (transformer != null && set != null && set.size() > 0) {
@SuppressWarnings("unchecked") // se... |
public static <E> TransformedSortedSet<E> transformedSortedSet(final SortedSet<E> set,
final Transformer<? super E, ? extends E> transformer) {
final TransformedSortedSet<E> decorated = new TransformedSortedSet<E>(set, transformer);
if (transformer != null && set != null && set.size() >... | public static <E> TransformedSortedSet<E> transformedSortedSet(final SortedSet<E> set,
final Transformer<? super E, ? extends E> transformer) {
final TransformedSortedSet<E> decorated = new TransformedSortedSet<E>(set, transformer);
if (transformer != null && set != null && set.size() >... |
protected int countRowsInTable(String tableName) {
return this.jdbcTemplate.queryForInt("SELECT COUNT(0) FROM " + tableName);
}
| protected int countRowsInTable(String tableName) {
return this.jdbcTemplate.queryForObject("SELECT COUNT(0) FROM " + tableName, Integer.class);
}
|
private void processManualTransitiveDependencies(final ModuleSpecification moduleSpecification, final DeploymentPhaseContext phaseContext, final Set<ModuleIdentifier> deps, final ModuleIdentifier identifier) {
final ServiceController<ModuleSpecification> controller = (ServiceController<ModuleSpecification>)... | private void processManualTransitiveDependencies(final ModuleSpecification moduleSpecification, final DeploymentPhaseContext phaseContext, final Set<ModuleIdentifier> deps, final ModuleIdentifier identifier) {
final ServiceController<ModuleSpecification> controller = (ServiceController<ModuleSpecification>)... |
public BeanGroupEntry<I, T> createValue(G id) {
Map<I, T> beans = new HashMap<>();
BeanGroupEntry<I, T> entry = new InfinispanBeanGroupEntry<>(this.factory.createMarshalledValue(beans));
BeanGroupEntry<I, T> existing = this.invoker.invoke(this.cache, new CreateOperation<>(id, entry));
... | public BeanGroupEntry<I, T> createValue(G id) {
Map<I, T> beans = new HashMap<>();
BeanGroupEntry<I, T> entry = new InfinispanBeanGroupEntry<>(this.factory.createMarshalledValue(beans));
BeanGroupEntry<I, T> existing = this.invoker.invoke(this.cache, new CreateOperation<>(id, entry), Flag.FO... |
public Map<K, V> invoke(Cache<Node, Entry<K, V>> cache) {
Map<K, V> removed = new HashMap<>();
for (Node node: nodes) {
Map.Entry<K, V> old = cache.remove(node);
if (old != null) {
removed.put(old.getKey(), old.g... | public Map<K, V> invoke(Cache<Node, Entry<K, V>> cache) {
Map<K, V> removed = new HashMap<>();
for (Node node: nodes) {
Map.Entry<K, V> old = cache.remove(node);
if (old != null) {
removed.put(old.getKey(), old.g... |
public static final SimpleAttributeDefinition PORT_OFFSET = new SimpleAttributeDefinitionBuilder(ModelDescriptionConstants.PORT_OFFSET, ModelType.INT, true)
.setAllowExpression(true).setValidator(new IntRangeValidator(0, 65535, true, true))
.setDefaultValue(new ModelNode().set(0)).setFlags(A... | public static final SimpleAttributeDefinition PORT_OFFSET = new SimpleAttributeDefinitionBuilder(ModelDescriptionConstants.PORT_OFFSET, ModelType.INT, true)
.setAllowExpression(true).setValidator(new IntRangeValidator(-65535, 65535, true, true))
.setDefaultValue(new ModelNode().set(0)).setFl... |
private PrivatelyShadowedChild privatelyShadowedChild;
private final Class<?> parentClass = PublicChild.class.getSuperclass();
| private PrivatelyShadowedChild privatelyShadowedChild;
private final Class<? super PublicChild> parentClass = PublicChild.class.getSuperclass();
|
public void performRuntime(final OperationContext context, ModelNode operation, ModelNode model, final ServiceVerificationHandler verificationHandler,
final List<ServiceController<?>> controllers) throws OperationFailedException {
// Compensating is remove
final ModelN... | public void performRuntime(final OperationContext context, ModelNode operation, ModelNode model, final ServiceVerificationHandler verificationHandler,
final List<ServiceController<?>> controllers) throws OperationFailedException {
// Compensating is remove
final ModelN... |
protected void setUp() throws Exception {
super.setUp();
mockCallable = createMock(CallableStatement.class);
bf = new XmlBeanFactory(
new ClassPathResource("org/springframework/jdbc/support/GenericStoredProcedureTests-context.xml"));
TestDataSourceWrapper testDataSource = (TestDataSourceWrapper) bf.getBean... | protected void setUp() throws Exception {
super.setUp();
mockCallable = createMock(CallableStatement.class);
bf = new XmlBeanFactory(
new ClassPathResource("org/springframework/jdbc/object/GenericStoredProcedureTests-context.xml"));
TestDataSourceWrapper testDataSource = (TestDataSourceWrapper) bf.getBean(... |
public NoDataException(Localizable specific) {
super(specific, null);
}
| public NoDataException(Localizable specific) {
super(specific);
}
|
public NullArgumentException() {
this(LocalizedFormats.NULL_NOT_ALLOWED, null);
}
| public NullArgumentException() {
this(LocalizedFormats.NULL_NOT_ALLOWED);
}
|
boolean isInjectionOK();
/*
* JBoss, Home of Professional Open Source.
* Copyright (c) 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 free software; you can redistribu... | boolean isInjectionOK();
/*
* JBoss, Home of Professional Open Source.
* Copyright (c) 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 free software; you can redistribu... |
protected void writeNamespaces(final XMLExtendedStreamWriter writer, final ModelNode modelNode) throws XMLStreamException {
final boolean needXsd = modelNode.hasDefined(SCHEMA_LOCATIONS);
final boolean hasNamepaces = modelNode.hasDefined(NAMESPACES);
if (!needXsd && !hasNamepaces) {
... | protected void writeNamespaces(final XMLExtendedStreamWriter writer, final ModelNode modelNode) throws XMLStreamException {
final boolean needXsd = modelNode.hasDefined(SCHEMA_LOCATIONS) && modelNode.get(SCHEMA_LOCATIONS).asInt() > 0;
final boolean hasNamepaces = modelNode.hasDefined(NAMESPACES);
... |
public double evaluate(double[] d, int begin, int length);
}
| public double evaluate(double[] values, int begin, int length);
}
|
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
final ServiceRegistry registry = context.getServiceRegistry(false);
if (registry != null) {
try {
context.getRe... | public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
final ServiceRegistry registry = context.getServiceRegistry(false);
if (registry != null) {
try {
context.getRe... |
public static void createHostRegistry(final ManagementResourceRegistration root, final HostControllerConfigurationPersister configurationPersister,
final HostControllerEnvironment environment, final HostRunningModeControl runningModeControl,
... | public static void createHostRegistry(final ManagementResourceRegistration root, final HostControllerConfigurationPersister configurationPersister,
final HostControllerEnvironment environment, final HostRunningModeControl runningModeControl,
... |
public void setUp() {
super.setUp();
testStatistic = TestUtils.getChiSquareTest();
}
| public void setUp() {
super.setUp();
testStatistic = TestUtils.getUnknownDistributionChiSquareTest();
}
|
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
final String parameterName = operation.require(NAME).asString();
final ModelNode submodel = context.readResource(PathAddress.EMPTY_ADDRESS, false).getModel();
final ModelNode... | public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
final String parameterName = operation.require(NAME).asString();
final ModelNode submodel = context.readModel(PathAddress.EMPTY_ADDRESS);
final ModelNode currentValue = submo... |
public HostControllerConfigurationPersister(final HostControllerEnvironment environment, final LocalHostControllerInfo localHostControllerInfo,
final ExecutorService executorService, final ExtensionRegistry extensionRegistry) {
this.environment = environment;
... | public HostControllerConfigurationPersister(final HostControllerEnvironment environment, final LocalHostControllerInfo localHostControllerInfo,
final ExecutorService executorService, final ExtensionRegistry extensionRegistry) {
this.environment = environment;
... |
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... |
protected void performRuntime(final OperationContext context, final ModelNode operation, final ModelNode model,
final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers) throws OperationFailedException {
launchServices(context... | private static STSType toSAMLConfig(OperationContext context, ModelNode fromModel) throws OperationFailedException {
int tokenTimeout = SAMLResourceDefinition.TOKEN_TIMEOUT.resolveModelAttribute(context, fromModel).asInt();
int clockSkew = SAMLResourceDefinition.CLOCK_SKEW.resolveModelAttribute(cont... |
protected void setUp() {
super.setUp();
deploy(DEPLOYMENTS);
}
@Test
@InSequence(1)
public void test(@ArquillianResource(SessionOperationServlet.class) @OperateOnDeployment(DEPLOYMENT_1) URL baseURL1,
@ArquillianResource(SessionOperationServlet.class) @OperateOn... | protected void setUp() {
super.setUp();
deploy(DEPLOYMENTS);
}
@Test
@InSequence(1)
public void test(@ArquillianResource(SessionOperationServlet.class) @OperateOnDeployment(DEPLOYMENT_1) URL baseURL1,
@ArquillianResource(SessionOperationServlet.class) @OperateOn... |
public void testDataSourceDefinition() throws NamingException, SQLException {
DataSourceBean bean = (DataSourceBean)ctx.lookup("java:module/" + DataSourceBean.class.getSimpleName());
DataSource ds = bean.getDataSource();
ResultSet result = ds.getConnection().createStatement().executeQuery("s... | public void testDataSourceDefinition() throws NamingException, SQLException {
DataSourceBean bean = (DataSourceBean)ctx.lookup("java:module/" + DataSourceBean.class.getSimpleName());
DataSource ds = bean.getDataSource();
ResultSet result = ds.getConnection().createStatement().executeQuery("s... |
public void cleanupForAll() throws Exception {
if (controller.isStarted(CONTAINER))
controller.stop(CONTAINER);
// clean up created temporary files and directories
if(doCleanup) {
if (IoUtils.recursiveDelete(tempDir)) {
tempDir.deleteOnExit();
... | public void cleanupForAll() throws Exception {
if (controller.isStarted(CONTAINER))
controller.stop(CONTAINER);
// clean up created temporary files and directories
if(doCleanup) {
if (IoUtils.recursiveDelete(tempDir)) {
tempDir.deleteOnExit();
... |
ValidateResults validate(Object model, List<String> properties);
package org.springframework.ui.validation;
import java.util.List;
public interface Validator {
void validate(Object model, List<String> properties);
} | ValidateResults validate(Object model, List<String> properties);
package org.springframework.ui.validation;
import java.util.List;
public interface Validator {
ValidateResults validate(Object model, List<String> properties);
} |
public DomainServerGroupSystemPropertyTransformersTestCase(TransformersTestParameters params) {
super(params, "domain-servergroup-systemproperties.xml", true);
}
| public DomainServerGroupSystemPropertyTransformersTestCase(TransformersTestParameters params) {
super(params, true);
}
|
public DomainSystemPropertyTransformersTestCase(TransformersTestParameters params) {
super(params, "domain-systemproperties.xml", false);
}
| public DomainSystemPropertyTransformersTestCase(TransformersTestParameters params) {
super(params, false);
}
|
package org.jboss.as.clustering.concurrent;
/*
* 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 for a full listing of individual contributors.
*
* This is free software; you... | package org.jboss.as.clustering.concurrent;
/*
* 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 for a full listing of individual contributors.
*
* This is free software; you... |
package org.jboss.as.clustering.marshalling;
package org.wildfly.clustering.marshalling;
import java.util.Collection;
public interface ClassTableContributor {
Collection<Class<?>> getKnownClasses();
} | package org.jboss.as.clustering.marshalling;
package org.jboss.as.clustering.marshalling;
import java.util.Collection;
public interface ClassTableContributor {
Collection<Class<?>> getKnownClasses();
} |
package org.jboss.as.clustering.marshalling;
/*
* 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 free software; yo... | package org.jboss.as.clustering.marshalling;
/*
* 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 free software; yo... |
package org.jboss.as.clustering.marshalling;
/*
* 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 free software; yo... | package org.jboss.as.clustering.marshalling;
/*
* 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 free software; yo... |
package org.jboss.as.clustering.marshalling;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2013, 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... | package org.jboss.as.clustering.marshalling;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2013, 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... |
package org.jboss.as.clustering.marshalling;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2013, 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... | package org.jboss.as.clustering.marshalling;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2013, 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... |
package org.jboss.as.clustering.marshalling;
/*
* 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... | package org.jboss.as.clustering.marshalling;
/*
* 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.clustering.infinispan.distribution.Locality;
/*
* 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 for a full listing of individual contributors.
*
* This ... | import org.jboss.as.clustering.infinispan.distribution.Locality;
/*
* 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 for a full listing of individual contributors.
*
* This ... |
package org.jboss.as.clustering.infinispan.affinity;
/*
* 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 free soft... | package org.jboss.as.clustering.infinispan.affinity;
/*
* 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 free soft... |
package org.jboss.as.clustering.infinispan.distribution;
/*
* 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 for a full listing of individual contributors.
*
* This is free ... | package org.jboss.as.clustering.infinispan.distribution;
/*
* 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 for a full listing of individual contributors.
*
* This is free ... |
package org.jboss.as.clustering.infinispan.io;
/*
* 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; ... | package org.jboss.as.clustering.infinispan.io;
/*
* 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; ... |
package org.jboss.as.clustering.jgroups;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2013, 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.clustering.jgroups;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2013, 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.clustering.jgroups;
/*
* 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 free software; you ca... | package org.jboss.as.clustering.jgroups;
/*
* 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 free software; you ca... |
package org.jboss.as.clustering.jgroups;
/*
* 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; you ca... | package org.jboss.as.clustering.jgroups;
/*
* 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; you ca... |
package org.jboss.as.clustering.jgroups;
/*
* 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; you ca... | package org.jboss.as.clustering.jgroups;
/*
* 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; you ca... |
package org.jboss.as.clustering.jgroups;
/*
* 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 free software; you ca... | package org.jboss.as.clustering.jgroups;
/*
* 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 free software; you ca... |
public interface CacheServiceNameFactory extends GroupServiceNameFactory {
/*
* 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 for a full listing of individual contributors.
... | public interface CacheServiceNameFactory extends GroupServiceNameFactory {
/*
* 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 for a full listing of individual contributors.
... |
public interface ClusteredCacheServiceInstaller extends CacheServiceInstaller {
/*
* 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 for a full listing of individual contributo... | public interface ClusteredCacheServiceInstaller extends CacheServiceInstaller {
/*
* 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 for a full listing of individual contributo... |
public interface ClusteredGroupServiceInstaller extends GroupServiceInstaller {
/*
* 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 for a full listing of individual contributo... | public interface ClusteredGroupServiceInstaller extends GroupServiceInstaller {
/*
* 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 for a full listing of individual contributo... |
public interface LocalCacheServiceInstaller extends CacheServiceInstaller {
/*
* 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 for a full listing of individual contributors.
... | public interface LocalCacheServiceInstaller extends CacheServiceInstaller {
/*
* 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 for a full listing of individual contributors.
... |
public interface LocalGroupServiceInstaller extends GroupServiceInstaller {
/*
* 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 for a full listing of individual contributors.
... | public interface LocalGroupServiceInstaller extends GroupServiceInstaller {
/*
* 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 for a full listing of individual contributors.
... |
import org.jboss.as.clustering.infinispan.distribution.Locality;
/*
* 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 for a full listing of individual contributors.
*
* This ... | import org.jboss.as.clustering.infinispan.distribution.Locality;
/*
* 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 for a full listing of individual contributors.
*
* This ... |
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException {
final PathAddress address = PathAddress.pathAddress(operation.get(OP_ADDR));
final PathAddress hostAddress = address.subAddress(0, address.size() - 1);
... | protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException {
final PathAddress address = PathAddress.pathAddress(operation.get(OP_ADDR));
final PathAddress hostAddress = address.subAddress(0, address.size() - 1);
... |
ServiceBuilder<SingleSignOnManagerFactory> build(ServiceTarget target, ServiceName name, ServiceName hostServiceName);
/*
* 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 for ... | ServiceBuilder<SingleSignOnManagerFactory> build(ServiceTarget target, ServiceName name, ServiceName hostServiceName);
/*
* 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 for ... |
private static final String SUBSYSTEM_XML =
"<subsystem xmlns=\"urn:jboss:domain:deployment-scanner:1.2\">\n" +
" <deployment-scanner name=\"myScanner\" path=\"deployments_${custom.system.property:test}\" " +
| private static final String SUBSYSTEM_XML =
"<subsystem xmlns=\"urn:jboss:domain:deployment-scanner:2.0\">\n" +
" <deployment-scanner name=\"myScanner\" path=\"deployments_${custom.system.property:test}\" " +
|
protected double homoscedasticTTest(double m1, double m2, double v1,
double v2, double n1, double n2)
throws MathException {
double t = Math.abs(homoscedasticT(m1, m2, v1, v2, n1, n2));
double degreesOfFreedom = (n1 + n2 - 2);
distribution.setDegreesOfFreedom(degreesOfFreedom... | protected double homoscedasticTTest(double m1, double m2, double v1,
double v2, double n1, double n2)
throws MathException {
double t = Math.abs(homoscedasticT(m1, m2, v1, v2, n1, n2));
double degreesOfFreedom = n1 + n2 - 2;
distribution.setDegreesOfFreedom(degreesOfFreedom);... |
public boolean isCallerInRole(final String roleName) throws IllegalStateException {
return utilities.getSecurityManager().isCallerInRole(securityMetaData.getSecurityRoles(), roleName);
}
| public boolean isCallerInRole(final String roleName) throws IllegalStateException {
return utilities.getSecurityManager().isCallerInRole(securityMetaData.getSecurityRoles(), securityMetaData.getSecurityRoleLinks(), roleName);
}
|
public void activate(final ServiceActivatorContext serviceActivatorContext) {
final ServiceTarget serviceTarget = serviceActivatorContext.getServiceTarget();
final HostControllerConnectionService smConnection = new HostControllerConnectionService();
serviceTarget.addService(... | public void activate(final ServiceActivatorContext serviceActivatorContext) {
final ServiceTarget serviceTarget = serviceActivatorContext.getServiceTarget();
final HostControllerConnectionService smConnection = new HostControllerConnectionService();
serviceTarget.addService(... |
import org.jboss.as.server.legacy.ServerController;
/*
* 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 softw... | import org.jboss.as.server.legacy.ServerController;
/*
* 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 softw... |
import org.jboss.as.connector.metadata.deployment.ResourceAdapterDeployment;
/*
* 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.... | import org.jboss.as.connector.metadata.deployment.ResourceAdapterDeployment;
/*
* 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 boolean isDefaultHtmlEscape() {
return (this.defaultHtmlEscape != null && this.defaultHtmlEscape);
}
| public boolean isDefaultHtmlEscape() {
return (this.defaultHtmlEscape != null && this.defaultHtmlEscape.booleanValue());
}
|
private SocketBindingGroupIncludesAttribute() {
super(ModelDescriptionConstants.INCLUDES, Element.INCLUDE.getLocalName(), true, 1, Integer.MAX_VALUE,
new StringLengthValidator(1, true), null, null, AttributeAccess.Flag.RESTART_JVM);
}
| private SocketBindingGroupIncludesAttribute() {
super(ModelDescriptionConstants.INCLUDES, Element.INCLUDE.getLocalName(), true, 0, Integer.MAX_VALUE,
new StringLengthValidator(1, true), null, null, AttributeAccess.Flag.RESTART_JVM);
}
|
private static enum CharType {
DELIM,
ESCAPE,
ENCAP,
EOL,
COMMENT_START,
WHITESPACE,
OTHER,
EOFCHAR
}
private CharType classify(final int intch) {
if (isDelimiter(intch)) {
return CharType.DELIM;
}
if (isCom... | private static enum CharType {
DELIM,
ESCAPE,
ENCAP,
EOL,
COMMENT_START,
WHITESPACE,
OTHER,
EOFCHAR
}
private CharType classify(final int intch) {
if (isDelimiter(intch)) {
return CharType.DELIM;
}
if (isCom... |
private void paxHeaders() throws IOException{
Map<String, String> headers = parsePaxHeaders(this);
getNextEntry(); // Get the actual file entry
applyPaxHeadersToCurrentEntry(headers);
}
Map<String, String> parsePaxHeaders(InputStream i) throws IOException {
Map<String, Strin... | private void paxHeaders() throws IOException{
Map<String, String> headers = parsePaxHeaders(this);
getNextEntry(); // Get the actual file entry
applyPaxHeadersToCurrentEntry(headers);
}
Map<String, String> parsePaxHeaders(InputStream i) throws IOException {
Map<String, Strin... |
private static void quadMult(final double a[], final double b[], final double result[]) {
final double xs[] = new double[2];
final double ys[] = new double[2];
final double zs[] = new double[2];
/* a[0] * b[0] */
split(a[0], xs);
split(b[0], ys);
splitMult(xs... | private static void quadMult(final double a[], final double b[], final double result[]) {
final double xs[] = new double[2];
final double ys[] = new double[2];
final double zs[] = new double[2];
/* a[0] * b[0] */
split(a[0], xs);
split(b[0], ys);
splitMult(xs... |
public void handleRollback(OperationContext context, ModelNode operation) {
try {
recoverServices(context, operation, model);
} catch (Exception e) {
MGMT_OP_LOGGER.errorRevert... | public void handleRollback(OperationContext context, ModelNode operation) {
try {
recoverServices(context, operation, model);
} catch (Exception e) {
MGMT_OP_LOGGER.errorRevert... |
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
executeRuntimeStep(context, operation);
}
}, OperationContext.Stage.RUNTIME);
context.completeStep(OperationContext.RollbackHandler.NOOP_ROLLBACK_HANDLER);
}
| public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
executeRuntimeStep(context, operation);
}
}, OperationContext.Stage.RUNTIME);
context.stepCompleted();
}
|
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
if (setResult) {
context.getResult();
}
context.completeStep(OperationContext.RollbackHandler.NOOP_ROLLBACK_HANDLER);
}
| public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
if (setResult) {
context.getResult();
}
context.stepCompleted();
}
|
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
final Map<Step, Map<ServiceName, Set<ServiceName>>> missingByStep = new HashMap<Step, Map<ServiceName, Set<ServiceName>>>();
// The realRemovingControllers map acts as the guard for the... | public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
final Map<Step, Map<ServiceName, Set<ServiceName>>> missingByStep = new HashMap<Step, Map<ServiceName, Set<ServiceName>>>();
// The realRemovingControllers map acts as the guard for the... |
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
final PathAddress address = PathAddress.pathAddress(operation.require(OP_ADDR));
final String name = address.getLastElement().getValue();
context.getResult().set(name);
context.comp... | public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
final PathAddress address = PathAddress.pathAddress(operation.require(OP_ADDR));
final String name = address.getLastElement().getValue();
context.getResult().set(name);
context.step... |
public void handleRollback(OperationContext context, ModelNode operation) {
if (reloadRequired) {
context.revertReloadRequired();
} else if (invalidatedParentModel != null) {
r... | public void handleRollback(OperationContext context, ModelNode operation) {
if (reloadRequired) {
context.revertReloadRequired();
} else if (invalidatedParentModel != null) {
r... |
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
final String moduleName = PathAddress.pathAddress(operation.require(OP_ADDR)).getLastElement().getValue();
ExtensionResource resource = new ExtensionResource(moduleName, extensionRegistry);
... | public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
final String moduleName = PathAddress.pathAddress(operation.require(OP_ADDR)).getLastElement().getValue();
ExtensionResource resource = new ExtensionResource(moduleName, extensionRegistry);
... |
public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException {
final ModelNode address;
final PathAddress pa = PathAddress.pathAddress(PathAddress.pathAddress(operation.require(OP_ADDR)));
if (pa.size() > 0) {
address = new ModelN... | public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException {
final ModelNode address;
final PathAddress pa = PathAddress.pathAddress(PathAddress.pathAddress(operation.require(OP_ADDR)));
if (pa.size() > 0) {
address = new ModelN... |
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
final ModelNode model = context.readResourceForUpdate(PathAddress.EMPTY_ADDRESS).getModel();
ModelNode param = operation.get(NAMESPACE);
typeValidator.validateParameter(NAMESPACE, param);
... | public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
final ModelNode model = context.readResourceForUpdate(PathAddress.EMPTY_ADDRESS).getModel();
ModelNode param = operation.get(NAMESPACE);
typeValidator.validateParameter(NAMESPACE, param);
... |
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
final ModelNode model = context.readResource(PathAddress.EMPTY_ADDRESS).getModel();
if (model.hasDefined(NAME.getName())) {
context.getResult().set(model.get(NAME.getName... | public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
final ModelNode model = context.readResource(PathAddress.EMPTY_ADDRESS).getModel();
if (model.hasDefined(NAME.getName())) {
context.getResult().set(model.get(NAME.getName... |
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
context.getResult().set(processState.getState().toString());
context.completeStep();
}
| public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
context.getResult().set(processState.getState().toString());
context.stepCompleted();
}
|
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
ModelNode toResolve = EXPRESSION.validateOperation(operation);
if (toResolve.getType() == ModelType.STRING) {
toResolve = ParseUtils.parsePossibleExpressio... | public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
ModelNode toResolve = EXPRESSION.validateOperation(operation);
if (toResolve.getType() == ModelType.STRING) {
toResolve = ParseUtils.parsePossibleExpressio... |
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
final ModelNode model = context.readResourceForUpdate(PathAddress.EMPTY_ADDRESS).getModel();
ModelNode param = operation.get(URI);
typeValidator.validateParameter(URI, param);
Model... | public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
final ModelNode model = context.readResourceForUpdate(PathAddress.EMPTY_ADDRESS).getModel();
ModelNode param = operation.get(URI);
typeValidator.validateParameter(URI, param);
Model... |
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
String name = operation.require(ModelDescriptionConstants.NAME).asString();
try {
persister.deleteSnapshot(name);
context.completeStep();
} catch (Exception e) {
... | public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
String name = operation.require(ModelDescriptionConstants.NAME).asString();
try {
persister.deleteSnapshot(name);
context.completeStep(OperationContext.RollbackHandler.NOOP_RO... |
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
try {
SnapshotInfo info = persister.listSnapshots();
ModelNode result = context.getResult();
result.get(ModelDescriptionConstants.DIRECTORY).set(info.getSnapshotDirectory(... | public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
try {
SnapshotInfo info = persister.listSnapshots();
ModelNode result = context.getResult();
result.get(ModelDescriptionConstants.DIRECTORY).set(info.getSnapshotDirectory(... |
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
try {
String name = persister.snapshot();
context.getResult().set(name);
context.completeStep();
} catch (ConfigurationPersistenceException e) {
throw ... | public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
try {
String name = persister.snapshot();
context.getResult().set(name);
context.completeStep(OperationContext.RollbackHandler.NOOP_ROLLBACK_HANDLER);
} catch (Con... |
public void execute(OperationContext context, ModelNode operation) {
final Resource resource = context.readResourceFromRoot(getBaseAddress());
// Get the model recursively
final ModelNode model = Resource.Tools.readModel(resource);
try {
final ByteArrayOutputStream baos =... | public void execute(OperationContext context, ModelNode operation) {
final Resource resource = context.readResourceFromRoot(getBaseAddress());
// Get the model recursively
final ModelNode model = Resource.Tools.readModel(resource);
try {
final ByteArrayOutputStream baos =... |
protected void modelChanged(final OperationContext context, final ModelNode operation, final String attributeName,
final ModelNode newValue, final ModelNode currentValue) throws OperationFailedException {
context.completeStep();
}
| protected void modelChanged(final OperationContext context, final ModelNode operation, final String attributeName,
final ModelNode newValue, final ModelNode currentValue) throws OperationFailedException {
context.completeStep(OperationContext.RollbackHandler.NOOP... |
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
String op = operation.require(OP).asString();
PathAddress addr = PathAddress.pathAddress(operation.require(OP_ADDR));
PathAddress mapped = aliasEntry.convertToTargetAddress(addr);
O... | public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
String op = operation.require(OP).asString();
PathAddress addr = PathAddress.pathAddress(operation.require(OP_ADDR));
PathAddress mapped = aliasEntry.convertToTargetAddress(addr);
O... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.