buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public void activateSubsystems(final ServiceActivatorContext context) { final BatchBuilder batchBuilder = context.getBatchBuilder(); // Activate extensions // Activate profile // profile.activate(context); // Activate Interfaces // final Map<String, ServerInterfaceEl...
public void activateSubsystems(final ServiceActivatorContext context) { final BatchBuilder batchBuilder = context.getBatchBuilder(); // Activate extensions // Activate profile // profile.activate(context); // Activate Interfaces // final Map<String, ServerInterfaceEl...
protected void applyUpdate(SocketBindingGroupElement group) throws UpdateFailedException { final SocketBindingElement socketBinding = new SocketBindingElement(name, group.getInterfaceResolver(), group.getDefaultInterface()); socketBinding.setConfiguredInterfaceName(interfaceName); socketBind...
protected void applyUpdate(SocketBindingGroupElement group) throws UpdateFailedException { final SocketBindingElement socketBinding = new SocketBindingElement(name, group.getDefaultInterface()); socketBinding.setConfiguredInterfaceName(interfaceName); socketBinding.setFixedPort(fixedPort); ...
public ServerEnvironment(final String hostControllerName, final Properties props, final Map<String, String> env, final String serverConfig, final LaunchType launchType, final RunningMode initialRunningMode, ProductConfig productConfig) { if (props == null) { throw Co...
public ServerEnvironment(final String hostControllerName, final Properties props, final Map<String, String> env, final String serverConfig, final LaunchType launchType, final RunningMode initialRunningMode, ProductConfig productConfig) { if (props == null) { throw Co...
public void writeOptions(TagWriter tagWriter) throws JspException { if (this.optionSource.getClass().isArray()) { renderFromArray(tagWriter); } else if (this.optionSource instanceof Collection) { renderFromCollection(tagWriter); } else if (this.optionSource instanceof Map) { renderFromMap(tagWriter)...
public void writeOptions(TagWriter tagWriter) throws JspException { if (this.optionSource.getClass().isArray()) { renderFromArray(tagWriter); } else if (this.optionSource instanceof Collection) { renderFromCollection(tagWriter); } else if (this.optionSource instanceof Map) { renderFromMap(tagWriter)...
public BatchMoveLineHandler() { super("move-batch-line"); }
public BatchMoveLineHandler() { super("batch-move-line"); }
public BatchRemoveLineHandler() { super("remove-batch-line"); }
public BatchRemoveLineHandler() { super("batch-line-remove"); }
public void testCSVFile() throws Exception { String line = readTestData(); assertNotNull("file must contain config line", line); final String[] split = line.split(" "); assertTrue(testName+" require 1 param", split.length >= 1); // first line starts with csv data file name ...
public void testCSVFile() throws Exception { String line = readTestData(); assertNotNull("file must contain config line", line); final String[] split = line.split(" "); assertTrue(testName+" require 1 param", split.length >= 1); // first line starts with csv data file name ...
private long parse(final Reader in, boolean traverseColumns) throws IOException { final CSVFormat format = CSVFormat.defaults().withIgnoreSurroundingSpaces(false).build(); long recordCount = 0; for (final CSVRecord record : format.parse(in)) { recordCount++; if (trave...
private long parse(final Reader in, boolean traverseColumns) throws IOException { final CSVFormat format = CSVFormat.newBuilder().withIgnoreSurroundingSpaces(false).build(); long recordCount = 0; for (final CSVRecord record : format.parse(in)) { recordCount++; if (tra...
protected void computeInterpolatedState(final double theta, final double oneMinusThetaH) throws DerivativeException { final double fourTheta = 4 * theta; final double oneMinusTheta = 1 - theta; final double oneMinus2Theta = 1 - 2 * t...
protected void computeInterpolatedStateAndDerivatives(final double theta, final double oneMinusThetaH) throws DerivativeException { final double fourTheta = 4 * theta; final double oneMinusTheta = 1 - theta; final double oneMinus2The...
protected void computeInterpolatedState(final double theta, final double oneMinusThetaH) throws DerivativeException { for (int i = 0; i < interpolatedState.length; ++i) { interpolatedState[i] = currentState[i] - oneMinusThetaH * yDotK[0][i]; } System.ar...
protected void computeInterpolatedStateAndDerivatives(final double theta, final double oneMinusThetaH) throws DerivativeException { for (int i = 0; i < interpolatedState.length; ++i) { interpolatedState[i] = currentState[i] - oneMinusThetaH * yDotK[0][i]; }...
public double cdf(double d);
double cdf(double d); /* * 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, Version 2.0 * (t...
public void withDefaultName() { PropertySource<?> ps = new SimpleCommandLinePropertySource(); assertThat(ps.getName(), equalTo(CommandLinePropertySource.DEFAULT_COMMAND_LINE_PROPERTY_SOURCE_NAME)); }
public void withDefaultName() { PropertySource<?> ps = new SimpleCommandLinePropertySource(); assertThat(ps.getName(), equalTo(CommandLinePropertySource.COMMAND_LINE_PROPERTY_SOURCE_NAME)); }
public static Class[] getAllInterfacesForClass(Class clazz) { return getAllInterfacesForClass(clazz, null); } /** * Return all interfaces that the given class implements as array, * including ones implemented by superclasses. * <p>If the class itself is an interface, it gets returned as sole interface. * ...
public static Class[] getAllInterfacesForClass(Class clazz) { return getAllInterfacesForClass(clazz, null); } /** * Return all interfaces that the given class implements as array, * including ones implemented by superclasses. * <p>If the class itself is an interface, it gets returned as sole interface. * ...
private void writeThreadPools(final XMLExtendedStreamWriter writer, final ModelNode threadPoolsModel) throws XMLStreamException { for (Property threadPool : threadPoolsModel.asPropertyList()) { ThreadsParser.getInstance().writeUnboundedQueueThreadPool(writer, threadPool.getValue(), EJB3Subsystem...
private void writeThreadPools(final XMLExtendedStreamWriter writer, final ModelNode threadPoolsModel) throws XMLStreamException { for (Property threadPool : threadPoolsModel.asPropertyList()) { ThreadsParser.getInstance().writeUnboundedQueueThreadPool(writer, threadPool, EJB3SubsystemXMLElement....
public void testConstructor() { assertNotNull(new BooleanUtils()); Constructor[] cons = BooleanUtils.class.getDeclaredConstructors(); assertEquals(1, cons.length); assertEquals(true, Modifier.isPublic(cons[0].getModifiers())); assertEquals(true, Modifier.isPublic(BooleanUtils...
public void testConstructor() { assertNotNull(new BooleanUtils()); Constructor<?>[] cons = BooleanUtils.class.getDeclaredConstructors(); assertEquals(1, cons.length); assertEquals(true, Modifier.isPublic(cons[0].getModifiers())); assertEquals(true, Modifier.isPublic(BooleanUt...
public void testConstructor() { assertNotNull(new CharSetUtils()); Constructor[] cons = CharSetUtils.class.getDeclaredConstructors(); assertEquals(1, cons.length); assertEquals(true, Modifier.isPublic(cons[0].getModifiers())); assertEquals(true, Modifier.isPublic(CharSetUtils...
public void testConstructor() { assertNotNull(new CharSetUtils()); Constructor<?>[] cons = CharSetUtils.class.getDeclaredConstructors(); assertEquals(1, cons.length); assertEquals(true, Modifier.isPublic(cons[0].getModifiers())); assertEquals(true, Modifier.isPublic(CharSetUt...
public void testConstructor() { assertNotNull(new CharUtils()); Constructor[] cons = CharUtils.class.getDeclaredConstructors(); assertEquals(1, cons.length); assertEquals(true, Modifier.isPublic(cons[0].getModifiers())); assertEquals(true, Modifier.isPublic(BooleanUtils.class...
public void testConstructor() { assertNotNull(new CharUtils()); Constructor<?>[] cons = CharUtils.class.getDeclaredConstructors(); assertEquals(1, cons.length); assertEquals(true, Modifier.isPublic(cons[0].getModifiers())); assertEquals(true, Modifier.isPublic(BooleanUtils.cl...
public void testConstructor() { assertNotNull(new ObjectUtils()); Constructor[] cons = ObjectUtils.class.getDeclaredConstructors(); assertEquals(1, cons.length); assertEquals(true, Modifier.isPublic(cons[0].getModifiers())); assertEquals(true, Modifier.isPublic(ObjectUtils.cl...
public void testConstructor() { assertNotNull(new ObjectUtils()); Constructor<?>[] cons = ObjectUtils.class.getDeclaredConstructors(); assertEquals(1, cons.length); assertEquals(true, Modifier.isPublic(cons[0].getModifiers())); assertEquals(true, Modifier.isPublic(ObjectUtils...
public void testConstructor() { assertNotNull(new RandomStringUtils()); Constructor[] cons = RandomStringUtils.class.getDeclaredConstructors(); assertEquals(1, cons.length); assertEquals(true, Modifier.isPublic(cons[0].getModifiers())); assertEquals(true, Modifier.isPublic(Ra...
public void testConstructor() { assertNotNull(new RandomStringUtils()); Constructor<?>[] cons = RandomStringUtils.class.getDeclaredConstructors(); assertEquals(1, cons.length); assertEquals(true, Modifier.isPublic(cons[0].getModifiers())); assertEquals(true, Modifier.isPublic...
public void testConstructor() { assertNotNull(new StringEscapeUtils()); Constructor[] cons = StringEscapeUtils.class.getDeclaredConstructors(); assertEquals(1, cons.length); assertEquals(true, Modifier.isPublic(cons[0].getModifiers())); assertEquals(true, Modifier.isPublic(St...
public void testConstructor() { assertNotNull(new StringEscapeUtils()); Constructor<?>[] cons = StringEscapeUtils.class.getDeclaredConstructors(); assertEquals(1, cons.length); assertEquals(true, Modifier.isPublic(cons[0].getModifiers())); assertEquals(true, Modifier.isPublic...
public void testConstructor() { assertNotNull(new SystemUtils()); Constructor[] cons = SystemUtils.class.getDeclaredConstructors(); assertEquals(1, cons.length); assertEquals(true, Modifier.isPublic(cons[0].getModifiers())); assertEquals(true, Modifier.isPublic(SystemUtils.cl...
public void testConstructor() { assertNotNull(new SystemUtils()); Constructor<?>[] cons = SystemUtils.class.getDeclaredConstructors(); assertEquals(1, cons.length); assertEquals(true, Modifier.isPublic(cons[0].getModifiers())); assertEquals(true, Modifier.isPublic(SystemUtils...
public void testConstructor() { assertNotNull(new WordUtils()); Constructor[] cons = WordUtils.class.getDeclaredConstructors(); assertEquals(1, cons.length); assertEquals(true, Modifier.isPublic(cons[0].getModifiers())); assertEquals(true, Modifier.isPublic(WordUtils.class.ge...
public void testConstructor() { assertNotNull(new WordUtils()); Constructor<?>[] cons = WordUtils.class.getDeclaredConstructors(); assertEquals(1, cons.length); assertEquals(true, Modifier.isPublic(cons[0].getModifiers())); assertEquals(true, Modifier.isPublic(WordUtils.class...
public static void useCachesIfNecessary(URLConnection con) { con.setUseCaches(con.getClass().getName().startsWith("JNLP")); }
public static void useCachesIfNecessary(URLConnection con) { con.setUseCaches(con.getClass().getSimpleName().startsWith("JNLP")); }
public static final SimpleAttributeDefinition ALIAS = new SimpleAttributeDefinitionBuilder(ModelDescriptionConstants.ALIAS, ModelType.STRING, true).setXmlName(ModelDescriptionConstants.ALIAS) .setValidator(new StringLengthValidator(1, Integer.MAX_VALUE, true, true)) .setFlags(Att...
public static final SimpleAttributeDefinition ALIAS = new SimpleAttributeDefinitionBuilder(ModelDescriptionConstants.ALIAS, ModelType.STRING, true).setXmlName(ModelDescriptionConstants.ALIAS) .setValidator(new StringLengthValidator(1, Integer.MAX_VALUE, true, false)) .setFlags(At...
private TldMetaData parseTLD(VirtualFile tld) throws DeploymentUnitProcessingException { if (IMPLICIT_TLD.equals(tld.getName())) { // Implicit TLDs are different from regular TLDs return new TldMetaData(); } InputStream is = null; try { ...
private TldMetaData parseTLD(VirtualFile tld) throws DeploymentUnitProcessingException { if (IMPLICIT_TLD.equals(tld.getName())) { // Implicit TLDs are different from regular TLDs return new TldMetaData(); } InputStream is = null; try { ...
package org.jboss.as.ee.component.interceptor; /* * 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; ...
package org.jboss.as.ee.component.interceptor; /* * 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; ...
package org.jboss.as.ee.component.liefcycle; /* * 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; yo...
package org.jboss.as.ee.component.liefcycle; /* * 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; yo...
protected BackingCacheEntryStoreSourceService<?, ?, ?, ?> createService(ModelNode model) { String name = model.require(EJB3SubsystemModel.NAME).asString(); ClusteredBackingCacheEntryStoreSourceService<?, ?, ?> service = new ClusteredBackingCacheEntryStoreSourceService<Serializable, Cacheable<Seriali...
protected BackingCacheEntryStoreSourceService<?, ?, ?, ?> createService(ModelNode model) { String name = model.require(EJB3SubsystemModel.NAME).asString(); ClusteredBackingCacheEntryStoreSourceService<?, ?, ?> service = new ClusteredBackingCacheEntryStoreSourceService<Serializable, Cacheable<Seriali...
public double inverseCumulativeProbability(double p) throws OutOfRangeException { if (p < 0 || p > 1) { throw new OutOfRangeException(p, 0, 1); } if (p == 0) { return a; } if (p == 1) { return b; } if (p <= (c - a) /...
public double inverseCumulativeProbability(double p) throws OutOfRangeException { if (p < 0 || p > 1) { throw new OutOfRangeException(p, 0, 1); } if (p == 0) { return a; } if (p == 1) { return b; } if (p < (c - a) / ...
public void testHole() { Vector2D[][] vertices = new Vector2D[][] { new Vector2D[] { new Vector2D(0.0, 0.0), new Vector2D(3.0, 0.0), new Vector2D(3.0, 3.0), new Vector2D(0.0, 3.0) }, new Vector2D[] { new ...
public void testHole() { Vector2D[][] vertices = new Vector2D[][] { new Vector2D[] { new Vector2D(0.0, 0.0), new Vector2D(3.0, 0.0), new Vector2D(3.0, 3.0), new Vector2D(0.0, 3.0) }, new Vector2D[] { new ...
private long parse(Reader in) throws IOException { CSVFormat format = CSVFormat.DEFAULT.withSurroundingSpacesIgnored(false); long count = 0; for (Object record : format.parse(in)) { count++; } return count; }
private long parse(Reader in) throws IOException { CSVFormat format = CSVFormat.DEFAULT.withIgnoreSurroundingSpaces(false); long count = 0; for (Object record : format.parse(in)) { count++; } return count; }
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final DeploymentUnit parent = deploymentUnit.getParent(); //only run for sub deployments if (parent == null) { ...
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final DeploymentUnit parent = deploymentUnit.getParent(); //only run for sub deployments if (parent == null) { ...
private Set<ClassInfo> processHandlesType(DotName typeName, Class<?> type, CompositeIndex index) throws DeploymentUnitProcessingException { Set<ClassInfo> classes = new HashSet<ClassInfo>(); if (type.isAnnotation()) { List<AnnotationInstance> instances = index.getAnnotations(typeName); ...
private Set<ClassInfo> processHandlesType(DotName typeName, Class<?> type, CompositeIndex index) throws DeploymentUnitProcessingException { Set<ClassInfo> classes = new HashSet<ClassInfo>(); if (type.isAnnotation()) { List<AnnotationInstance> instances = index.getAnnotations(typeName); ...
private TypedValue executeFunctionJLRMethod(ExpressionState state, Method m) throws EvaluationException { Object[] functionArgs = getArguments(state); if (!m.isVarArgs() && m.getParameterTypes().length != functionArgs.length) { throw new SpelException(SpelMessages.INCORRECT_NUMBER_OF_ARGUMENTS_TO_FUNCTION, fun...
private TypedValue executeFunctionJLRMethod(ExpressionState state, Method m) throws EvaluationException { Object[] functionArgs = getArguments(state); if (!m.isVarArgs() && m.getParameterTypes().length != functionArgs.length) { throw new SpelException(SpelMessages.INCORRECT_NUMBER_OF_ARGUMENTS_TO_FUNCTION, fun...
package org.jboss.as.testsuite.integration.osgi.xservice.api; /* * 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 ...
package org.jboss.as.testsuite.integration.osgi.xservice.api; /* * 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 ...
protected void standardSubsystemTest(final String configId, boolean compareXml) throws Exception { final AdditionalInitialization additionalInit = createAdditionalInitialization(); // Parse the subsystem xml and install into the first controller final String subsystemXml = configId == null ...
protected void standardSubsystemTest(final String configId, boolean compareXml) throws Exception { final AdditionalInitialization additionalInit = createAdditionalInitialization(); // Parse the subsystem xml and install into the first controller final String subsystemXml = configId == null ...
public void run() { System.exit(0); } }); // The intention is that this shutdown is graceful, and so the client gets a reply. // At the time of writing we did not yet have graceful shutdown. t...
public void run() { System.exit(0); } }); // The intention is that this shutdown is graceful, and so the client gets a reply. // At the time of writing we did not yet have graceful shutdown. t...
private EJBMethodDescription getEJBMethodDescription(NamedMethodMetaData namedMethodMetaData) { if (namedMethodMetaData == null) { return null; } String methodName = namedMethodMetaData.getMethodName(); MethodParametersMetaData methodParams = namedMethodMetaData.getMethod...
private EJBMethodDescription getEJBMethodDescription(NamedMethodMetaData namedMethodMetaData) { if (namedMethodMetaData == null) { return null; } String methodName = namedMethodMetaData.getMethodName(); MethodParametersMetaData methodParams = namedMethodMetaData.getMethod...
public synchronized void store() { try { if (!isRemoved()) { invokeEjbStore(); final CmpEntityBeanContext context = getEjbContext(); final JDBCEntityPersistenceStore store = getComponent().getStoreManager(); if (context.getPrimary...
public synchronized void store() { try { if (!isRemoved()) { invokeEjbStore(); final CmpEntityBeanContext context = getEjbContext(); final JDBCEntityPersistenceStore store = getComponent().getStoreManager(); if (context.getPrimary...
public void cascadeDelete(CmpEntityBeanContext ctx, List oldValues) throws RemoveException, RemoteException { boolean didDelete = false; boolean trace = log.isTraceEnabled(); for (int i = 0; i < oldValues.size(); ++i) { Object oldValue = oldValues.get(i); ...
public void cascadeDelete(CmpEntityBeanContext ctx, List oldValues) throws RemoveException, RemoteException { boolean didDelete = false; boolean trace = log.isTraceEnabled(); for (int i = 0; i < oldValues.size(); ++i) { Object oldValue = oldValues.get(i); ...
public Collection execute(Method unused, Object[] args, CmpEntityBeanContext ctx, EntityProxyFactory factory) throws FinderException { try { // invoke implementation method on ejb instance Object value; final EntityBeanComponentInstance componentInstance = ctx.getComponen...
public Collection execute(Method unused, Object[] args, CmpEntityBeanContext ctx, EntityProxyFactory factory) throws FinderException { try { // invoke implementation method on ejb instance Object value; final EntityBeanComponentInstance componentInstance = ctx.getComponen...
public Object execute(Method m, Object[] args, CmpEntityBeanContext ctx) { if (cmrWithFKMappedToCMP == null) return null; for (int i = 0; i < cmrWithFKMappedToCMP.length; ++i) { JDBCCMRFieldBridge cmrField = cmrWithFKMappedToCMP[i]; JDBCCMRFieldBridge relatedCMRF...
public Object execute(Method m, Object[] args, CmpEntityBeanContext ctx) { if (cmrWithFKMappedToCMP == null) return null; for (int i = 0; i < cmrWithFKMappedToCMP.length; ++i) { JDBCCMRFieldBridge cmrField = cmrWithFKMappedToCMP[i]; JDBCCMRFieldBridge relatedCMRF...
public boolean loadEntity(CmpEntityBeanContext ctx, boolean failIfNotFound) { // is any on the data already in the entity valid if (!ctx.isValid()) { if (log.isTraceEnabled()) { log.trace("RESET PERSISTENCE CONTEXT: id=" + ctx.getPrimaryKey()); } e...
public boolean loadEntity(CmpEntityBeanContext ctx, boolean failIfNotFound) { // is any on the data already in the entity valid if (!ctx.isValid()) { if (log.isTraceEnabled()) { log.trace("RESET PERSISTENCE CONTEXT: id=" + ctx.getPrimaryKeyUnchecked()); } ...
public void initInstance(CmpEntityBeanContext ctx) { ctx.setPersistenceContext(new PersistentContext(this, table.getRow(ctx.getPrimaryKey()))); for (int i = 0; i < tableFields.length; ++i) { tableFields[i].initInstance(ctx); } for (int i = 0; i < cmrFields.length; ++i) {...
public void initInstance(CmpEntityBeanContext ctx) { ctx.setPersistenceContext(new PersistentContext(this, table.getRow(ctx.getPrimaryKeyUnchecked()))); for (int i = 0; i < tableFields.length; ++i) { tableFields[i].initInstance(ctx); } for (int i = 0; i < cmrFields.lengt...
private static final String[][] ISO8859_1_ESCAPE = { {"\u00A0", "&nbsp;"}, // non-breaking space {"\u00A1", "&iexcl;"}, // inverted exclamation mark {"\u00A2", "&cent;"}, // cent sign {"\u00A3", "&pound;"}, // pound sign {"\u00A4", "&curren;"}, // currency sign {"\u00...
private static final String[][] ISO8859_1_ESCAPE = { {"\u00A0", "&nbsp;"}, // non-breaking space {"\u00A1", "&iexcl;"}, // inverted exclamation mark {"\u00A2", "&cent;"}, // cent sign {"\u00A3", "&pound;"}, // pound sign {"\u00A4", "&curren;"}, // currency sign {"\u00...
protected AbstractServerModelUpdate<Void> getServerModelUpdate() { return null; } }
public AbstractServerModelUpdate<Void> getServerModelUpdate() { return null; } }
protected ServerExtensionAdd getServerModelUpdate() { return new ServerExtensionAdd(moduleName); } }
public ServerExtensionAdd getServerModelUpdate() { return new ServerExtensionAdd(moduleName); } }
protected AbstractServerModelUpdate<R> getServerModelUpdate() { // FIXME hmmm return serverGroupUpdate.getServerModelUpdate(); } }
public AbstractServerModelUpdate<R> getServerModelUpdate() { // FIXME hmmm return serverGroupUpdate.getServerModelUpdate(); } }
protected AbstractServerModelUpdate<Void> getServerModelUpdate() { // JvmElement changes do not affect running servers; they are picked up by // ServerManager when it launches servers return null; } }
public AbstractServerModelUpdate<Void> getServerModelUpdate() { // JvmElement changes do not affect running servers; they are picked up by // ServerManager when it launches servers return null; } }
protected AbstractServerModelUpdate<R> getServerModelUpdate() { // TODO Auto-generated method stub return null; } }
public AbstractServerModelUpdate<R> getServerModelUpdate() { // TODO Auto-generated method stub return null; } }
public static void parseDomainRootElement(final XMLExtendedStreamReader reader, final List<? super AbstractDomainModelUpdate<?>> list) throws XMLStreamException { // Read namespaces final List<NamespacePrefix> prefixes = readNamespaces(reader); if (! prefixes.isEmpty()) list.add(new DomainN...
public static void parseDomainRootElement(final XMLExtendedStreamReader reader, final List<? super AbstractDomainModelUpdate<?>> list) throws XMLStreamException { // Read namespaces final List<NamespacePrefix> prefixes = readNamespaces(reader); if (! prefixes.isEmpty()) list.add(new DomainN...
public void processDeployment(DeploymentUnitContext context) throws DeploymentUnitProcessingException { final VirtualFile deploymentRoot = VirtualFileAttachment.getVirtualFileAttachment(context); final VirtualFile jbossWebXml = deploymentRoot.getChild(JBOSS_WEB_XML); WarMetaData warMetaData ...
public void processDeployment(DeploymentUnitContext context) throws DeploymentUnitProcessingException { final VirtualFile deploymentRoot = VirtualFileAttachment.getVirtualFileAttachment(context); final VirtualFile jbossWebXml = deploymentRoot.getChild(JBOSS_WEB_XML); WarMetaData warMetaData ...
private TldMetaData parseTLD(VirtualFile tld) throws DeploymentUnitProcessingException { if (IMPLICIT_TLD.equals(tld.getName())) { // Implicit TLDs are different from regular TLDs return new TldMetaData(); } InputStream is = null; long time = System.curren...
private TldMetaData parseTLD(VirtualFile tld) throws DeploymentUnitProcessingException { if (IMPLICIT_TLD.equals(tld.getName())) { // Implicit TLDs are different from regular TLDs return new TldMetaData(); } InputStream is = null; long time = System.curren...
public void processDeployment(DeploymentUnitContext context) throws DeploymentUnitProcessingException { WarMetaData warMetaData = context.getAttachment(WarMetaData.ATTACHMENT_KEY); assert warMetaData != null; Map<String, WebFragmentMetaData> webFragments = warMetaData.getWebFragmentsMetaData...
public void processDeployment(DeploymentUnitContext context) throws DeploymentUnitProcessingException { WarMetaData warMetaData = context.getAttachment(WarMetaData.ATTACHMENT_KEY); assert warMetaData != null; Map<String, WebFragmentMetaData> webFragments = warMetaData.getWebFragmentsMetaData...
public void processDeployment(DeploymentUnitContext context) throws DeploymentUnitProcessingException { final VirtualFile deploymentRoot = VirtualFileAttachment.getVirtualFileAttachment(context); final VirtualFile webXml = deploymentRoot.getChild(WEB_XML); WarMetaData warMetaData = context.g...
public void processDeployment(DeploymentUnitContext context) throws DeploymentUnitProcessingException { final VirtualFile deploymentRoot = VirtualFileAttachment.getVirtualFileAttachment(context); final VirtualFile webXml = deploymentRoot.getChild(WEB_XML); WarMetaData warMetaData = context.g...
Class<? extends Formatter> value(); /* * Copyright 2002-2009 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LI...
Class<? extends Formatter> value(); /* * Copyright 2002-2009 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LI...
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode recoveryEnvModel, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> serviceControllers) throws OperationFailedException { final...
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode recoveryEnvModel, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> serviceControllers) throws OperationFailedException { final...
private void fill(int len) throws IOException { if (uncompressedBytesRemaining == 0) { endReached = true; } int readNow = Math.min(len, uncompressedBytesRemaining); while (readNow > 0) { final int b = readOneByte(); int length = 0; lon...
private void fill(int len) throws IOException { if (uncompressedBytesRemaining == 0) { endReached = true; } int readNow = Math.min(len, uncompressedBytesRemaining); while (readNow > 0) { final int b = readOneByte(); int length = 0; lon...
private static JTabbedPane makeTabbedPane(CliGuiContext cliGuiCtx, JPanel output) { JTabbedPane tabs = new JTabbedPane(); tabs.addTab("Command Builder", new JScrollPane(new ManagementModel(cliGuiCtx))); tabs.addTab("Output", output); return tabs; }
private static JTabbedPane makeTabbedPane(CliGuiContext cliGuiCtx, JPanel output) { JTabbedPane tabs = new JTabbedPane(); tabs.addTab("Command Builder", new ManagementModel(cliGuiCtx)); tabs.addTab("Output", output); return tabs; }
private File touch(File file) { long lastModified = file.exists() ? file.lastModified() : 0; try { FileUtils.touch(file); while (lastModified == file.lastModified()) { try { Thread.sleep(5); } catch(InterruptedException ie) ...
private File touch(File file) { long lastModified = file.exists() ? file.lastModified() : 0; try { FileUtils.touch(file); while (lastModified == file.lastModified()) { try { Thread.sleep(50); } catch(InterruptedException ie)...
void registerCustomEditor(Class requiredType, Class<? extends PropertyEditor> propertyEditorClass); /* * Copyright 2002-2009 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a cop...
void registerCustomEditor(Class requiredType, Class<? extends PropertyEditor> propertyEditorClass); /* * Copyright 2002-2009 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a cop...
package org.wildfly.clustering.ee; /* * 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 can redi...
package org.wildfly.clustering.ee; /* * 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 can redi...
protected final void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { long startTime = System.currentTimeMillis(); Throwable failureCause = null; LocaleContext previousLocaleContext = LocaleContextHolder.getLocaleContext(); LocaleContext local...
protected final void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { long startTime = System.currentTimeMillis(); Throwable failureCause = null; LocaleContext previousLocaleContext = LocaleContextHolder.getLocaleContext(); LocaleContext local...
public AsyncFuture<ServerController> start(final Configuration configuration, final List<ServiceActivator> extraServices) { if (configuration == null) { throw new IllegalArgumentException("configuration is null"); } final ModuleLoader moduleLoader = configuration.getModuleLoader(...
public AsyncFuture<ServerController> start(final Configuration configuration, final List<ServiceActivator> extraServices) { if (configuration == null) { throw new IllegalArgumentException("configuration is null"); } final ModuleLoader moduleLoader = configuration.getModuleLoader(...
public void setUp() { model = new TestBean(); alertContext = new DefaultAlertContext(); Binder binder = new WebBinderFactory().getBinder(model); lifecycle = new BindAndValidateLifecycle(binder, alertContext); }
public void setUp() { model = new TestBean(); alertContext = new DefaultAlertContext(); Binder binder = new WebBinderFactory().getBinder(model); lifecycle = new BindAndValidateLifecycle(binder, null, alertContext); }
public interface CommandLineParser { /* * 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 can re...
public interface CommandLineParser { /* * 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 can re...
package org.jboss.as.cli.parsing; /* * 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 can redis...
package org.jboss.as.cli.parsing; /* * 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 can redis...
package org.jboss.as.cli.parsing; /* * 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 can redis...
package org.jboss.as.cli.parsing; /* * 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 can redis...
package org.jboss.as.cli.parsing; /* * 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 can redis...
package org.jboss.as.cli.parsing; /* * 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 can redis...
package org.jboss.as.cli.parsing; /* * 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 can redis...
package org.jboss.as.cli.parsing; /* * 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 can redis...
package org.jboss.as.cli.parsing; /* * 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 can redis...
package org.jboss.as.cli.parsing; /* * 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 can redis...
public ArArchiveEntry getNextArEntry() throws IOException { if (currentEntry != null) { final long entryEnd = entryOffset + currentEntry.getLength(); while (offset < entryEnd) { int x = read(); if (x == -1) { // hit EOF before previ...
public ArArchiveEntry getNextArEntry() throws IOException { if (currentEntry != null) { final long entryEnd = entryOffset + currentEntry.getLength(); while (offset < entryEnd) { int x = read(); if (x == -1) { // hit EOF before previ...
private ModelNode getValueTypeDescription(final AttributeDefinition valueType, final boolean forOperation) { final ModelNode result = new ModelNode(); result.get(ModelDescriptionConstants.TYPE).set(valueType.getType()); result.get(ModelDescriptionConstants.DESCRIPTION); // placeholder ...
private ModelNode getValueTypeDescription(final AttributeDefinition valueType, final boolean forOperation) { final ModelNode result = new ModelNode(); result.get(ModelDescriptionConstants.TYPE).set(valueType.getType()); result.get(ModelDescriptionConstants.DESCRIPTION); // placeholder ...
private void cleanupKnownDifferencesInModelsForVersioningCheck(ModelNode masterModel, ModelNode slaveModel) { if (version == AsVersion.V_7_1_2_Final || version == AsVersion.V_7_1_3_Final) { //First get rid of any undefined crap cleanUndefinedNodes(masterModel); cleanUndef...
private void cleanupKnownDifferencesInModelsForVersioningCheck(ModelNode masterModel, ModelNode slaveModel) { if (version == AsVersion.AS_7_1_2_FINAL || version == AsVersion.AS_7_1_3_FINAL) { //First get rid of any undefined crap cleanUndefinedNodes(masterModel); cleanUnd...
public interface ITaskHook { package backtype.storm.hooks; import backtype.storm.hooks.info.BoltAckInfo; import backtype.storm.hooks.info.SpoutFailInfo; import backtype.storm.hooks.info.SpoutAckInfo; import backtype.storm.hooks.info.EmitInfo; import backtype.storm.hooks.info.BoltFailInfo; public interface TaskHook {...
public interface ITaskHook { package backtype.storm.hooks; import backtype.storm.hooks.info.BoltAckInfo; import backtype.storm.hooks.info.SpoutFailInfo; import backtype.storm.hooks.info.SpoutAckInfo; import backtype.storm.hooks.info.EmitInfo; import backtype.storm.hooks.info.BoltFailInfo; public interface ITaskHook ...
protected abstract AbstractDataSourceService createDataSourceService(final String jndiName) throws OperationFailedException; static void populateAddModel(final ModelNode operation, final ModelNode modelNode, final String connectionPropertiesProp, final SimpleAttributeDefinition[] attributes) throws...
protected abstract AbstractDataSourceService createDataSourceService(final String jndiName) throws OperationFailedException; static void populateAddModel(final ModelNode operation, final ModelNode modelNode, final String connectionPropertiesProp, final SimpleAttributeDefinition[] attributes) throws...
private LocalCacheAdd() { super(CacheMode.LOCAL); } // used to create subsystem description static ModelNode createOperation(ModelNode address, ModelNode model) { ModelNode operation = Util.getEmptyOperation(ADD, address); INSTANCE.populate(model, operation); return oper...
private LocalCacheAdd() { super(CacheMode.LOCAL); } // used to create subsystem description static ModelNode createOperation(ModelNode address, ModelNode model) throws OperationFailedException { ModelNode operation = Util.getEmptyOperation(ADD, address); INSTANCE.populate(model,...
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException { ROOT_LOGGER.activatingSubsystem(); ServiceTarget target = context.ge...
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException { ROOT_LOGGER.activatingSubsystem(); ServiceTarget target = context.ge...
public void testGetFloatParameterWithDefaultValueHandlingIsFastEnough() { MockPortletRequest request = new MockPortletRequest(); StopWatch sw = new StopWatch(); sw.start(); for (int i = 0; i < 1000000; i++) { PortletRequestUtils.getFloatParameter(request, "nonExistingParam", 0f); } sw.stop(); assertTh...
public void testGetFloatParameterWithDefaultValueHandlingIsFastEnough() { MockPortletRequest request = new MockPortletRequest(); StopWatch sw = new StopWatch(); sw.start(); for (int i = 0; i < 1000000; i++) { PortletRequestUtils.getFloatParameter(request, "nonExistingParam", 0f); } sw.stop(); assertTh...
private DeploymentManager getDeploymentManager() throws Exception { String uri = DeploymentManagerImpl.DEPLOYER_URI + "?targetType=as7" + managementClient.getMgmtAddress() + "&serverPort=" + managementClient.getMgmtPort(); DeploymentFactoryImpl.register(); DeploymentFactoryManager dfManager ...
private DeploymentManager getDeploymentManager() throws Exception { String uri = DeploymentManagerImpl.DEPLOYER_URI + "?targetType=as7&serverHost=" + managementClient.getMgmtAddress() + "&serverPort=" + managementClient.getMgmtPort(); DeploymentFactoryImpl.register(); DeploymentFactoryManage...
<T> ResponseEntity<T> postForEntity(String url, Object request, Class<T> responseType, Map<String, ?> uriVariables) /* * Copyright 2002-2010 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 ...
<T> ResponseEntity<T> postForEntity(String url, Object request, Class<T> responseType, Map<String, ?> uriVariables) /* * Copyright 2002-2010 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 ...
public ManagedReference createInstance(final Object instance) { final ComponentManagedReferenceFactory factory = componentsByClass.get(instance.getClass()); if (factory == null) { return null; } return factory.getReference(instance); }
public ManagedReference createInstance(final Object instance) { final ComponentManagedReferenceFactory factory = componentsByClass.get(instance.getClass()); if (factory == null) { return classIntrospectorInjectedValue.getValue().createInstance(instance); } return factory...
private Number parseNumber(String source, double value, ParsePosition pos) { Number ret = null; StringBuffer sb = new StringBuffer(); sb.append('('); sb.append(value); sb.append(')'); int n = sb.length(); int startIndex = pos.getIndex(); ...
private Number parseNumber(String source, double value, ParsePosition pos) { Number ret = null; StringBuffer sb = new StringBuffer(); sb.append('('); sb.append(value); sb.append(')'); int n = sb.length(); int startIndex = pos.getIndex(); ...
public void testFormatNumber() { ComplexFormat cf = ComplexFormat.getInstance(getLocale()); Double pi = Double.valueOf(Math.PI); String text = cf.format(pi); assertEquals("3" + getDecimalCharacter() + "14", text); }
public void testFormatNumber() { ComplexFormat cf = ComplexFormat.getInstance(getLocale()); Double pi = new Double(Math.PI); String text = cf.format(pi); assertEquals("3" + getDecimalCharacter() + "14", text); }
public static Test suite() { TestSuite suite = new TestSuite(); suite.setName("Commons-Lang-Text Tests"); suite.addTest(InterpolationTest.suite()); suite.addTest(StrBuilderTest.suite()); suite.addTest(StrTokenizerTest.suite()); suite.addTestSuite(VariableFormatTest.cl...
public static Test suite() { TestSuite suite = new TestSuite(); suite.setName("Commons-Lang-Text Tests"); suite.addTest(InterpolationTest.suite()); suite.addTest(StrBuilderTest.suite()); suite.addTest(StrTokenizerTest.suite()); suite.addTestSuite(VariableFormatterTest...
private static String sha2Crypt(byte[] keyBytes, String salt, String saltPrefix, int blocksize, String algorithm) throws Exception { int keyLen = keyBytes.length; // Extracts effective salt and the number of rounds from the given salt. int rounds = ROUNDS_DEFAULT; boolea...
private static String sha2Crypt(byte[] keyBytes, String salt, String saltPrefix, int blocksize, String algorithm) throws Exception { int keyLen = keyBytes.length; // Extracts effective salt and the number of rounds from the given salt. int rounds = ROUNDS_DEFAULT; boolea...
public void start(StartContext context) throws StartException { UndertowLogger.ROOT_LOGGER.infof("registering handler %s under path '%s'", httpHandler, locationPath); host.getValue().registerHandler(locationPath, configureHandler()); }
public void start(StartContext context) throws StartException { UndertowLogger.ROOT_LOGGER.registeringHandler( httpHandler.getValue(), locationPath); host.getValue().registerHandler(locationPath, configureHandler()); }
public void handle(ParsingContext ctx) throws CommandFormatException { if(ctx.isEndOfContent()) { return; } final CharacterHandler handler = enterStateHandlers.getHandler(ctx.getCharacter()); if(handler != null) { ...
public void handle(ParsingContext ctx) throws CommandFormatException { if(ctx.isEndOfContent()) { return; } final CharacterHandler handler = getHandler(ctx.getCharacter()); if(handler != null) { handler.h...
protected void doProcessConfigurationClass(ConfigurationClass configClass, AnnotationMetadata metadata) throws IOException { // recursively process any member (nested) classes first for (String memberClassName : metadata.getMemberClassNames()) { MetadataReader reader = this.metadataReaderFactory.getMetadataRea...
protected void doProcessConfigurationClass(ConfigurationClass configClass, AnnotationMetadata metadata) throws IOException { // recursively process any member (nested) classes first for (String memberClassName : metadata.getMemberClassNames()) { MetadataReader reader = this.metadataReaderFactory.getMetadataRea...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { final ModelNode address = operation.require(VALUE); final PathAddress pathAddr = PathAddress.pathAddress(address); final Resource resource = context.readResource(PathAddress.EMPTY_ADDRESS); ...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { final ModelNode address = operation.require(VALUE); final PathAddress pathAddr = PathAddress.pathAddress(address); final Resource resource = context.readResource(PathAddress.EMPTY_ADDRESS); ...
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...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { OperationStepHandler step = operation.get(OP).asString().equals(WRITE_ATTRIBUTE_OPERATION) ? WriteAttributeHandler.INSTANCE : ReadAttributeHandler.INSTANCE; ModelNode aliasOp = operation....
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { OperationStepHandler step = operation.get(OP).asString().equals(WRITE_ATTRIBUTE_OPERATION) ? WriteAttributeHandler.INSTANCE : ReadAttributeHandler.INSTANCE; ModelNode aliasOp = operation....
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { // We get the model as a list of resources descriptions final ModelNode domainModel = operation.get(DOMAIN_MODEL); final ModelNode startRoot = Resource.Tools.readModel(context.readResourceFro...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { // We get the model as a list of resources descriptions final ModelNode domainModel = operation.get(DOMAIN_MODEL); final ModelNode startRoot = Resource.Tools.readModel(context.readResourceFro...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { // We get the model as a list of resources descriptions final ModelNode domainModel = operation.get(DOMAIN_MODEL); final ModelNode startRoot = Resource.Tools.readModel(context.readResourceF...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { // We get the model as a list of resources descriptions final ModelNode domainModel = operation.get(DOMAIN_MODEL); final ModelNode startRoot = Resource.Tools.readModel(context.readResourceF...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { PathAddress opAddress = PathAddress.pathAddress(operation.get(ModelDescriptionConstants.OP_ADDR)); PathAddress parent = opAddress.append(ModClusterExtension.DYNAMIC_LOAD_PROVIDER_PATH); Strin...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { PathAddress opAddress = PathAddress.pathAddress(operation.get(ModelDescriptionConstants.OP_ADDR)); PathAddress parent = opAddress.append(ModClusterExtension.DYNAMIC_LOAD_PROVIDER_PATH); Strin...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { PathAddress opAddress = PathAddress.pathAddress(operation.get(ModelDescriptionConstants.OP_ADDR)); PathAddress parent = opAddress.append(ModClusterExtension.DYNAMIC_LOAD_PROVIDER_PATH); Stri...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { PathAddress opAddress = PathAddress.pathAddress(operation.get(ModelDescriptionConstants.OP_ADDR)); PathAddress parent = opAddress.append(ModClusterExtension.DYNAMIC_LOAD_PROVIDER_PATH); Stri...
protected void populateModel(OperationContext context, ModelNode operation, Resource resource) throws OperationFailedException { if (operation.hasDefined(CommonAttributes.MOD_CLUSTER_CONFIG)) { PathAddress opAddress = PathAddress.pathAddress(operation.get(ModelDescriptionConstants.OP_ADDR)); ...
protected void populateModel(OperationContext context, ModelNode operation, Resource resource) throws OperationFailedException { if (operation.hasDefined(CommonAttributes.MOD_CLUSTER_CONFIG)) { PathAddress opAddress = PathAddress.pathAddress(operation.get(ModelDescriptionConstants.OP_ADDR)); ...
@Message(id = 13403, value = "There were some problems during transformation process for target host: '%s' \n Problems found: %s") /* * 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 * distr...
@Message(id = 13403, value = "There were some problems during transformation process for target host: '%s' \n Problems found: %s") /* * 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 * distr...
public void testConstructor() { assertNotNull(new NumberUtils()); Constructor[] cons = NumberUtils.class.getDeclaredConstructors(); assertEquals(1, cons.length); assertEquals(true, Modifier.isPublic(cons[0].getModifiers())); assertEquals(true, Modifier.isPublic(NumberUtils.cl...
public void testConstructor() { assertNotNull(new NumberUtils()); Constructor<?>[] cons = NumberUtils.class.getDeclaredConstructors(); assertEquals(1, cons.length); assertEquals(true, Modifier.isPublic(cons[0].getModifiers())); assertEquals(true, Modifier.isPublic(NumberUtils...
private double stage(final int n, double previousStageResult) throws TooManyEvaluationsException { final double min = getMin(); final double diff = getMax() - min; if (n == 0) { final double midPoint = 0.5 * diff; return diff * compu...
private double stage(final int n, double previousStageResult) throws TooManyEvaluationsException { final double min = getMin(); final double diff = getMax() - min; if (n == 0) { final double midPoint = min + 0.5 * diff; return diff *...