buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
protected void executeRuntimeStep(OperationContext context, ModelNode operation) throws OperationFailedException { // Address is of the form: /subsystem=infinispan/cache-container=*/*-cache=*/*-store=* PathAddress address = Operations.getPathAddress(operation); String containerName = address...
protected void executeRuntimeStep(OperationContext context, ModelNode operation) throws OperationFailedException { // Address is of the form: /subsystem=infinispan/cache-container=*/*-cache=*/*-store=* PathAddress address = context.getCurrentAddress(); String containerName = address.getEleme...
protected void executeRuntimeStep(OperationContext context, ModelNode operation) throws OperationFailedException { String channelName = Operations.getPathAddress(operation).getLastElement().getValue(); String name = Operations.getAttributeName(operation); ChannelMetric metric = ChannelMetri...
protected void executeRuntimeStep(OperationContext context, ModelNode operation) throws OperationFailedException { String channelName = context.getCurrentAddressValue(); String name = Operations.getAttributeName(operation); ChannelMetric metric = ChannelMetric.forName(name); if (me...
public void marshallAsElement(AttributeDefinition attribute, ModelNode resourceModel, boolean marshallDefault, XMLStreamWriter writer) throws XMLStreamException { resourceModel = resourceModel.get(attribute.getName()); if (resourceModel.isDefined()) { ...
public void marshallAsElement(AttributeDefinition attribute, ModelNode resourceModel, boolean marshallDefault, XMLStreamWriter writer) throws XMLStreamException { resourceModel = resourceModel.get(attribute.getName()); if (resourceModel.isDefined()) { ...
public static final String FILE_HANDLER = "file-handler"; static final PathElement FILE_HANDLER_PATH = PathElement.pathElement(FILE_HANDLER); static final AttributeDefinition[] ATTRIBUTES = Logging.join(DEFAULT_ATTRIBUTES, AUTOFLUSH, APPEND, FILE);
public static final String FILE_HANDLER = "file-handler"; static final PathElement FILE_HANDLER_PATH = PathElement.pathElement(FILE_HANDLER); static final AttributeDefinition[] ATTRIBUTES = Logging.join(DEFAULT_ATTRIBUTES, AUTOFLUSH, APPEND, FILE, NAMED_FORMATTER);
String formatterNotFound(String name); /* * 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 ...
String formatterNotFound(String name); /* * 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 ...
public static final PropertyAttributeDefinition SUFFIX = PropertyAttributeDefinition.Builder.of("suffix", ModelType.STRING) .setAllowExpression(true) .setAttributeMarshaller(ElementAttributeMarshaller.VALUE_ATTRIBUTE_MARSHALLER) .setValidator(new SuffixValidator()) .b...
public static final PropertyAttributeDefinition SUFFIX = PropertyAttributeDefinition.Builder.of("suffix", ModelType.STRING) .setAllowExpression(true) .setAttributeMarshaller(ElementAttributeMarshaller.VALUE_ATTRIBUTE_MARSHALLER) .setValidator(new SuffixValidator()) .b...
public static final PropertyAttributeDefinition ROTATE_SIZE = PropertyAttributeDefinition.Builder.of("rotate-size", ModelType.STRING) .setAllowExpression(true) .setAttributeMarshaller(ElementAttributeMarshaller.VALUE_ATTRIBUTE_MARSHALLER) .setDefaultValue(new ModelNode("2m")) ...
public static final PropertyAttributeDefinition ROTATE_SIZE = PropertyAttributeDefinition.Builder.of("rotate-size", ModelType.STRING) .setAllowExpression(true) .setAttributeMarshaller(ElementAttributeMarshaller.VALUE_ATTRIBUTE_MARSHALLER) .setDefaultValue(new ModelNode("2m")) ...
public void marshallAsElement(final AttributeDefinition attribute, final ModelNode resourceModel, final boolean marshallDefault, final XMLStreamWriter writer) throws XMLStreamException { if (isMarshallable(attribute, resourceModel, marshallDefault)) { writer.w...
public void marshallAsElement(final AttributeDefinition attribute, final ModelNode resourceModel, final boolean marshallDefault, final XMLStreamWriter writer) throws XMLStreamException { if (isMarshallable(attribute, resourceModel, marshallDefault)) { writer.w...
protected void testUpdateCommonHandlerAttributes(final KernelServices kernelServices, final ModelNode address) throws Exception { testUpdateProperties(kernelServices, address, CommonAttributes.LEVEL, "TRACE"); testUpdateProperties(kernelServices, address, CommonAttributes.ENABLED, false); te...
protected void testUpdateCommonHandlerAttributes(final KernelServices kernelServices, final ModelNode address) throws Exception { testUpdateProperties(kernelServices, address, CommonAttributes.LEVEL, "TRACE"); testUpdateProperties(kernelServices, address, CommonAttributes.ENABLED, false); te...
protected String getThreadGroupName(String threadPoolName) { return "Batch Thread"; } }
protected String getThreadGroupName(String threadPoolName) { return "batch-" + threadPoolName; } }
protected OperationRequestAddress getAddress(CommandContext ctx) throws CommandFormatException { final ParsedCommandLine args = ctx.getParsedCommandLine(); final OperationRequestAddress address; if (node.isPresent(args)) { address = new DefaultOperationRequestAddress(ctx.getCurre...
protected OperationRequestAddress getAddress(CommandContext ctx) throws CommandFormatException { final ParsedCommandLine args = ctx.getParsedCommandLine(); final OperationRequestAddress address; if (node.isPresent(args)) { address = new DefaultOperationRequestAddress(ctx.getCurre...
public void handle(ParsingContext ctx) throws CommandFormatException { if(ctx.getCharacter() == '\\') { if(ctx.getInput().length() > ctx.getLocation() + Util.LINE_SEPARATOR.length() && ctx.getInput().startsWith(Util.LINE_SEPARATOR, ctx.getLocation() + 1)) { if...
public void handle(ParsingContext ctx) throws CommandFormatException { if(ctx.getCharacter() == '\\') { if(ctx.getInput().length() > ctx.getLocation() + Util.LINE_SEPARATOR.length() && ctx.getInput().startsWith(Util.LINE_SEPARATOR, ctx.getLocation() + 1)) { if...
public static final AttributeDefinition[] ATTRIBUTE_DEFINITIONS = { KeystoreAttributes.KEYSTORE_PASSWORD, KeystoreAttributes.KEYSTORE_PATH, KeystoreAttributes.KEYSTORE_RELATIVE_TO, KeystoreAttributes.KEYSTORE_PROVIDER };
public static final AttributeDefinition[] ATTRIBUTE_DEFINITIONS = { KeystoreAttributes.KEYSTORE_PASSWORD, KeystoreAttributes.KEYSTORE_PATH, KeystoreAttributes.KEYSTORE_RELATIVE_TO };
public static final SimpleAttributeDefinition PROTOCOL = new SimpleAttributeDefinitionBuilder( CommonAttributes.PROTOCOL, ModelType.STRING, true).setValidator( new EnumValidator<Protocol>(Protocol.class, true, false)) .setDefaultValue(new ModelNode(Protocol.HTTP_REMOTING....
public static final SimpleAttributeDefinition PROTOCOL = new SimpleAttributeDefinitionBuilder( CommonAttributes.PROTOCOL, ModelType.STRING, true).setValidator( new EnumValidator<Protocol>(Protocol.class, true, false)) .setDefaultValue(new ModelNode(Protocol.REMOTE.toStrin...
private static void reportError(String message) { final boolean fatal = false; // TODO set true once all bugs have been fixed if (fatal) { Assert.fail(message); } else { System.out.println(message); } }
private static void reportError(String message) { final boolean fatal = true; if (fatal) { Assert.fail(message); } else { System.out.println(message); } }
public Iterator<String> iterator() { return toList().iterator(); } /** * Puts all values of this record into the given Map. * * @param map The Map to populate. * @return the given map. */ Map<String, String> putIn(final Map<String, String> map) { for (final Ent...
public Iterator<String> iterator() { return toList().iterator(); } /** * Puts all values of this record into the given Map. * * @param map The Map to populate. * @return the given map. */ <M extends Map<String, String>> M putIn(final M map) { for (final Entry<S...
private BindingResult bind(Map.Entry<String, ? extends Object> sourceValue, Binding binding) { String property = sourceValue.getKey(); Object value = sourceValue.getValue(); if (!binding.isEditable()) { return new PropertyNotEditableResult(property, value, messageSource); } else { binding.applySourceValu...
private BindingResult bind(Map.Entry<String, ? extends Object> sourceValue, Binding binding) { String property = sourceValue.getKey(); Object value = sourceValue.getValue(); if (!binding.isEditable()) { return new PropertyNotEditableResult(property, value, messageSource); } else { binding.applySourceValu...
private void writeAsciiLong(final long number, final int length, final int radix) throws IOException { StringBuffer tmp = new StringBuffer(); String tmpStr; if (radix == 16) { tmp.append(Long.toHexString(number)); } else if (radix == 8) { tmp.appen...
private void writeAsciiLong(final long number, final int length, final int radix) throws IOException { StringBuilder tmp = new StringBuilder(); String tmpStr; if (radix == 16) { tmp.append(Long.toHexString(number)); } else if (radix == 8) { tmp.app...
public String decode(byte[] buffer) { final int length = buffer.length; StringBuffer result = new StringBuffer(length); for (int i = 0; i < length; ++i) { byte b = buffer[i]; if (b == 0) { // Trailing null ...
public String decode(byte[] buffer) { final int length = buffer.length; StringBuilder result = new StringBuilder(length); for (int i = 0; i < length; ++i) { byte b = buffer[i]; if (b == 0) { // Trailing null ...
public static String toString(ArchiveEntry entry){ StringBuffer sb = new StringBuffer(); sb.append(entry.isDirectory()? 'd' : '-');// c.f. "ls -l" output String size = Long.toString((entry.getSize())); sb.append(' '); // Pad output to 7 places, leading spaces for(int ...
public static String toString(ArchiveEntry entry){ StringBuilder sb = new StringBuilder(); sb.append(entry.isDirectory()? 'd' : '-');// c.f. "ls -l" output String size = Long.toString((entry.getSize())); sb.append(' '); // Pad output to 7 places, leading spaces for(in...
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final ModuleSpecification moduleSpecification = deploymentUnit.getAttachment(Attachments.MODULE_SPECIFICATION); if (!Depl...
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final ModuleSpecification moduleSpecification = deploymentUnit.getAttachment(Attachments.MODULE_SPECIFICATION); if (!Depl...
private void processSessionBeans(final DeploymentUnit deploymentUnit, final List<AnnotationInstance> sessionBeanAnnotations, final SessionBeanComponentDescription.SessionBeanType annotatedSessionBeanType) { final EjbJarDescription ejbJarDescription = getEjbJarDescription(deploymentUnit); final Serv...
private void processSessionBeans(final DeploymentUnit deploymentUnit, final List<AnnotationInstance> sessionBeanAnnotations, final SessionBeanComponentDescription.SessionBeanType annotatedSessionBeanType) { final EjbJarDescription ejbJarDescription = getEjbJarDescription(deploymentUnit); final Serv...
protected ProtocolConnectionManager(final ConnectTask initial) { if(initial == null) { throw ProtocolMessages.MESSAGES.nullVar("connectTask"); } this.connectTask = initial; }
protected ProtocolConnectionManager(final ConnectTask initial) { if(initial == null) { ProtocolMessages.MESSAGES.nullVar("connectTask"); } this.connectTask = initial; }
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final ResourceRoot resourceRoot = deploymentUnit.getAttachment(Attachments.DEPLOYMENT_ROOT); if (resourceRoot == null) { ...
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final ResourceRoot resourceRoot = deploymentUnit.getAttachment(Attachments.DEPLOYMENT_ROOT); if (resourceRoot == null) { ...
public static ServiceName moduleSpecServiceName(ModuleIdentifier identifier, int phase) { if (!ServiceModuleLoader.isDynamicModule(identifier)) { throw ServerMessages.MESSAGES.missingModulePrefix(identifier, ServiceModuleLoader.MODULE_PREFIX); } return SERVICE_NAME.append(identif...
public static ServiceName moduleSpecServiceName(ModuleIdentifier identifier, int phase) { if (!ServiceModuleLoader.isDynamicModule(identifier)) { ServerMessages.MESSAGES.missingModulePrefix(identifier, ServiceModuleLoader.MODULE_PREFIX); } return SERVICE_NAME.append(identifier.ge...
public void readElement(XMLExtendedStreamReader reader, List<ModelNode> list) throws XMLStreamException { // no attributes if (reader.getAttributeCount() > 0) { throw unexpectedAttribute(reader, 0); } final ModelNode address = new ModelNode(); address.add(ModelDe...
public void readElement(XMLExtendedStreamReader reader, List<ModelNode> list) throws XMLStreamException { // no attributes if (reader.getAttributeCount() > 0) { throw unexpectedAttribute(reader, 0); } final ModelNode address = new ModelNode(); address.add(ModelDe...
protected void parseRecoveryEnvironmentElement(final XMLExtendedStreamReader reader, final ModelNode operation) throws XMLStreamException { Set<Attribute> required = EnumSet.of(Attribute.BINDING, Attribute.STATUS_BINDING); final int count = reader.getAttributeCount(); for (int i = 0; i < co...
protected void parseRecoveryEnvironmentElement(final XMLExtendedStreamReader reader, final ModelNode operation) throws XMLStreamException { Set<Attribute> required = EnumSet.of(Attribute.BINDING, Attribute.STATUS_BINDING); final int count = reader.getAttributeCount(); for (int i = 0; i < co...
public static byte[] readFileToByteArray(final File file) throws IOException { InputStream in = null; try { in = openInputStream(file); return IOUtils.toByteArray(in, file.length()); } finally { IOUtils.closeQuietly(in); } }
public static byte[] readFileToByteArray(final File file) throws IOException { InputStream in = null; try { in = openInputStream(file); return IOUtils.toByteArray(in); // Do NOT use file.length() - see NET-453 } finally { IOUtils.closeQuietly(in); ...
protected View loadView(String viewName, Locale locale) throws Exception { AbstractUrlBasedView view = buildView(viewName); View result = (View) getApplicationContext().getAutowireCapableBeanFactory().initializeBean(view, viewName); return (view.checkResource() ? result : null); }
protected View loadView(String viewName, Locale locale) throws Exception { AbstractUrlBasedView view = buildView(viewName); View result = (View) getApplicationContext().getAutowireCapableBeanFactory().initializeBean(view, viewName); return (view.checkResource(locale) ? result : null); }
private static final String NAMED_PATH_RESOURCE_PREFIX = "named_path"; static final PathElement PATH_ADDRESS = PathElement.pathElement(ModelDescriptionConstants.PATH); static final SimpleAttributeDefinition NAME = SimpleAttributeDefinitionBuilder.create(ModelDescriptionConstants.NAME, ModelTyp...
private static final String NAMED_PATH_RESOURCE_PREFIX = "named_path"; static final PathElement PATH_ADDRESS = PathElement.pathElement(ModelDescriptionConstants.PATH); static final SimpleAttributeDefinition NAME = SimpleAttributeDefinitionBuilder.create(ModelDescriptionConstants.NAME, ModelTyp...
public void processDeployment(DeploymentUnitContext context) throws DeploymentUnitProcessingException { if(context.getAttachment(ATTACHMENT_KEY) != null) return; final VirtualFile virtualFile = getVirtualFileAttachment(context); final Indexer indexer = new Indexer(); ...
public void processDeployment(DeploymentUnitContext context) throws DeploymentUnitProcessingException { if(context.getAttachment(ATTACHMENT_KEY) != null) return; final VirtualFile virtualFile = getVirtualFileAttachment(context); final Indexer indexer = new Indexer(); ...
protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> handler, final P param) { final ThreadFactoryService service = new ThreadFactoryService(); service.setNamePattern(threadNamePattern); service.setPriority(priority); service.se...
protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> handler, final P param) { final ThreadFactoryService service = new ThreadFactoryService(); service.setNamePattern(threadNamePattern); service.setPriority(priority); service.se...
public double estimateRegressionStandardError() { return Math.sqrt(estimateErrorVariance()); }
public double estimateRegressionStandardError() { return FastMath.sqrt(estimateErrorVariance()); }
private static int gcdPositive(int a, int b) { if (a == 0) { return b; } else if (b == 0) { return a; } // Make "a" and "b" odd, keeping track of common power of 2. final int aTwos = Integer.numberOfTrailingZeros(a); a >>= aTwos; ...
private static int gcdPositive(int a, int b) { if (a == 0) { return b; } else if (b == 0) { return a; } // Make "a" and "b" odd, keeping track of common power of 2. final int aTwos = Integer.numberOfTrailingZeros(a); a >>= aTwos; ...
public static double safeNorm(double[] v) { double rdwarf = 3.834e-20; double rgiant = 1.304e+19; double s1 = 0; double s2 = 0; double s3 = 0; double x1max = 0; double x3max = 0; double floatn = v.length; double agiant = rgiant / floatn; ...
public static double safeNorm(double[] v) { double rdwarf = 3.834e-20; double rgiant = 1.304e+19; double s1 = 0; double s2 = 0; double s3 = 0; double x1max = 0; double x3max = 0; double floatn = v.length; double agiant = rgiant / floatn; ...
public void testErfcMaple() { double[][] ref = new double[][] {{0.1, 4.60172162722971e-01}, {1.2, 1.15069670221708e-01}, {2.3, 1.07241100216758e-02}, {3.4, 3.36929265676881e-04}, {4.5,...
public void testErfcMaple() { double[][] ref = new double[][] {{0.1, 4.60172162722971e-01}, {1.2, 1.15069670221708e-01}, {2.3, 1.07241100216758e-02}, {3.4, 3.36929265676881e-04}, {4.5,...
public void testReduce() { final double period = -12.222; final double offset = 13; final double delta = 1.5; double orig = offset + 122456789 * period + delta; double expected = delta; Assert.assertEquals(expected, MathUtils.reduce(orig,...
public void testReduce() { final double period = -12.222; final double offset = 13; final double delta = 1.5; double orig = offset + 122456789 * period + delta; double expected = delta; Assert.assertEquals(expected, MathUtils.reduce(orig,...
public void testRepresentableDelta() { int nonRepresentableCount = 0; final double x = 100; final int numTrials = 10000; for (int i = 0; i < numTrials; i++) { final double originalDelta = Math.random(); final double delta = Precision.representableDelta(x, orig...
public void testRepresentableDelta() { int nonRepresentableCount = 0; final double x = 100; final int numTrials = 10000; for (int i = 0; i < numTrials; i++) { final double originalDelta = FastMath.random(); final double delta = Precision.representableDelta(x, ...
public DomainServerGroupSystemPropertyTestCase() { super(false); }
public DomainServerGroupSystemPropertyTestCase() { super(false, true); }
public DomainSystemPropertyTestCase() { super(false); }
public DomainSystemPropertyTestCase() { super(false, true); }
public HostServerSystemPropertyTestCase() { super(false); }
public HostServerSystemPropertyTestCase() { super(false, false); }
public HostSystemPropertyTestCase() { super(false); }
public HostSystemPropertyTestCase() { super(false, false); }
public StandaloneSystemPropertyTestCase() { super(true); }
public StandaloneSystemPropertyTestCase() { super(true, false); }
private ClientMappingsHandler() { super(AbstractSocketBindingResourceDefinition.CLIENT_MAPPINGS); } @Override void handleRuntimeChange(ModelNode operation, String attributeName, ModelNode attributeValue, SocketBinding binding) throws OperationFailedException { binding.setClientMappings(...
private ClientMappingsHandler() { super(AbstractSocketBindingResourceDefinition.CLIENT_MAPPINGS); } @Override void handleRuntimeChange(ModelNode operation, String attributeName, ModelNode attributeValue, SocketBinding binding) throws OperationFailedException { binding.setClientMappings(...
protected static final CustomLoadMetricDefinition INSTANCE = new CustomLoadMetricDefinition(); static final SimpleAttributeDefinition CLASS = SimpleAttributeDefinitionBuilder.create(CommonAttributes.CLASS, ModelType.STRING, false) .setAllowExpression(false) .setRestartAllServices() ...
protected static final CustomLoadMetricDefinition INSTANCE = new CustomLoadMetricDefinition(); static final SimpleAttributeDefinition CLASS = SimpleAttributeDefinitionBuilder.create(CommonAttributes.CLASS, ModelType.STRING, false) .setAllowExpression(false) .setRestartAllServices() ...
protected static final LoadMetricDefinition INSTANCE = new LoadMetricDefinition(); static final SimpleAttributeDefinition TYPE = SimpleAttributeDefinitionBuilder.create(CommonAttributes.TYPE, ModelType.STRING, false) .setAllowExpression(false) .setRestartAllServices() .setVa...
protected static final LoadMetricDefinition INSTANCE = new LoadMetricDefinition(); static final SimpleAttributeDefinition TYPE = SimpleAttributeDefinitionBuilder.create(CommonAttributes.TYPE, ModelType.STRING, false) .setAllowExpression(false) .setRestartAllServices() .setVa...
private final List<AccessConstraintDefinition> accessConstraints; static void buildTransformation(ModelVersion version, ResourceTransformationDescriptionBuilder builder) { if (ModClusterModel.VERSION_1_2_0.requiresTransformation(version)) { builder.addChildResource(PATH) ...
private final List<AccessConstraintDefinition> accessConstraints; static void buildTransformation(ModelVersion version, ResourceTransformationDescriptionBuilder builder) { if (ModClusterModel.VERSION_1_3_0.requiresTransformation(version)) { builder.addChildResource(PATH) ...
protected static final SimpleAttributeDefinition ENABLED = new SimpleAttributeDefinitionBuilder(Constants.ENABLED, ModelType.BOOLEAN) .setAllowNull(true) .setFlags(AttributeAccess.Flag.RESTART_ALL_SERVICES) .setDefaultValue(new ModelNode(true)) .setAllowExpression(tru...
protected static final SimpleAttributeDefinition ENABLED = new SimpleAttributeDefinitionBuilder(Constants.ENABLED, ModelType.BOOLEAN) .setAllowNull(true) .setFlags(AttributeAccess.Flag.RESTART_ALL_SERVICES) .setDefaultValue(new ModelNode(true)) .setAllowExpression(tru...
import org.springframework.web.socket.WebSocketHttpHeaders; /* * Copyright 2002-2013 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://ww...
import org.springframework.web.socket.WebSocketHttpHeaders; /* * Copyright 2002-2013 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://ww...
package org.springframework.web.socket.client.standard; /* * Copyright 2002-2013 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....
package org.springframework.web.socket.client.standard; /* * Copyright 2002-2013 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....
import org.springframework.web.socket.handler.PerConnectionWebSocketHandler; /* * Copyright 2002-2013 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 * ...
import org.springframework.web.socket.handler.PerConnectionWebSocketHandler; /* * Copyright 2002-2013 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 * ...
import org.springframework.web.socket.handler.ExceptionWebSocketHandlerDecorator; /* * Copyright 2002-2013 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 a...
import org.springframework.web.socket.handler.ExceptionWebSocketHandlerDecorator; /* * Copyright 2002-2013 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 a...
public void setup() { this.session = mock(Session.class); this.webSocketHandler = mock(WebSocketHandler.class); this.webSocketSession = new JettyWebSocketSession(null); this.adapter = new JettyWebSocketHandlerAdapter(this.webSocketHandler, this.webSocketSession); }
public void setup() { this.session = mock(Session.class); this.webSocketHandler = mock(WebSocketHandler.class); this.webSocketSession = new JettyWebSocketSession(null, null); this.adapter = new JettyWebSocketHandlerAdapter(this.webSocketHandler, this.webSocketSession); }
public void setup() { this.session = mock(Session.class); this.webSocketHandler = mock(WebSocketHandler.class); this.webSocketSession = new StandardWebSocketSession(null, null, null); this.adapter = new StandardWebSocketHandlerAdapter(this.webSocketHandler, this.webSocketSession); }
public void setup() { this.session = mock(Session.class); this.webSocketHandler = mock(WebSocketHandler.class); this.webSocketSession = new StandardWebSocketSession(null, null, null, null); this.adapter = new StandardWebSocketHandlerAdapter(this.webSocketHandler, this.webSocketSession); }
private ServiceTarget serviceTarget; static ServiceName getServiceName(DeploymentUnit depUnit) { return ServiceName.JBOSS.append("arquillian", "config", depUnit.getName()); } ArquillianConfig(ArquillianService arqService, DeploymentUnit depUnit, Set<String> testClasses) { this.arqServi...
private ServiceTarget serviceTarget; static ServiceName getServiceName(DeploymentUnit depUnit) { return ServiceName.JBOSS.append("arquillian", "config", depUnit.getName()); } ArquillianConfig(ArquillianService arqService, DeploymentUnit depUnit, Set<String> testClasses) { this.arqServi...
Batcher<TransactionBatch> getBatcher(); /* * 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 can...
Batcher<TransactionBatch> getBatcher(); /* * 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 can...
package org.jboss.as.clustering.service; package org.jboss.as.cluster.service; public class ServiceProviderRegistryServiceTestCase { }
package org.jboss.as.clustering.service; package org.jboss.as.clustering.service; public class ServiceProviderRegistryServiceTestCase { }
private static Archive<?> createDeployment() { WebArchive war = ShrinkWrap.create(WebArchive.class, "singleton.war"); war.addPackage(MyService.class.getPackage()); war.setManifest(new StringAsset("Manifest-Version: 1.0\nDependencies: org.jboss.msc, org.jboss.as.clustering.singleton, org.jbos...
private static Archive<?> createDeployment() { WebArchive war = ShrinkWrap.create(WebArchive.class, "singleton.war"); war.addPackage(MyService.class.getPackage()); war.setManifest(new StringAsset("Manifest-Version: 1.0\nDependencies: org.jboss.msc, org.jboss.as.clustering.common, org.jboss.a...
public void testLegacyOperations() throws Exception { List<ModelNode> ops = new LinkedList<ModelNode>(); PathAddress subsystemAddress = PathAddress.EMPTY_ADDRESS.append(SUBSYSTEM, getMainSubsystemName()); PathAddress udpAddress = subsystemAddress.append("stack", "udp"); PathAddress t...
public void testLegacyOperations() throws Exception { List<ModelNode> ops = new LinkedList<ModelNode>(); PathAddress subsystemAddress = PathAddress.EMPTY_ADDRESS.append(SUBSYSTEM, getMainSubsystemName()); PathAddress udpAddress = subsystemAddress.append("stack", "udp"); PathAddress t...
protected static final SimpleAttributeDefinition ENABLED = new SimpleAttributeDefinitionBuilder(Constants.ENABLED, ModelType.BOOLEAN) .setAllowNull(true) .setFlags(AttributeAccess.Flag.RESTART_ALL_SERVICES) .setDefaultValue(new ModelNode(true)) .setAllowExpression(tru...
protected static final SimpleAttributeDefinition ENABLED = new SimpleAttributeDefinitionBuilder(Constants.ENABLED, ModelType.BOOLEAN) .setAllowNull(true) .setFlags(AttributeAccess.Flag.RESTART_ALL_SERVICES) .setDefaultValue(new ModelNode(true)) .setAllowExpression(tru...
private static void configureFilterRef(final ModelNode model, ServiceBuilder<LocationService> builder, LocationService service) { if (model.hasDefined(Constants.FILTER_REF)) { for (Property property : model.get(Constants.FILTER_REF).asPropertyList()) { String name = property.getN...
private void configureFilterRef(final ModelNode model, ServiceBuilder<LocationService> builder, LocationService service) { if (model.hasDefined(Constants.FILTER_REF)) { for (Property property : model.get(Constants.FILTER_REF).asPropertyList()) { String name = property.getName(); ...
public static String swapCase(String str) { if (str == null || str.length() == 0) { return str; } char[] buffer = str.toCharArray(); for (int i = 0; i < buffer.length; i++) { char ch = buffer[i]; if (Character.isUpperCase(ch)) { b...
public static String swapCase(String str) { if (StringUtils.isEmpty(str)) { return str; } char[] buffer = str.toCharArray(); for (int i = 0; i < buffer.length; i++) { char ch = buffer[i]; if (Character.isUpperCase(ch)) { buffer[i]...
public Object getValueAndReset() { Long collectionCountP = _gcBean.getCollectionCount(); Long collectionTimeP = _gcBean.getCollectionTime(); Map ret = null; if(_collectionCount!=null && _collectionTime!=null) { ret = ImmutableMap.builder() ...
public Object getValueAndReset() { Long collectionCountP = _gcBean.getCollectionCount(); Long collectionTimeP = _gcBean.getCollectionCount(); Map ret = null; if(_collectionCount!=null && _collectionTime!=null) { ret = ImmutableMap.builder() ...
private void minpackTest(MinpackFunction function, boolean exceptionExpected) { final double tol = 2.22044604926e-16; final double sqrtTol = FastMath.sqrt(tol); LevenbergMarquardtOptimizer optimizer = new LevenbergMarquardtOptimizer() .withCostRelativeTolerance(sqrtTol) ...
private void minpackTest(MinpackFunction function, boolean exceptionExpected) { final double tol = 2.22044604926e-16; final double sqrtTol = FastMath.sqrt(tol); LevenbergMarquardtOptimizer optimizer = new LevenbergMarquardtOptimizer() .withCostRelativeTolerance(sqrtTol) ...
public synchronized int nextInt(int n) { return wrapped.nextInt(); }
public synchronized int nextInt(int n) { return wrapped.nextInt(n); }
public ModelNode buildRequestWithoutHeaders(CommandContext ctx) throws CommandFormatException { final ModelNode composite = new ModelNode(); composite.get(Util.OPERATION).set(Util.COMPOSITE); composite.get(Util.ADDRESS).setEmptyList(); final ModelNode steps = composite.get(Util.STEP...
public ModelNode buildRequestWithoutHeaders(CommandContext ctx) throws CommandFormatException { final ModelNode composite = new ModelNode(); composite.get(Util.OPERATION).set(Util.COMPOSITE); composite.get(Util.ADDRESS).setEmptyList(); final ModelNode steps = composite.get(Util.STEP...
public UniqueFilterIterator(final Iterator<E> iterator) { super(iterator, UniquePredicate.uniquePredicate()); } }
public UniqueFilterIterator(final Iterator<? extends E> iterator) { super(iterator, UniquePredicate.uniquePredicate()); } }
protected Object invokeFind(final InterceptorContext context, final EntityBeanComponentInstance instance) throws Exception { final CmpEntityBeanComponentInstance cmpInstance = CmpEntityBeanComponentInstance.class.cast(instance); final CmpEntityBeanComponent cmpComponent = cmpInstance.getComponent();...
protected Object invokeFind(final InterceptorContext context, final EntityBeanComponentInstance instance) throws Exception { final CmpEntityBeanComponentInstance cmpInstance = CmpEntityBeanComponentInstance.class.cast(instance); final CmpEntityBeanComponent cmpComponent = cmpInstance.getComponent();...
protected void afterRemove(final EntityBeanComponentInstance instance) throws RemoveException, RemoteException { // Invoke CMP remove final CmpEntityBeanComponentInstance cmpInstance = CmpEntityBeanComponentInstance.class.cast(instance); cmpInstance.getComponent().getStoreManager().removeEnt...
protected void afterRemove(final EntityBeanComponentInstance instance) throws RemoveException, RemoteException { // Invoke CMP remove final CmpEntityBeanComponentInstance cmpInstance = CmpEntityBeanComponentInstance.class.cast(instance); cmpInstance.getComponent().getStoreManager().removeEnt...
public Object processInvocation(InterceptorContext context) throws Exception { CMRMessage relationshipMessage = context.getPrivateData(CMRMessage.class); if (relationshipMessage == null) { // Not a relationship message. Invoke down the chain return context.proceed(); ...
public Object processInvocation(InterceptorContext context) throws Exception { CMRMessage relationshipMessage = context.getPrivateData(CMRMessage.class); if (relationshipMessage == null) { // Not a relationship message. Invoke down the chain return context.proceed(); ...
public Object processInvocation(final InterceptorContext context) throws Exception { final CmpEntityBeanComponent component = getComponent(context, CmpEntityBeanComponent.class); final Object primaryKey = context.getPrivateData(EntityBeanComponent.PRIMARY_KEY_CONTEXT_KEY); ...
public Object processInvocation(final InterceptorContext context) throws Exception { final CmpEntityBeanComponent component = getComponent(context, CmpEntityBeanComponent.class); final Object primaryKey = context.getPrivateData(EntityBeanComponent.PRIMARY_KEY_CONTEXT_KEY); ...
private UnifiedServiceRefMetaData getServiceReference(final DeploymentUnit deploymentUnit, final String name, final String type, final String value, final String wsdlLocation) { final UnifiedServiceRefMetaData reference = new UnifiedServiceRefMetaData(getUnifiedVirtualFile(deploymentUnit)); referenc...
private UnifiedServiceRefMetaData getServiceReference(final DeploymentUnit deploymentUnit, final String name, final String type, final String value, final String wsdlLocation) { final UnifiedServiceRefMetaData reference = new UnifiedServiceRefMetaData(getUnifiedVirtualFile(deploymentUnit)); referenc...
private static final Pattern ARCHIVE_PATTERN = Pattern.compile("^.*\\.[SsWwJjEeRr][Aa][Rr]$");
private enum ScanStatus { ABORT, RETRY, PROCEED } }
private static MockServerManagerProcess create(Managed managed, int pmPort) throws Exception { MockServerManagerEnvironment environment = new MockServerManagerEnvironment(false, pmPort); MockServerManagerProcess sm = new MockServerManagerProcess(managed, environment); sm.serverListener = Tes...
private static MockServerManagerProcess create(Managed managed, int pmPort) throws Exception { MockServerManagerEnvironment environment = new MockServerManagerEnvironment(false, pmPort); MockServerManagerProcess sm = new MockServerManagerProcess(managed, environment); sm.serverListener = Tes...
protected String getSubsystemXml() throws IOException { return readResource("undertow-2.0.xml"); }
protected String getSubsystemXml() throws IOException { return readResource("undertow-1.1.xml"); }
public void testRandomStringUtils() { String r1 = RandomStringUtils.random(50); assertEquals("random(50) length", 50, r1.length()); String r2 = RandomStringUtils.random(50); assertEquals("random(50) length", 50, r2.length()); assertTrue("!r1.equals(r2)", !r1.equals(r2)); ...
public void testRandomStringUtils() { String r1 = RandomStringUtils.random(50); assertEquals("random(50) length", 50, r1.length()); String r2 = RandomStringUtils.random(50); assertEquals("random(50) length", 50, r2.length()); assertTrue("!r1.equals(r2)", !r1.equals(r2)); ...
private ClassLoader getLoader() { if(loader!=null) return loader; else return Thread.currentThread().getContextClassLoader(); }
private ClassLoader getLoader() { if(loader!=null) return loader; else return ConsoleHandler.class.getClassLoader(); }
public void stopServers(int gracefulTimeout) { stopServers(gracefulTimeout, false); } void stopServers(int gracefulTimeout, boolean blockUntilStopped) { stopped = true; Map<String, ProcessInfo> processInfoMap = determineRunningProcesses(); for (String serverProcessName : pro...
public void stopServers(int gracefulTimeout) { stopServers(gracefulTimeout, false); } void stopServers(int gracefulTimeout, boolean blockUntilStopped) { stopped = true; Map<String, ProcessInfo> processInfoMap = determineRunningProcesses(); for (String serverProcessName : pro...
private static boolean hasRemoveOnCancelPolicyMethod = ClassUtils.hasMethod( ScheduledThreadPoolExecutor.class, "setRemoveOnCancelPolicy", Boolean.class);
private static boolean hasRemoveOnCancelPolicyMethod = ClassUtils.hasMethod( ScheduledThreadPoolExecutor.class, "setRemoveOnCancelPolicy", boolean.class);
protected void performBoottime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException { final String connectorName = model.require(CONNECTOR_REF).asString(); final Serv...
protected void performBoottime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException { final String connectorName = model.require(CONNECTOR_REF).asString(); final Serv...
AliasedEmployee addNickNames(final Employee employee, final String... nickNames); /* * 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 contribu...
AliasedEmployee addNickNames(final Employee employee, final String... nickNames); /* * 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 contribu...
public void setCacheDir(File cacheDir) { Assert.notNull(cacheDir, "'cacheDir' must not be null"); Assert.isTrue(cacheDir.isDirectory(), "'cacheDir' is not a valid directory"); this.cacheDir = cacheDir; }
public void setCacheDir(File cacheDir) { Assert.notNull(cacheDir, "'cacheDir' must not be null"); Assert.isTrue(cacheDir.isDirectory(), "'cacheDir' is not a directory"); this.cacheDir = cacheDir; }
public ResourceReferenceFactory<EntityManagerFactory> registerPersistenceUnitInjectionPoint(final InjectionPoint injectionPoint) { //TODO: cache this stuff final PersistenceUnit context = injectionPoint.getAnnotated().getAnnotation(PersistenceUnit.class); if (context == null) { t...
public ResourceReferenceFactory<EntityManagerFactory> registerPersistenceUnitInjectionPoint(final InjectionPoint injectionPoint) { //TODO: cache this stuff final PersistenceUnit context = getResourceAnnotated(injectionPoint).getAnnotation(PersistenceUnit.class); if (context == null) { ...
protected Interceptor create(Component component, InterceptorFactoryContext context) { final EJBComponent ejb = (EJBComponent) component; TransactionAttributeType txAttr; if (methodIdentifier == null) { if(treatRequiredAsRequiresNew) { txAt...
protected Interceptor create(Component component, InterceptorFactoryContext context) { final EJBComponent ejb = (EJBComponent) component; TransactionAttributeType txAttr; if (methodIdentifier == null) { if(treatRequiredAsRequiresNew) { txAt...
private final DeploymentScanRunnable scanRunnable = new DeploymentScanRunnable(); FileSystemDeploymentService(final String relativeTo, final File deploymentDir, final File relativeToDir, final ModelControllerClient controllerClient, final ScheduledExecutorService scheduledExecutor, fina...
private final DeploymentScanRunnable scanRunnable = new DeploymentScanRunnable(); FileSystemDeploymentService(final String relativeTo, final File deploymentDir, final File relativeToDir, final ModelControllerClient controllerClient, final ScheduledExecutorService scheduledExecutor, fina...
private static Credentials readCredentials(final OperationContext operationContext, final ModelNode model) throws OperationFailedException { if (model.has(USER_NAME)) { String un = model.get(USER_NAME).asString(); String pw = operationContext.resolveExpressions((model.get(PASSWORD)))...
private static Credentials readCredentials(final OperationContext operationContext, final ModelNode model) throws OperationFailedException { if (model.get(USER_NAME).isDefined()){ String un = model.get(USER_NAME).asString(); String pw = operationContext.resolveExpressions((model.get(...
public void buildMessage() { MockMessageSource messageSource = new MockMessageSource(); messageSource.addMessage("invalidFormat", Locale.US, "#{label} must be in format #{format}"); messageSource.addMessage("mathForm.decimalField", Locale.US, "Decimal Field"); MessageBuilder builder = new MessageBuilder(messag...
public void buildMessage() { MockMessageSource messageSource = new MockMessageSource(); messageSource.addMessage("invalidFormat", Locale.US, "#{label} must be in format #{format}"); messageSource.addMessage("mathForm.decimalField", Locale.US, "Decimal Field"); MessageBuilder builder = new MessageBuilder(messag...
public static void createRemoteOutboundConnection(final String managementServerHostName, final int managementPort, final String connectionName, final String outboundSocketRef, final Map<String, String> connec...
public static void createRemoteOutboundConnection(final String managementServerHostName, final int managementPort, final String connectionName, final String outboundSocketRef, final Map<String, String> connec...
public void run(Map<ServiceName, StartException> serviceFailures, long elapsedTime, int totalServices, int onDemandServices, int startedServices) { if(serviceFailures.isEmpty()) { log.infof("JBoss AS started in %dms. - Services [Total: %d, On-demand: %d. Started: %d]", el...
public void run(Map<ServiceName, StartException> serviceFailures, long elapsedTime, int totalServices, int onDemandServices, int startedServices) { if(serviceFailures.isEmpty()) { log.infof("JBoss AS started - Installed %d and started %d services in %dms.", totalServices,...
public void run(Map<ServiceName, StartException> serviceFailures, long elapsedTime, int totalServices, int onDemandServices, int startedServices) { if(serviceFailures.isEmpty()) { log.infof("JBoss AS started in %dms. - Services [Total: %d, On-demand: %d. Started: %d]", el...
public void run(Map<ServiceName, StartException> serviceFailures, long elapsedTime, int totalServices, int onDemandServices, int startedServices) { if(serviceFailures.isEmpty()) { log.infof("JBoss AS started - Installed %d and started %d services in %dms.", totalServices,...
public void jsonPostForObjectWithJacksonView() throws URISyntaxException { HttpHeaders entityHeaders = new HttpHeaders(); entityHeaders.setContentType(new MediaType("application", "json", Charset.forName("UTF-8"))); MySampleBean bean = new MySampleBean("with", "with", "without"); MappingJacksonValue jacksonVal...
public void jsonPostForObjectWithJacksonView() throws URISyntaxException { HttpHeaders entityHeaders = new HttpHeaders(); entityHeaders.setContentType(new MediaType("application", "json", Charset.forName("UTF-8"))); MySampleBean bean = new MySampleBean("with", "with", "without"); MappingJacksonValue jacksonVal...
protected JavaType getJavaType(Type type) { if (type instanceof Class && List.class.isAssignableFrom((Class)type)) { return new ObjectMapper().getTypeFactory().constructCollectionType(ArrayList.class, MyBean.class); } else { return super.getJavaType(type); } } }; String body = "[...
protected JavaType getJavaType(Type type) { if (type instanceof Class && List.class.isAssignableFrom((Class<?>)type)) { return new ObjectMapper().getTypeFactory().constructCollectionType(ArrayList.class, MyBean.class); } else { return super.getJavaType(type); } } }; String body = ...
protected JavaType getJavaType(Type type) { if (type instanceof Class && List.class.isAssignableFrom((Class)type)) { return TypeFactory.collectionType(ArrayList.class, MyBean.class); } else { return super.getJavaType(type); } } }; String body = "[{\"bytes\":\"AQI=\",\"array\":[\"...
protected JavaType getJavaType(Type type) { if (type instanceof Class && List.class.isAssignableFrom((Class<?>)type)) { return TypeFactory.collectionType(ArrayList.class, MyBean.class); } else { return super.getJavaType(type); } } }; String body = "[{\"bytes\":\"AQI=\",\"array\":...
private volatile Map<String, AbstractNodeRegistration> childRegistries; private static final AtomicMapFieldUpdater<NodeSubregistry, String, AbstractNodeRegistration> childRegistriesUpdater = AtomicMapFieldUpdater.newMapUpdater(AtomicReferenceFieldUpdater.newUpdater(NodeSubregistry.class, Map.class, "childRegis...
private volatile Map<String, AbstractNodeRegistration> childRegistries; private static final AtomicMapFieldUpdater<NodeSubregistry, String, AbstractNodeRegistration> childRegistriesUpdater = AtomicMapFieldUpdater.newMapUpdater(AtomicReferenceFieldUpdater.newUpdater(NodeSubregistry.class, Map.class, "childRegis...
protected AbstractDomainDeployment(final String id, final String name) { super(id); this.name = name; }
protected AbstractDomainDeployment(final String id, final String name) { super(); this.name = name; }
public void registerTransformer(Iterator<PathElement> iterator, String value, ModelVersion version, String operationName, OperationTransformerRegistry.OperationTransformerEntry entry) { getOrCreate(value).registerTransformer(iterator, version, operationName, entry); } } static Opera...
public void registerTransformer(Iterator<PathElement> iterator, String value, ModelVersion version, String operationName, OperationTransformerRegistry.OperationTransformerEntry entry) { getOrCreate(value).registerTransformer(iterator, version, operationName, entry); } } static Opera...
package org.jboss.as.testsuite.integration.deployment.classloading.ear; /* * JBoss, Home of Professional Open Source * Copyright 2010, Red Hat Inc., and individual contributors as indicated * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * This ...
package org.jboss.as.testsuite.integration.deployment.classloading.ear; /* * JBoss, Home of Professional Open Source * Copyright 2010, Red Hat Inc., and individual contributors as indicated * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * This ...
package org.jboss.as.testsuite.integration.deployment.classloading.ear; /* * JBoss, Home of Professional Open Source * Copyright 2010, Red Hat Inc., and individual contributors as indicated * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * This ...
package org.jboss.as.testsuite.integration.deployment.classloading.ear; /* * JBoss, Home of Professional Open Source * Copyright 2010, Red Hat Inc., and individual contributors as indicated * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * This ...
package org.jboss.as.testsuite.integration.deployment.classloading.rar; /* * JBoss, Home of Professional Open Source * Copyright 2010, Red Hat Inc., and individual contributors as indicated * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * This ...
package org.jboss.as.testsuite.integration.deployment.classloading.rar; /* * JBoss, Home of Professional Open Source * Copyright 2010, Red Hat Inc., and individual contributors as indicated * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * This ...
package org.jboss.as.testsuite.integration.deployment.classloading.rar; /* * JBoss, Home of Professional Open Source * Copyright 2010, Red Hat Inc., and individual contributors as indicated * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * This ...
package org.jboss.as.testsuite.integration.deployment.classloading.rar; /* * JBoss, Home of Professional Open Source * Copyright 2010, Red Hat Inc., and individual contributors as indicated * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * This ...