buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public EnumSet<Flag> getFlags() { return flags; }
public EnumSet<Flag> getFlags() { return flags == null ? EnumSet.noneOf(Flag.class) : flags.clone(); }
protected void applyUpdateBootAction(final BootUpdateContext updateContext) { applyUpdate(updateContext, UpdateResultHandler.NULL, null); updateContext.addDeploymentProcessor(new DataSourcesAttachmentProcessor(datasources), Phase.DATA_SOURCES_ATTACHMENT_PROCESSOR); }
protected void applyUpdateBootAction(final BootUpdateContext updateContext) { applyUpdate(updateContext, UpdateResultHandler.NULL, null); updateContext.addDeploymentProcessor(Phase.PARSE, new DataSourcesAttachmentProcessor(datasources), Phase.PARSE_DATA_SOURCES); }
protected void applyUpdateBootAction(final BootUpdateContext updateContext) { applyUpdate(updateContext, UpdateResultHandler.NULL, null); updateContext.addDeploymentProcessor(INIT_ME, new ResourceAdaptersAttachingProcessor(resourceAdapters), Phase.RESOURCE_ADAPTERS_ATTACHING_PROCESSOR); }
protected void applyUpdateBootAction(final BootUpdateContext updateContext) { applyUpdate(updateContext, UpdateResultHandler.NULL, null); updateContext.addDeploymentProcessor(Phase.PARSE, Phase.PARSE_RESOURCE_ADAPTERS, new ResourceAdaptersAttachingProcessor(resourceAdapters)); }
public Object convertCollectionToCollection(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) { Collection sourceCollection = (Collection) source; TypeDescriptor sourceElementType = sourceType.getElementTypeDescriptor(); if (sourceElementType == TypeDescriptor.NULL) { sourceElementType = ge...
public Object convertCollectionToCollection(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) { Collection sourceCollection = (Collection) source; TypeDescriptor sourceElementType = sourceType.getElementTypeDescriptor(); if (sourceElementType == TypeDescriptor.NULL) { sourceElementType = ge...
protected void execute(DeploymentProcessorTarget processorTarget) { if (deployment != null && !deployment.isEmpty()) { processorTarget.addDeploymentProcessor(Constants.SUBSYSTEM_NAME, Phase.STRUCTURE, Phase.STRUCTURE_APP_CLIENT, new ApplicationClientStructureProcessor(dep...
protected void execute(DeploymentProcessorTarget processorTarget) { if (deployment != null && !deployment.isEmpty()) { processorTarget.addDeploymentProcessor(Constants.SUBSYSTEM_NAME, Phase.STRUCTURE, Phase.STRUCTURE_APP_CLIENT, new ApplicationClientStructureProcessor(dep...
protected void execute(DeploymentProcessorTarget processorTarget) { ROOT_LOGGER.debug("Activating EE subsystem"); processorTarget.addDeploymentProcessor(EeExtension.SUBSYSTEM_NAME, Phase.STRUCTURE, Phase.STRUCTURE_EE_DEPLOYMENT_PROPERTIES, new DeploymentPropertiesProcessor(...
protected void execute(DeploymentProcessorTarget processorTarget) { ROOT_LOGGER.debug("Activating EE subsystem"); processorTarget.addDeploymentProcessor(EeExtension.SUBSYSTEM_NAME, Phase.STRUCTURE, Phase.STRUCTURE_EE_DEPLOYMENT_PROPERTIES, new DeploymentPropertiesProcessor(...
protected void execute(DeploymentProcessorTarget processorTarget) { //DUP's that are used even for app client deployments processorTarget.addDeploymentProcessor(EJB3Extension.SUBSYSTEM_NAME, Phase.STRUCTURE, Phase.STRUCTURE_REGISTER_JBOSS_ALL_EJB, new JBossAllXmlParserRegist...
protected void execute(DeploymentProcessorTarget processorTarget) { //DUP's that are used even for app client deployments processorTarget.addDeploymentProcessor(EJB3Extension.SUBSYSTEM_NAME, Phase.STRUCTURE, Phase.STRUCTURE_REGISTER_JBOSS_ALL_XML_PARSER, new JBossAllXmlParse...
protected void execute(DeploymentProcessorTarget processorTarget) { // set Hibernate persistence provider as the default provider javax.persistence.spi.PersistenceProviderResolverHolder.setPersistenceProviderResolver( PersistenceProviderResolverImpl.getIn...
protected void execute(DeploymentProcessorTarget processorTarget) { // set Hibernate persistence provider as the default provider javax.persistence.spi.PersistenceProviderResolverHolder.setPersistenceProviderResolver( PersistenceProviderResolverImpl.getIn...
protected void execute(DeploymentProcessorTarget processorTarget) { processorTarget.addDeploymentProcessor(JSFExtension.SUBSYSTEM_NAME, Phase.PARSE, Phase.PARSE_JSF_VERSION, new JSFVersionProcessor(model)); processorTarget.addDeploymentProcessor(JSFExtension.SUBSYSTEM_NAME, P...
protected void execute(DeploymentProcessorTarget processorTarget) { processorTarget.addDeploymentProcessor(JSFExtension.SUBSYSTEM_NAME, Phase.PARSE, Phase.PARSE_JSF_VERSION, new JSFVersionProcessor(model)); processorTarget.addDeploymentProcessor(JSFExtension.SUBSYSTEM_NAME, P...
protected void execute(DeploymentProcessorTarget processorTarget) { // keep the statements ordered by phase + priority processorTarget.addDeploymentProcessor(MessagingExtension.SUBSYSTEM_NAME, Phase.PARSE, Phase.PARSE_EE_ANNOTATIONS, new MessagingJMSDefinitionAnnotationParser...
protected void execute(DeploymentProcessorTarget processorTarget) { // keep the statements ordered by phase + priority processorTarget.addDeploymentProcessor(MessagingExtension.SUBSYSTEM_NAME, Phase.PARSE, Phase.PARSE_EE_ANNOTATIONS, new MessagingJMSDefinitionAnnotationParser...
public static void registerJBossXMLParsers() { DeployerChainAddHandler.addDeploymentProcessor(ServerService.SERVER_NAME, Phase.STRUCTURE, Phase.STRUCTURE_REGISTER_JBOSS_ALL_DEPLOYMENT_DEPS, new JBossAllXmlParserRegisteringProcessor<DeploymentDependencies>(ROOT_1_0, DeploymentDependencies.ATTACHMENT_KEY, Dep...
public static void registerJBossXMLParsers() { DeployerChainAddHandler.addDeploymentProcessor(ServerService.SERVER_NAME, Phase.STRUCTURE, Phase.STRUCTURE_REGISTER_JBOSS_ALL_XML_PARSER, new JBossAllXmlParserRegisteringProcessor<DeploymentDependencies>(ROOT_1_0, DeploymentDependencies.ATTACHMENT_KEY, Deployme...
public static JavaArchive createDeployment() throws Exception { JavaArchive jar = ShrinkWrap.create(JavaArchive.class, "messaging-example.jar"); jar.addAsManifestResource(new StringAsset("Manifest-Version: 1.0\n" + "Dependencies: org.hornetq\n"), "MANIFEST.MF"); jar.addClass...
public static JavaArchive createDeployment() throws Exception { JavaArchive jar = ShrinkWrap.create(JavaArchive.class, "messaging-example.jar"); jar.addAsManifestResource(new StringAsset("Manifest-Version: 1.0\n" + "Dependencies: org.hornetq, org.jboss.dmr\n"), "MANIFEST.MF"); ...
protected void execute(DeploymentProcessorTarget processorTarget) { processorTarget.addDeploymentProcessor(WeldExtension.SUBSYSTEM_NAME, Phase.STRUCTURE, Phase.STRUCTURE_REGISTER_JBOSS_ALL_WELD, new JBossAllXmlParserRegisteringProcessor<>(WeldJBossAllParser.ROOT_ELEMENT, WeldJBossAllConfigur...
protected void execute(DeploymentProcessorTarget processorTarget) { processorTarget.addDeploymentProcessor(WeldExtension.SUBSYSTEM_NAME, Phase.STRUCTURE, Phase.STRUCTURE_REGISTER_JBOSS_ALL_XML_PARSER, new JBossAllXmlParserRegisteringProcessor<>(WeldJBossAllParser.ROOT_ELEMENT, WeldJBossAllCo...
public void undeploy(final DeploymentUnit context) { } private void processEjb(final EJBComponentDescription componentDescription, final DeploymentClassIndex classIndex, final DeploymentReflectionIndex deploymentReflectionIndex, final Module module, final ServiceTarget serviceTarget) { componentDe...
public void undeploy(final DeploymentUnit context) { } private void processEjb(final EJBComponentDescription componentDescription, final DeploymentClassIndex classIndex, final DeploymentReflectionIndex deploymentReflectionIndex, final Module module, final ServiceTarget serviceTarget) { componentDe...
public void testRequestDataValueProcessorHooks() throws Exception { String action = "/my/form?foo=bar"; RequestDataValueProcessor processor = getMockRequestDataValueProcessor(); given(processor.processAction(this.request, action, "post")).willReturn(action); given(processor.getExtraHiddenFields(this.request))....
public void testRequestDataValueProcessorHooks() throws Exception { String action = "/my/form?foo=bar"; RequestDataValueProcessor processor = getMockRequestDataValueProcessor(); given(processor.processAction(this.request, action, "post")).willReturn(action); given(processor.getExtraHiddenFields(this.request))....
protected void performRemove(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException { super.performRemove(context, operation, model); final PathAddress address = PathAddress.pathAddress(operation.get(OP_ADDR)); String module = address.getLastElement()...
protected void performRemove(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException { super.performRemove(context, operation, model); final PathAddress address = PathAddress.pathAddress(operation.get(OP_ADDR)); String module = address.getLastElement()...
public enum EntryType { PUBLIC, PRIVATE; }
public enum EntryType { PUBLIC, PRIVATE }
public void testReadOperationDescriptionOperation() throws Exception { ModelNode operation = createOperation(READ_OPERATION_DESCRIPTION_OPERATION, "profile", "profileA", "subsystem", "subsystem1"); operation.get(NAME).set("Nothing"); try { ModelNode result = executeForResult(ope...
public void testReadOperationDescriptionOperation() throws Exception { ModelNode operation = createOperation(READ_OPERATION_DESCRIPTION_OPERATION, "profile", "profileA", "subsystem", "subsystem1"); operation.get(NAME).set("Nothing"); try { ModelNode result = executeForResult(ope...
protected void checkCanRemove(OperationContext context, ModelNode operation) throws OperationFailedException { final String deploymentName = PathAddress.pathAddress(operation.require(OP_ADDR)).getLastElement().getValue(); final Resource root = context.getRootResource(); if(root.hasChild(Pat...
protected void checkCanRemove(OperationContext context, ModelNode operation) throws OperationFailedException { final String deploymentName = PathAddress.pathAddress(operation.require(OP_ADDR)).getLastElement().getValue(); final Resource root = context.readResourceFromRoot(PathAddress.EMPTY_ADDRESS);...
private static InputStream getContents(OperationContext context, ModelNode operation) throws OperationFailedException { if(! operation.hasDefined(CONTENT)) { createFailureException(MESSAGES.invalidContentDeclaration()); } return getInputStream(context, operation.require(CONTENT)....
private static InputStream getContents(OperationContext context, ModelNode operation) throws OperationFailedException { if(! operation.hasDefined(CONTENT)) { throw createFailureException(MESSAGES.invalidContentDeclaration()); } return getInputStream(context, operation.require(CON...
public void initializeDomainConfigurationPersister(boolean slave) { if (domainPersister != null) { throw MESSAGES.configurationPersisterAlreadyInitialized(); } final File configDir = environment.getDomainConfigurationDir(); if (slave) { if (environment.isBack...
public void initializeDomainConfigurationPersister(boolean slave) { if (domainPersister != null) { throw MESSAGES.configurationPersisterAlreadyInitialized(); } final File configDir = environment.getDomainConfigurationDir(); if (slave) { if (environment.isBack...
public static ResourceDescriptionResolver getResolver(final String keyPrefix, final boolean useUnprefixedChildTypes) { return new StandardResourceDescriptionResolver(keyPrefix, RESOURCE_NAME, HostEnvironmentResourceDescription.class.getClassLoader(), true, useUnprefixedChildTypes); }
public static ResourceDescriptionResolver getResolver(final String keyPrefix, final boolean useUnprefixedChildTypes) { return new StandardResourceDescriptionResolver(keyPrefix, RESOURCE_NAME, HostEnvironmentResourceDefinition.class.getClassLoader(), true, useUnprefixedChildTypes); }
private final ServerInventory serverInventory; static final OperationDefinition getOperationDefinition(String name) { return new SimpleOperationDefinitionBuilder(name, HostResolver.getResolver("host.server")) .setParameters(SERVER, BLOCKING) .setReplyType(ModelType.STRING) ...
private final ServerInventory serverInventory; static OperationDefinition getOperationDefinition(String name) { return new SimpleOperationDefinitionBuilder(name, HostResolver.getResolver("host.server")) .setParameters(SERVER, BLOCKING) .setReplyType(ModelType.STRING) ...
public void testContent() throws OperationFailedException { final DeploymentAddHandler handler = DeploymentAddHandler.create(contentRepository, null); final OperationContext context = Mockito.mock(OperationContext.class); Mockito.when(context.getResult()).thenReturn(new ModelNode()); ...
public void testContent() throws OperationFailedException { final DeploymentAddHandler handler = DeploymentAddHandler.create(contentRepository, null); final OperationContext context = Mockito.mock(OperationContext.class); Mockito.when(context.getResult()).thenReturn(new ModelNode()); ...
public Object clone() { try { return (ZipLong) super.clone(); } catch (CloneNotSupportedException cnfe) { // impossible throw new RuntimeException(cnfe); } }
public Object clone() { try { return super.clone(); } catch (CloneNotSupportedException cnfe) { // impossible throw new RuntimeException(cnfe); } }
public Object clone() { try { return (ZipShort) super.clone(); } catch (CloneNotSupportedException cnfe) { // impossible throw new RuntimeException(cnfe); } }
public Object clone() { try { return super.clone(); } catch (CloneNotSupportedException cnfe) { // impossible throw new RuntimeException(cnfe); } }
public static void writeDeclaredField(final Object target, final String fieldName, final Object value, final boolean forceAccess) throws IllegalAccessException { Validate.isTrue(target != null, "target object must not be null"); final Class<?> cls = target.getClass(); final Field...
public static void writeDeclaredField(final Object target, final String fieldName, final Object value, final boolean forceAccess) throws IllegalAccessException { Validate.isTrue(target != null, "target object must not be null"); final Class<?> cls = target.getClass(); final Field...
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final Module module = deploymentUnit.getAttachment(org.jboss.as.server.deployment.Attachments.MODULE); if (module =...
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final Module module = deploymentUnit.getAttachment(org.jboss.as.server.deployment.Attachments.MODULE); if (module =...
public TypedValue getValueInternal(ExpressionState state) throws EvaluationException { // TODO possible optimization here if we cache the discovered type reference, but can we do that? String typename = (String) getChild(0).getValueInternal(state).getValue(); if (typename.indexOf(".") == -1 && Character.isLowerC...
public TypedValue getValueInternal(ExpressionState state) throws EvaluationException { // TODO possible optimization here if we cache the discovered type reference, but can we do that? String typename = (String) getChild(0).getValueInternal(state).getValue(); if (typename.indexOf(".") == -1 && Character.isLowerC...
public boolean canRead(EvaluationContext context, Object target, String name) throws AccessException { if (target == null) { return false; } Class<?> type = (target instanceof Class ? (Class<?>) target : target.getClass()); if ((type.isArray() && name.equals("length"))) { return true; } CacheKey cach...
public boolean canRead(EvaluationContext context, Object target, String name) throws AccessException { if (target == null) { return false; } Class<?> type = (target instanceof Class ? (Class<?>) target : target.getClass()); if ((type.isArray() && name.equals("length"))) { return true; } CacheKey cach...
private void parseDistributedCache(XMLExtendedStreamReader reader, ModelNode containerAddress, List<ModelNode> operations) throws XMLStreamException { // ModelNode for the cache add operation ModelNode cache = Util.getEmptyOperation(ModelDescriptionConstants.ADD, null); List<ModelNode> addi...
private void parseDistributedCache(XMLExtendedStreamReader reader, ModelNode containerAddress, List<ModelNode> operations) throws XMLStreamException { // ModelNode for the cache add operation ModelNode cache = Util.getEmptyOperation(ModelDescriptionConstants.ADD, null); List<ModelNode> addi...
private void parseDistributedCache(XMLExtendedStreamReader reader, ModelNode containerAddress, List<ModelNode> operations) throws XMLStreamException { // ModelNode for the cache add operation ModelNode cache = Util.getEmptyOperation(ModelDescriptionConstants.ADD, null); List<ModelNode> addi...
private void parseDistributedCache(XMLExtendedStreamReader reader, ModelNode containerAddress, List<ModelNode> operations) throws XMLStreamException { // ModelNode for the cache add operation ModelNode cache = Util.getEmptyOperation(ModelDescriptionConstants.ADD, null); List<ModelNode> addi...
private void parseDistributedCache(XMLExtendedStreamReader reader, PathAddress containerAddress, List<ModelNode> operations) throws XMLStreamException { // ModelNode for the cache add operation ModelNode cache = Util.getEmptyOperation(ModelDescriptionConstants.ADD, null); List<ModelNode> ad...
private void parseDistributedCache(XMLExtendedStreamReader reader, PathAddress containerAddress, List<ModelNode> operations) throws XMLStreamException { // ModelNode for the cache add operation ModelNode cache = Util.getEmptyOperation(ModelDescriptionConstants.ADD, null); List<ModelNode> ad...
public static void checkFailedTransformedBootOperations(ModelTestKernelServices<?> mainServices, ModelVersion modelVersion, List<ModelNode> operations, FailedOperationTransformationConfig config) throws OperationFailedException { for (ModelNode op : operations) { ModelTestUtils.checkOutcome(main...
public static void checkFailedTransformedBootOperations(ModelTestKernelServices<?> mainServices, ModelVersion modelVersion, List<ModelNode> operations, FailedOperationTransformationConfig config) throws OperationFailedException { for (ModelNode op : operations) { ModelTestUtils.checkOutcome(main...
private void registerDeploymentsModel(final boolean registerRuntimeOnly, final SubsystemRegistration registration) { ResourceDefinition deploymentsDef = new SimpleResourceDefinition(PathElement.pathElement(ModelDescriptionConstants.SUBSYSTEM, SUBSYSTEM_NAME), getResourceDescriptionResolver("...
private void registerDeploymentsModel(final boolean registerRuntimeOnly, final SubsystemRegistration registration) { ResourceDefinition deploymentsDef = new SimpleResourceDefinition(PathElement.pathElement(ModelDescriptionConstants.SUBSYSTEM, SUBSYSTEM_NAME), getResourceDescriptionResolver("...
protected void addExtraServices(final ServiceTarget target) { ManagementRemotingServices.installRemotingEndpoint(target, ManagementRemotingServices.MANAGEMENT_ENDPOINT, "loaclhost", EndpointService.EndpointType.MANAGEMENT, null, null); ServiceName tmpDirPath = ServiceName.JBOSS.append("s...
protected void addExtraServices(final ServiceTarget target) { ManagementRemotingServices.installRemotingEndpoint(target, ManagementRemotingServices.MANAGEMENT_ENDPOINT, "localhost", EndpointService.EndpointType.MANAGEMENT, null, null); ServiceName tmpDirPath = ServiceName.JBOSS.append("s...
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException { final ModelNode fullModel = Resource.Tools....
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException { final ModelNode fullModel = Resource.Tools....
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException { final ModelNode fullModel = Resource.Tools.readModel(context.readResource(PathAddress.EMP...
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException { final ModelNode fullModel = Resource.Tools.readModel(context.readResource(PathAddress.EMP...
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException { removeHttpManagementService(context); RemotingServices.removeConnectorServices(context, ManagementRemotingServices.HTTP_CONNECTOR); context.removeService(Remoting...
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException { removeHttpManagementService(context); RemotingServices.removeConnectorServices(context, ManagementRemotingServices.HTTP_CONNECTOR); context.removeService(Remoting...
public void testScopedEJBClientContexts() throws Exception { InitialContext ctx = new InitialContext(getEjbClientProperties(System.getProperty("node0", "127.0.0.1"), 4447)); try { String lookupName = "ejb:/" + ARCHIVE_NAME + "/" + StatelessBean.class.getSimpleName() + "!" + StatelessIfac...
public void testScopedEJBClientContexts() throws Exception { InitialContext ctx = new InitialContext(getEjbClientProperties(System.getProperty("node0", "127.0.0.1"), 8080)); try { String lookupName = "ejb:/" + ARCHIVE_NAME + "/" + StatelessBean.class.getSimpleName() + "!" + StatelessIfac...
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { Context ctx = null; try { Properties env = new Properties(); String address = System.getProperty("node0", "localhost"); // format possible IPv6 address address = NetworkUtils.formatPossibleIpv6...
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { Context ctx = null; try { Properties env = new Properties(); String address = System.getProperty("node0", "localhost"); // format possible IPv6 address address = NetworkUtils.formatPossibleIpv6...
protected MyObject lookup() { try { Properties env = new Properties(); String address = System.getProperty("node0", "localhost"); // format possible IPv6 address address = NetworkUtils.formatPossibleIpv6Address(address); env.put(Context.PROVIDER_URL, "remote://" + address + ":4447"); env.put(Contex...
protected MyObject lookup() { try { Properties env = new Properties(); String address = System.getProperty("node0", "localhost"); // format possible IPv6 address address = NetworkUtils.formatPossibleIpv6Address(address); env.put(Context.PROVIDER_URL, "http-remoting://" + address + ":8080"); env.put...
protected MyObject lookup() throws ServletException { try { Properties env = new Properties(); String address = System.getProperty("node0", "localhost"); // format possible IPv6 address address = NetworkUtils.formatPossibleIpv6Address(address); env.put(Context.PROVIDER_URL, "remote://" + address + ":4...
protected MyObject lookup() throws ServletException { try { Properties env = new Properties(); String address = System.getProperty("node0", "localhost"); // format possible IPv6 address address = NetworkUtils.formatPossibleIpv6Address(address); env.put(Context.PROVIDER_URL, "http-remoting://" + addres...
protected ServiceName constructServiceName(final String name) { return UndertowService.LISTENER.append(name); } @Override AbstractListenerService<? extends AbstractListenerService> createService(String name, OperationContext context, ModelNode model) throws OperationFailedException { St...
protected ServiceName constructServiceName(final String name) { return UndertowService.LISTENER.append(name); } @Override AbstractListenerService<? extends AbstractListenerService> createService(String name, final String serverName, final OperationContext context, ModelNode model) throws Operat...
public static void setupDomain() throws Exception { testSupport = new DomainTestSupport(CoreResourceManagementTestCase.class.getSimpleName(), "domain-configs/domain-standard.xml", "host-configs/host-master.xml", "host-configs/host-slave.xml"); testSupport.start(); domainMasterLifecycleUtil =...
public static void setupDomain() throws Exception { testSupport = new DomainTestSupport(ManagementReadsTestCase.class.getSimpleName(), "domain-configs/domain-standard.xml", "host-configs/host-master.xml", "host-configs/host-slave.xml"); testSupport.start(); domainMasterLifecycleUtil = testSu...
public static String keep(final String str, final String... set) { if (str == null) { return null; } if (str.length() == 0 || deepEmpty(set)) { return StringUtils.EMPTY; } return modify(str, set, true); }
public static String keep(final String str, final String... set) { if (str == null) { return null; } if (str.isEmpty() || deepEmpty(set)) { return StringUtils.EMPTY; } return modify(str, set, true); }
public StrBuilder setNullText(String nullText) { if (nullText != null && nullText.length() == 0) { nullText = null; } this.nullText = nullText; return this; }
public StrBuilder setNullText(String nullText) { if (nullText != null && nullText.isEmpty()) { nullText = null; } this.nullText = nullText; return this; }
protected LeastSquaresOptimizer getOptimizer() { return LevenbergMarquardtOptimizer.create(); }
protected LeastSquaresOptimizer getOptimizer() { return new LevenbergMarquardtOptimizer(); }
private void testMailSession(boolean canWrite, ModelControllerClient client) throws IOException { ModelNode operation = Util.createOperation(WRITE_ATTRIBUTE_OPERATION, pathAddress( pathElement(SUBSYSTEM, "mail"), pathElement("mail-session", "java:jboss/mail/Default") ...
private void testMailSession(boolean canWrite, ModelControllerClient client) throws IOException { ModelNode operation = Util.createOperation(WRITE_ATTRIBUTE_OPERATION, pathAddress( pathElement(SUBSYSTEM, "mail"), pathElement("mail-session", "default") )); oper...
ExposeModelResourceExpression(JmxManagedAuditLogger auditLoggerInfo) { /* * JBoss, Home of Professional Open Source. * Copyright 2011, Red Hat Middleware LLC, and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. ...
ExposeModelResourceExpression(JmxManagedAuditLogger auditLoggerInfo) { /* * JBoss, Home of Professional Open Source. * Copyright 2011, Red Hat Middleware LLC, and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. ...
public static final SimpleAttributeDefinition DOMAIN_NAME = SimpleAttributeDefinitionBuilder.create(CommonAttributes.DOMAIN_NAME, ModelType.STRING, true) .setAllowExpression(true) .setDefaultValue(new ModelNode(CommonAttributes.DEFAULT_RESOLVED_DOMAIN)) .build(); static fina...
public static final SimpleAttributeDefinition DOMAIN_NAME = SimpleAttributeDefinitionBuilder.create(CommonAttributes.DOMAIN_NAME, ModelType.STRING, true) .setAllowExpression(true) .setDefaultValue(new ModelNode(CommonAttributes.DEFAULT_RESOLVED_DOMAIN)) .build(); static fina...
private PhonemeBuilder applyFinalRules(PhonemeBuilder phonemeBuilder, List<Rule> finalRules) { if (finalRules == null) { throw new NullPointerException("finalRules can not be null"); } if (finalRules.isEmpty()) { return phonemeBuilder; } Set<Rule.Phon...
private PhonemeBuilder applyFinalRules(PhonemeBuilder phonemeBuilder, List<Rule> finalRules) { if (finalRules == null) { throw new NullPointerException("finalRules can not be null"); } if (finalRules.isEmpty()) { return phonemeBuilder; } Set<Rule.Phon...
public void doReload(HostRunningModeControl runningModeControl) { runningModeControl.setRunningMode(adminOnly ? RunningMode.ADMIN_ONLY : RunningMode.NORMAL); runningModeControl.setReloaded(true); runningModeControl.setUseCurrentConfig(useCurrentHostConfig); ...
public void doReload(HostRunningModeControl runningModeControl) { runningModeControl.setRunningMode(adminOnly ? RunningMode.ADMIN_ONLY : RunningMode.NORMAL); runningModeControl.setReloaded(); runningModeControl.setUseCurrentConfig(useCurrentHostConfig); ...
public void doReload(RunningModeControl runningModeControl) { runningModeControl.setRunningMode(adminOnly ? RunningMode.ADMIN_ONLY : RunningMode.NORMAL); runningModeControl.setReloaded(true); runningModeControl.setUseCurrentConfig(useCurrentConfig); ...
public void doReload(RunningModeControl runningModeControl) { runningModeControl.setRunningMode(adminOnly ? RunningMode.ADMIN_ONLY : RunningMode.NORMAL); runningModeControl.setReloaded(); runningModeControl.setUseCurrentConfig(useCurrentConfig); } ...
private void parseEJBReceivers(final XMLExtendedStreamReader reader, final EJBClientDescriptorMetaData ejbClientDescriptorMetaData) throws XMLStreamException { // initialize the local-receiver-pass-by-value to the default true boolean localReceiverPassByValue = true; final int count = read...
private void parseEJBReceivers(final XMLExtendedStreamReader reader, final EJBClientDescriptorMetaData ejbClientDescriptorMetaData) throws XMLStreamException { // initialize the local-receiver-pass-by-value to the default true Boolean localReceiverPassByValue = null; final int count = read...
public void registerChildren(ManagementResourceRegistration resourceRegistration) { super.registerChildren(resourceRegistration); resourceRegistration.registerSubModel(SystemPropertyResourceDefinition.createForDomainOrHost(Location.DOMAIN)); resourceRegistration.registerSubModel(new Interfac...
public void registerChildren(ManagementResourceRegistration resourceRegistration) { super.registerChildren(resourceRegistration); resourceRegistration.registerSubModel(SystemPropertyResourceDefinition.createForDomainOrHost(Location.DOMAIN)); resourceRegistration.registerSubModel(new Interfac...
public void registerChildren(ManagementResourceRegistration resourceRegistration) { DomainServerLifecycleHandlers.registerServerGroupHandlers(resourceRegistration); resourceRegistration.registerSubModel(JvmResourceDefinition.GLOBAL); resourceRegistration.registerSubModel(DomainDeploymentReso...
public void registerChildren(ManagementResourceRegistration resourceRegistration) { DomainServerLifecycleHandlers.registerServerGroupHandlers(resourceRegistration); resourceRegistration.registerSubModel(JvmResourceDefinition.GLOBAL); resourceRegistration.registerSubModel(DomainDeploymentReso...
public void registerChildren(ManagementResourceRegistration resourceRegistration) { // System Properties resourceRegistration.registerSubModel(SystemPropertyResourceDefinition.createForStandaloneServer(serverEnvironment)); //vault resourceRegistration.registerSubModel(new VaultReso...
public void registerChildren(ManagementResourceRegistration resourceRegistration) { // System Properties resourceRegistration.registerSubModel(SystemPropertyResourceDefinition.createForStandaloneServer(serverEnvironment)); //vault resourceRegistration.registerSubModel(new VaultReso...
import backtype.storm.coordination.CoordinatedBolt; package backtype.storm; import backtype.storm.drpc.CoordinatedBolt; public class Constants { public static final String COORDINATED_STREAM_ID = CoordinatedBolt.class.getName() + "/coord-stream"; }
import backtype.storm.coordination.CoordinatedBolt; package backtype.storm; import backtype.storm.coordination.CoordinatedBolt; public class Constants { public static final String COORDINATED_STREAM_ID = CoordinatedBolt.class.getName() + "/coord-stream"; }
public void testMediaTypeNotValue() throws Exception { try { MockHttpServletRequest request = new MockHttpServletRequest("PUT", "/person/1"); request.setContentType("bogus"); this.handlerMapping.getHandler(request); fail("HttpMediaTypeNotSupportedException expected"); } catch (HttpMediaTypeNotSupport...
public void testMediaTypeNotValue() throws Exception { try { MockHttpServletRequest request = new MockHttpServletRequest("PUT", "/person/1"); request.setContentType("bogus"); this.handlerMapping.getHandler(request); fail("HttpMediaTypeNotSupportedException expected"); } catch (HttpMediaTypeNotSupport...
public Injector<ModifiableDataSource> getAOInjector() { return ds; } }
public Injector<ModifiableDataSource> getDSInjector() { return ds; } }
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...
public static Archive<?> deployment() { WebArchive war = ShrinkWrap.create(WebArchive.class, "distributable.war"); war.addClass(SimpleServlet.class); war.setWebXML(SimpleWebTestCase.class.getPackage(), "web.xml"); log.info(war.toString(true)); return war; } @Test ...
public static Archive<?> deployment() { WebArchive war = ShrinkWrap.create(WebArchive.class, "distributable.war"); war.addClass(SimpleServlet.class); war.setWebXML(SimpleWebTestCase.class.getPackage(), "web.xml"); log.info(war.toString(true)); return war; } @Test ...
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 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(); ...
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...
public void setup() { SubscribableChannel inChannel = Mockito.mock(SubscribableChannel.class); SubscribableChannel outChannel = Mockito.mock(SubscribableChannel.class); this.webSocketHandler = new SubProtocolWebSocketHandler(inChannel, outChannel); this.userSessionRegistry = new DefaultUserSessionRegistry(); ...
public void setup() { SubscribableChannel inChannel = Mockito.mock(SubscribableChannel.class); SubscribableChannel outChannel = Mockito.mock(SubscribableChannel.class); this.webSocketHandler = new SubProtocolWebSocketHandler(inChannel, outChannel); this.userSessionRegistry = new DefaultUserSessionRegistry(); ...
public CoarseSessionEntry<L> findValue(String id) { TransactionConfiguration transaction = this.sessionCache.getCacheConfiguration().transaction(); boolean pessimistic = transaction.transactionMode().isTransactional() && (transaction.lockingMode() == LockingMode.PESSIMISTIC); Cache<String, C...
public CoarseSessionEntry<L> findValue(String id) { TransactionConfiguration transaction = this.sessionCache.getCacheConfiguration().transaction(); boolean pessimistic = transaction.transactionMode().isTransactional() && (transaction.lockingMode() == LockingMode.PESSIMISTIC); Cache<String, C...
public Object lookup(String name) throws IllegalArgumentException { if (name == null) { throw EjbLogger.ROOT_LOGGER.jndiNameCannotBeNull(); } final NamespaceContextSelector namespaceContextSelector = NamespaceContextSelector.getCurrentSelector(); if (namespaceContextSelec...
public Object lookup(String name) throws IllegalArgumentException { if (name == null) { throw EjbLogger.ROOT_LOGGER.jndiNameCannotBeNull(); } final NamespaceContextSelector namespaceContextSelector = NamespaceContextSelector.getCurrentSelector(); if (namespaceContextSelec...
public void start() { super.start(); if (this.initOnStartup) { // Do not call createInstance() because we can't ever assume that the singleton instance // hasn't already been created. ROOT_LOGGER.debugf("%s bean is a @Startup (a.k.a init-on-startup) bean, creating...
public void start() { super.start(); if (this.initOnStartup) { // Do not call createInstance() because we can't ever assume that the singleton instance // hasn't already been created. ROOT_LOGGER.debug(this.getComponentName() + " bean is a @Startup (a.k.a init-on-...
public OutputStream _invoke(final String opName, final InputStream in, final ResponseHandler handler) { if (logger.isTraceEnabled()) { logger.trace("EJBObject invocation: " + opName); } SkeletonStrategy op = methodInvokerMap.get(opName); if (op == null) { lo...
public OutputStream _invoke(final String opName, final InputStream in, final ResponseHandler handler) { if (logger.isTraceEnabled()) { logger.trace("EJBObject invocation: " + opName); } SkeletonStrategy op = methodInvokerMap.get(opName); if (op == null) { lo...
public void start(StartContext context) throws StartException { recoveryManagerService.getValue().addSerializableXAResourceDeserializer(EJBXAResourceDeserializer.INSTANCE); logger.debugf("Registered EJB XA resource deserializer %s", EJBXAResourceDeserializer.INSTANCE); }
public void start(StartContext context) throws StartException { recoveryManagerService.getValue().addSerializableXAResourceDeserializer(EJBXAResourceDeserializer.INSTANCE); logger.debug("Registered EJB XA resource deserializer " + EJBXAResourceDeserializer.INSTANCE); }
public void initialize(EJBClientContext context) { context.registerEJBClientContextListener(EJBTransactionRecoveryService.INSTANCE); EjbLogger.ROOT_LOGGER.debugf("Registered %s as a listener to EJB client context %s", EJBTransactionRecoveryService.INSTANCE, context); }
public void initialize(EJBClientContext context) { context.registerEJBClientContextListener(EJBTransactionRecoveryService.INSTANCE); EjbLogger.ROOT_LOGGER.debug("Registered " + EJBTransactionRecoveryService.INSTANCE + " as a listener to EJB client context " + context); }
public void processMessage(ChannelAssociation channelAssociation, InputStream inputStream) throws IOException { final DataInputStream input = new DataInputStream(inputStream); // read the id of the invocation which needs to be cancelled final short invocationToCancel = input.readShort(); ...
public void processMessage(ChannelAssociation channelAssociation, InputStream inputStream) throws IOException { final DataInputStream input = new DataInputStream(inputStream); // read the id of the invocation which needs to be cancelled final short invocationToCancel = input.readShort(); ...
public void run() { // check if it's async. If yes, then notify the client that's it's async method (so that // it can unblock if necessary) if (componentView.isAsynchronous(invokedMethod)) { try { ...
public void run() { // check if it's async. If yes, then notify the client that's it's async method (so that // it can unblock if necessary) if (componentView.isAsynchronous(invokedMethod)) { try { ...
protected SubordinateTransaction tryRecoveryForImportedTransaction() throws Exception { final XATerminator xaTerminator = SubordinationManager.getXATerminator(); if (xaTerminator instanceof XATerminatorImple) { EjbLogger.ROOT_LOGGER.debugf("Trying to recover an imported transaction for X...
protected SubordinateTransaction tryRecoveryForImportedTransaction() throws Exception { final XATerminator xaTerminator = SubordinationManager.getXATerminator(); if (xaTerminator instanceof XATerminatorImple) { EjbLogger.ROOT_LOGGER.debug("Trying to recover an imported transaction for Xi...
public void run() { final TimerImpl timer = timerService.getTimer(timerId); try { if (cancelled) { ROOT_LOGGER.debugf("Timer task was cancelled for %s", timer); return; } Date now = new Date(); if (ROOT_LOGGER.isDebugEn...
public void run() { final TimerImpl timer = timerService.getTimer(timerId); try { if (cancelled) { ROOT_LOGGER.debug("Timer task was cancelled for " + timer); return; } Date now = new Date(); if (ROOT_LOGGER.isDebugEnab...
private void writeAuthentication(XMLExtendedStreamWriter writer, ModelNode realm) throws XMLStreamException { writer.writeStartElement(Element.AUTHENTICATION.getLocalName()); ModelNode authentication = realm.require(AUTHENTICATION); if (authentication.hasDefined(TRUSTSTORE)) { M...
private void writeAuthentication(XMLExtendedStreamWriter writer, ModelNode realm) throws XMLStreamException { writer.writeStartElement(Element.AUTHENTICATION.getLocalName()); ModelNode authentication = realm.require(AUTHENTICATION); if (authentication.hasDefined(TRUSTSTORE)) { M...
private void handleEarDeployment(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); if (isEarDeployment(deploymentUnit)) { // ordered list of PUs List<PersistenceUnitMetadataH...
private void handleEarDeployment(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); if (isEarDeployment(deploymentUnit)) { // ordered list of PUs List<PersistenceUnitMetadataH...
private Set<Class<?>> createPropertyTypes() { Set<Class<?>> propertyTypes = new HashSet<Class<?>>(); propertyTypes.add(ReadableInstant.class); propertyTypes.add(ReadablePartial.class); propertyTypes.add(Date.class); propertyTypes.add(Calendar.class); propertyTypes.add(Long.class); return propertyTypes; ...
private Set<Class<?>> createPropertyTypes() { Set<Class<?>> propertyTypes = new HashSet<Class<?>>(5); propertyTypes.add(ReadableInstant.class); propertyTypes.add(ReadablePartial.class); propertyTypes.add(Date.class); propertyTypes.add(Calendar.class); propertyTypes.add(Long.class); return propertyTypes; ...
public PropertyEditor findEditor(String field, Class valueType) { if (valueType == null) { valueType = getFieldType(field); } PropertyEditor editor = super.findEditor(field, valueType); if (editor == null) { TypeDescriptor td = (field != null ? getPropertyAccessor().getPropertyTypeDescriptor(fixedFi...
public PropertyEditor findEditor(String field, Class valueType) { if (valueType == null) { valueType = getFieldType(field); } PropertyEditor editor = super.findEditor(field, valueType); if (editor == null && this.formattingService != null) { TypeDescriptor td = (field != null ? getPropertyAccessor()...
public void processDeployment(DeploymentUnitContext context) throws DeploymentUnitProcessingException { final JBossServiceXmlDescriptor serviceXmlDescriptor = context.getAttachment(JBossServiceXmlDescriptor.ATTACHMENT_KEY); if(serviceXmlDescriptor == null) return; final Module m...
public void processDeployment(DeploymentUnitContext context) throws DeploymentUnitProcessingException { final JBossServiceXmlDescriptor serviceXmlDescriptor = context.getAttachment(JBossServiceXmlDescriptor.ATTACHMENT_KEY); if(serviceXmlDescriptor == null) return; final Module m...
public void activate(final ServiceActivatorContext context) { final String deploymentName = key.getName().replace('.', '_'); log.info("Activating server group deployment: " + deploymentName); final VirtualFile deploymentRoot = VFS.getChild(getFullyQualifiedDeploymentPath(key.getName())); ...
public void activate(final ServiceActivatorContext context) { final String deploymentName = key.getName() + ":" + key.getSha1HashAsHexString(); log.info("Activating server group deployment: " + deploymentName); final VirtualFile deploymentRoot = VFS.getChild(getFullyQualifiedDeploymentPath(...
protected EachTestNotifier makeNotifier(FrameworkMethod method, RunNotifier notifier) { System.err.println("===== Test " + getTestClass().getJavaClass().getSimpleName() + "." + testName(method) + " ==========="); return super.makeNotifier(method, notifier); }
protected EachTestNotifier makeNotifier(FrameworkMethod method, RunNotifier notifier) { System.err.println("\n===== Test " + getTestClass().getJavaClass().getSimpleName() + "." + testName(method) + " ==========="); return super.makeNotifier(method, notifier); }
public ServerCommunicationHandler getServerCommunicationHandler(ServerEnvironment environment, MessageHandler handler) { return new ServerCommunicationHandler(environment.getStdin(), environment.getStdout(), handler); }
public ServerCommunicationHandler getServerCommunicationHandler(ServerEnvironment environment, MessageHandler handler) { return new ServerCommunicationHandler(environment.getProcessName(), environment.getProcessManagerAddress(), environment.getProcessManagerPort(), handler); }
private DistributionStructure appliesToStructure; PatchConfigBuilder setPatchId(String patchId) { this.patchId = patchId; return this; } PatchConfigBuilder setDescription(String description) { this.description = description; return this; } PatchConfigBuilder ...
private DistributionStructure appliesToStructure; PatchConfigBuilder setPatchId(String patchId) { this.patchId = patchId; return this; } PatchConfigBuilder setDescription(String description) { this.description = description; return this; } PatchConfigBuilder ...
public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException { final String patchId = operation.require(PATCH_ID).asString(); // context.acquireControllerLock(); final ServiceController<?> mgrService = context.getServiceRegistry(false...
public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException { final String patchId = operation.require(PATCH_ID).asString(); // context.acquireControllerLock(); final ServiceController<?> mgrService = context.getServiceRegistry(false...
public void setUp() throws Exception{ // start from a base installation final InstalledIdentity identity = loadInstalledIdentity(); // with a file in it File binDir = mkdir(env.getInstalledImage().getJbossHome(), "bin"); String fileName = "standalone.sh"; removedFile ...
public void setUp() throws Exception{ // start from a base installation final InstalledIdentity identity = loadInstalledIdentity(); // with a file in it File binDir = mkdir(env.getInstalledImage().getJbossHome(), "bin"); String fileName = "standalone.sh"; removedFile ...
public static File createModuleRoot(File baseDir, String moduleSpec) throws IOException { final int c1 = moduleSpec.lastIndexOf(':'); final String name; final String slot; if (c1 != -1) { name = moduleSpec.substring(0, c1); slot = moduleSpec.substring(c1 + 1);...
public static File createModuleRoot(File baseDir, String moduleSpec) throws IOException { final int c1 = moduleSpec.lastIndexOf(':'); final String name; final String slot; if (c1 != -1) { name = moduleSpec.substring(0, c1); slot = moduleSpec.substring(c1 + 1);...
public void setUp() throws Exception{ // start from a base installation final InstalledIdentity identity = loadInstalledIdentity(); // with a file in it File binDir = mkdir(env.getInstalledImage().getJbossHome(), "bin"); String fileName = "standalone.sh"; modifiedFile...
public void setUp() throws Exception{ // start from a base installation final InstalledIdentity identity = loadInstalledIdentity(); // with a file in it File binDir = mkdir(env.getInstalledImage().getJbossHome(), "bin"); String fileName = "standalone.sh"; modifiedFile...
public void testOneOffPatchAddingAMiscFile() throws Exception { controller.start(CONTAINER); // prepare the patch File tempDir = mkdir(new File(System.getProperty("java.io.tmpdir")), randomString()); String patchID = randomString(); File oneOffPatchDir = mkdir(tempDir, patch...
public void testOneOffPatchAddingAMiscFile() throws Exception { controller.start(CONTAINER); // prepare the patch File tempDir = mkdir(new File(System.getProperty("java.io.tmpdir")), randomString()); String patchID = randomString(); File oneOffPatchDir = mkdir(tempDir, patch...
public abstract Object asyncAdvisor(); /** * Collect any {@link AsyncConfigurer} beans through autowiring. */ @Autowired(required = false) void setConfigurers(Collection<AsyncConfigurer> configurers) { if (configurers == null || configurers.isEmpty()) { return; } if (configurers.size() > 1) { thro...
public abstract Object asyncAdvisor(); /** * Collect any {@link AsyncConfigurer} beans through autowiring. */ @Autowired(required = false) void setConfigurers(Collection<AsyncConfigurer> configurers) { if (configurers == null || configurers.isEmpty()) { return; } if (configurers.size() > 1) { thro...
Executor getAsyncExecutor(); /* * Copyright 2002-2011 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2...
Executor getAsyncExecutor(); /* * Copyright 2002-2011 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2...
public Executor getExecutor() { ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor(); executor.setThreadNamePrefix("Custom-"); executor.initialize(); return executor; } } }
public Executor getAsyncExecutor() { ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor(); executor.setThreadNamePrefix("Custom-"); executor.initialize(); return executor; } } }
public static ModelNode getRootResource(Locale locale) { final ResourceBundle bundle = getResourceBundle(locale); final ModelNode node = new ModelNode(); node.get(DESCRIPTION).set(bundle.getString("messaging")); for (AttributeDefinition attr : CommonAttributes.SIMPLE_ROOT_RESOURCE_...
public static ModelNode getRootResource(Locale locale) { final ResourceBundle bundle = getResourceBundle(locale); final ModelNode node = new ModelNode(); node.get(DESCRIPTION).set(bundle.getString("messaging")); for (AttributeDefinition attr : CommonAttributes.SIMPLE_ROOT_RESOURCE_...
void startServers(DomainControllerSlave domainController); /* * JBoss, Home of Professional Open Source. * Copyright 2006, Red Hat Middleware LLC, and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is ...
void startServers(DomainControllerSlave domainController); /* * JBoss, Home of Professional Open Source. * Copyright 2006, Red Hat Middleware LLC, and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is ...
public VaultHandler(String keyStore, String keyStorePassword, String keyStoreType, String encodedVaultFileDirectory, int keySize, String alias, String salt, int iterationCount) { if (alias != null) { this.alias = alias; } if (keySize != 0) { this.keySize...
public VaultHandler(String keyStore, String keyStorePassword, String keyStoreType, String encodedVaultFileDirectory, int keySize, String alias, String salt, int iterationCount) { if (alias != null) { this.alias = alias; } if (keySize != 0) { this.keySize...
package test.beans; /* * Copyright 2002-2008 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * ...
package test.beans; /* * Copyright 2002-2008 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * ...
package test.beans; /* * Copyright 2002-2008 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * ...
package test.beans; /* * Copyright 2002-2008 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * ...
package org.springframework.beans; /* * Copyright 2002-2012 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...
package org.springframework.beans; /* * Copyright 2002-2012 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...
public StormTopology buildTopology() { TopologyBuilder builder = new TopologyBuilder(); Map<GlobalStreamId, String> batchIdsForSpouts = fleshOutStreamBatchIds(false); Map<GlobalStreamId, String> batchIdsForBolts = fleshOutStreamBatchIds(true); Map<String, List<String>> batch...
public StormTopology buildTopology() { TopologyBuilder builder = new TopologyBuilder(); Map<GlobalStreamId, String> batchIdsForSpouts = fleshOutStreamBatchIds(false); Map<GlobalStreamId, String> batchIdsForBolts = fleshOutStreamBatchIds(true); Map<String, List<String>> batch...