buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
public ParagraphMenu(FrameMediator controller) {
super(controller,
MailResourceLoader.getString("menu", "composer",
"menu_format_paragraph"));
initMenu();
// register for text selection changes
((ComposerController) controller).getEditorController().addO... | public ParagraphMenu(FrameMediator controller) {
super(controller,
MailResourceLoader.getString("menu", "composer",
"menu_format_paragraph"),"menu_format_paragraph");
initMenu();
// register for text selection changes
((ComposerController) controller).ge... |
this.type = null; // Initialized with the public method verify(SourceTypeBinding)
this.inheritedMethods = null;
this.currentMethods = null;
this.runtimeException = null;
this.errorException = null;
this.environment = environment;
}
boolean areMethodsEqual(MethodBinding one, MethodBinding two) {
return areParame... | this.type = null; // Initialized with the public method verify(SourceTypeBinding)
this.inheritedMethods = null;
this.currentMethods = null;
this.runtimeException = null;
this.errorException = null;
this.environment = environment;
}
boolean areMethodsEqual(MethodBinding one, MethodBinding two) {
return areParame... |
public boolean execute(IProgressMonitor progressMonitor) {
if (progressMonitor != null && progressMonitor.isCanceled()) return true;
/* ensure no concurrent write access to index */
IIndex index = this.manager.getIndex(this.indexPath, true /*reuse index file*/, false /*don't create if none*/);
if (index == n... | public boolean execute(IProgressMonitor progressMonitor) {
if (this.isCancelled || progressMonitor != null && progressMonitor.isCanceled()) return true;
/* ensure no concurrent write access to index */
IIndex index = this.manager.getIndex(this.indexPath, true /*reuse index file*/, false /*don't create if none*... |
public final static SimpleLoggerFA SIMPLE_LOGGER_FA = new SimpleLoggerFA();
// The following static initializer gets invoked immediately after a call to
// Logger.getLogger() is made. Here is a description of the static initializer.
//
// create defaultLoggerRepository
// configure(defaultLoggerReposito... | public final static SimpleLoggerFA SIMPLE_LOGGER_FA = new SimpleLoggerFA();
// The following static initializer gets invoked immediately after a call to
// Logger.getLogger() is made. Here is a description of the static initializer.
//
// create defaultLoggerRepository
// configure(defaultLoggerReposito... |
public void generateCode(BlockScope currentScope, CodeStream codeStream) {
if ((bits & IsReachableMASK) == 0) {
return;
}
int pc = codeStream.position, divergePC;
Label endifLabel = new Label(codeStream);
// optimizing the then/else part code gen
Constant cst, condCst;
boolean hasThenPart = !((((cst = conditi... | public void generateCode(BlockScope currentScope, CodeStream codeStream) {
if ((bits & IsReachableMASK) == 0) {
return;
}
int pc = codeStream.position;
Label endifLabel = new Label(codeStream);
// optimizing the then/else part code gen
Constant cst, condCst;
boolean hasThenPart = !((((cst = condition.constant... |
protected void executeOperation() throws JavaModelException {
CompilationUnit workingCopy = getWorkingCopy();
int useCount = JavaModelManager.getJavaModelManager().discardPerWorkingCopyInfo(workingCopy);
if (useCount == 0) {
if (workingCopy.owner != DefaultWorkingCopyOwner.PRIMARY) {
// report removed ... | protected void executeOperation() throws JavaModelException {
CompilationUnit workingCopy = getWorkingCopy();
int useCount = JavaModelManager.getJavaModelManager().discardPerWorkingCopyInfo(workingCopy);
if (useCount == 0) {
if (!workingCopy.isPrimary()) {
// report removed java delta for a non-primary... |
public static String id() {
return "4.5-SNAPSHOT-20080506-1730";
}
| public static String id() {
return "4.5-SNAPSHOT-20080513-1059";
}
|
public AbstractElement[] getElements() {
if (cachedElements == null) {
List list = PlatformUI.getWorkbench().getPreferenceManager().getElements(PreferenceManager.PRE_ORDER);
Set uniqueElements = new HashSet(list);
IPreferenceNode[] preferences = (IPreferenceNode[]) uniqueElements.toArray(new IPreferenceNode... | public AbstractElement[] getElements() {
if (cachedElements == null) {
List list = PlatformUI.getWorkbench().getPreferenceManager().getElements(PreferenceManager.PRE_ORDER);
Set uniqueElements = new HashSet(list);
IPreferenceNode[] preferences = (IPreferenceNode[]) uniqueElements.toArray(new IPreferenceNode... |
public void setStateLocal(int newState) {
if (newState == getState())
return;
//isMinimized = getState() == IStackPresentationSite.STATE_MINIMIZED;
super.setMinimized(newState == IStackPresentationSite.STATE_MINIMIZED);
presentationSite.setPresentationState(newState);
}
| public void setStateLocal(int newState) {
if (newState == getState())
return;
//isMinimized = getState() == IStackPresentationSite.STATE_MINIMIZED;
setMinimized(newState == IStackPresentationSite.STATE_MINIMIZED);
presentationSite.setPresentationState(newState);
}
|
public String toString(){
return "FirstWordInBlock: " + new String(word) + ", blockNum: " +blockNum;
}
}
| public String toString(){
return "FirstWordInBlock: "/*nonNLS*/ + new String(word) + ", blockNum: "/*nonNLS*/ + blockNum;
}
}
|
protected SourceType(JavaElement parent, String name) {
super(parent, name);
Assert.isTrue(name.indexOf('.') == -1, Util.bind("sourcetype.invalidName", name));
}
| protected SourceType(JavaElement parent, String name) {
super(parent, name);
Assert.isTrue(name.indexOf('.') == -1, Util.bind("sourcetype.invalidName", name)); //$NON-NLS-1$
}
|
public int doRead( byte b[], int off, int len ) throws IOException {
return ajp12.doRead( b,off,len);
}
}
// Ajp use Status: instead of Status
class AJP12Response extends Response {
HTTP http=new HTTP();
| public int doRead( byte b[], int off, int len ) throws IOException {
return ajp12.doRead( b,off,len);
}
}
// Ajp use Status: instead of Status
class AJP12Response extends Response {
Http10 http=new Http10();
|
protected boolean generateInfos(
OpenableElementInfo info,
IProgressMonitor pm,
Hashtable newElements,
IResource underlyingResource)
| protected boolean generateInfos(
OpenableElementInfo info,
IProgressMonitor pm,
Map newElements,
IResource underlyingResource)
|
public TypeBinding resolveType(BlockScope scope) {
constant = NotAConstant;
TypeBinding lhsType = lhs.resolveType(scope);
TypeBinding expressionType = expression.resolveType(scope);
if (lhsType == null || expressionType == null)
return null;
int lhsId = lhsType.id;
int expressionId = expressionType.id;
if (re... | public TypeBinding resolveType(BlockScope scope) {
constant = NotAConstant;
TypeBinding lhsType = lhs.resolveType(scope);
TypeBinding expressionType = expression.resolveType(scope);
if (lhsType == null || expressionType == null)
return null;
int lhsId = lhsType.id;
int expressionId = expressionType.id;
if (re... |
final int HasDirectWildcard = ASTNode.Bit31; // set for parameterized types directly referencing wildcards
/*******************************************************************************
* Copyright (c) 2000, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are... | final int HasDirectWildcard = ASTNode.Bit31; // set for parameterized types directly referencing wildcards
/*******************************************************************************
* Copyright (c) 2000, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are... |
private void setProjectName(File projectFile) {
//If there is no file or the user has already specified forget it
if (projectFile == null || projectNameField.getText().length() > 0)
return;
IPath path = new Path(projectFile.getPath());
IProjectDescription newDescription = null;
try {
newDescription... | private void setProjectName(File projectFile) {
//If there is no file or the user has already specified forget it
if (projectFile == null)
return;
IPath path = new Path(projectFile.getPath());
IProjectDescription newDescription = null;
try {
newDescription = getWorkspace().loadProjectDescription(pa... |
public void selectType(ISourceType sourceType, char[] typeName, ISourceType[] topLevelTypes, boolean searchInEnvironment) {
try {
acceptedAnswer = false;
// find the outer most type
ISourceType outerType = sourceType;
ISourceType parent = sourceType.getEnclosingType();
while (parent != null) {
ou... | public void selectType(ISourceType sourceType, char[] typeName, ISourceType[] topLevelTypes, boolean searchInEnvironment) {
try {
acceptedAnswer = false;
// find the outer most type
ISourceType outerType = sourceType;
ISourceType parent = sourceType.getEnclosingType();
while (parent != null) {
ou... |
public void run() {
feedbackRenderer.jobInit();
}
});
// Only start the animation timer -after- we've initialized
curTime = startTime = System.currentTimeMillis();
while (!done()) {
display.syncExec(animationStep);
... | public void run() {
feedbackRenderer.jobInit();
}
});
// Only start the animation timer -after- we've initialized
curTime = startTime = System.currentTimeMillis();
while (!done()) {
display.syncExec(animationStep);
... |
public WorkbenchCommandSupport(Workbench workbench) {
mutableCommandManager = CommandManagerFactory.getCommandManager();
/* TODO getMutableCommandManager */
compoundCommandHandlerService =
CommandHandlerServiceFactory.getCompoundCommandHandlerService();
KeyFormatterFactory.setDefault(SWTKeySupport.getKeyFor... | public WorkbenchCommandSupport(Workbench workbench) {
mutableCommandManager = CommandManagerFactory.getCommandManager();
/* TODO getMutableCommandManager */
compoundCommandHandlerService =
CommandHandlerServiceFactory.getCompoundCommandHandlerService();
KeyFormatterFactory.setDefault(SWTKeySupport.getKeyFor... |
public void execute(Worker worker) throws Exception {
Folder folder =
(Folder) ((FolderCommandReference) getReferences()[0]).getFolder();
Object[] uids = ((FolderCommandReference) getReferences()[0]).getUids();
Message message = (Message) folder.getMessage(uids[0], worker);
ColumbaHeader header = (Columb... | public void execute(Worker worker) throws Exception {
Folder folder =
(Folder) ((FolderCommandReference) getReferences()[0]).getFolder();
Object[] uids = ((FolderCommandReference) getReferences()[0]).getUids();
Message message = new Message();
ColumbaHeader header = (ColumbaHeader) message.getHeader();
... |
public static void init(Locale locale) {
ResourceBundle bundle = ResourceBundle.getBundle("org.argouml.uml.cognitive.UMLCognitiveResourceBundle",locale);
addChecklist(bundle, MClass.class, "ChClass");
addChecklist(bundle, MInterface.class, "ChInterface");
addChecklist(bundle, MAttribute.class, "ChA... | public static void init(Locale locale) {
ResourceBundle bundle = ResourceBundle.getBundle("org.argouml.i18n.UMLCognitiveResourceBundle",locale);
addChecklist(bundle, MClass.class, "ChClass");
addChecklist(bundle, MInterface.class, "ChInterface");
addChecklist(bundle, MAttribute.class, "ChAttribute"... |
public int getNodeType() {
return VARIABLE_DECLARATION_STATEMENT;
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
ASTNode clone(AST target) {
VariableDeclarationStatement result =
new VariableDeclarationStatement(target);
result.setSourceRange(this.getStartPosition(), this.getLen... | public int getNodeType() {
return VARIABLE_DECLARATION_STATEMENT;
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
ASTNode clone0(AST target) {
VariableDeclarationStatement result =
new VariableDeclarationStatement(target);
result.setSourceRange(this.getStartPosition(), this.getLe... |
public FlowInfo analyseCode(
BlockScope currentScope,
FlowContext flowContext,
FlowInfo flowInfo) {
// record setting a variable: various scenarii are possible, setting an array reference,
// a field reference, a blank final field reference, a field of an enclosing instance or
// just a local variable.
... | public FlowInfo analyseCode(
BlockScope currentScope,
FlowContext flowContext,
FlowInfo flowInfo) {
// record setting a variable: various scenarii are possible, setting an array reference,
// a field reference, a blank final field reference, a field of an enclosing instance or
// just a local variable.
... |
public NewWizardShortcutAction(IWorkbenchWindow window,
IWizardDescriptor wizardDesc) {
super('&' + wizardDesc.getLabel());
setToolTipText(wizardDesc.getDescription());
setImageDescriptor(wizardDesc.getImageDescriptor());
setId(ActionFactory.NEW.getId());
wizardEl... | public NewWizardShortcutAction(IWorkbenchWindow window,
IWizardDescriptor wizardDesc) {
super(wizardDesc.getLabel());
setToolTipText(wizardDesc.getDescription());
setImageDescriptor(wizardDesc.getImageDescriptor());
setId(ActionFactory.NEW.getId());
wizardElement ... |
private void derefPart(LayoutPart part) {
// Get vital part stats before reparenting.
Window oldWindow = part.getWindow();
ILayoutContainer oldContainer = part.getContainer();
/*
* Detached window no longer supported - remove when confirmed
*
* // Reparent the part back to the main window
* part.reparent... | private void derefPart(LayoutPart part) {
// Get vital part stats before reparenting.
Window oldWindow = part.getWindow();
ILayoutContainer oldContainer = part.getContainer();
/*
* Detached window no longer supported - remove when confirmed
*
* // Reparent the part back to the main window
* part.reparent... |
public <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> resultHandler, final P param) {
// TODO using the deploymentElement cached in the model update method
// has a bad smell
final ServiceName deploymentUnitServiceName = Services.JBOSS_DEPL... | public <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> resultHandler, final P param) {
// TODO using the deploymentElement cached in the model update method
// has a bad smell
final ServiceName deploymentUnitServiceName = Services.JBOSS_DEPL... |
public void undeploy(final DeploymentUnit context) {
}
/**
* Process a single index.
*
* @param index the annotation index
* @param classLoader the module classloader
* @throws DeploymentUnitProcessingException
*/
protected WebMetaData processAnnotations(Index index, Class... | public void undeploy(final DeploymentUnit context) {
}
/**
* Process a single index.
*
* @param index the annotation index
* @param classLoader the module classloader
* @throws DeploymentUnitProcessingException
*/
protected WebMetaData processAnnotations(Index index, Class... |
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
if(!isWarDeployment(deploymentUnit)) {
return; // Skip non web deployments
}
final ResourceRoot deplo... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
if(!isWarDeployment(deploymentUnit)) {
return; // Skip non web deployments
}
final ResourceRoot deplo... |
protected void installServices(final OperationContext context, final String realmName, final ModelNode model,
final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers)
throws OperationFailedException {
final ModelNod... | protected void installServices(final OperationContext context, final String realmName, final ModelNode model,
final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers)
throws OperationFailedException {
final ModelNod... |
private void writeHornetQServer(final XMLExtendedStreamWriter writer, final String serverName, final ModelNode node) throws XMLStreamException {
writer.writeStartElement(Element.HORNETQ_SERVER.getLocalName());
if (!"default".equals(serverName)) {
writer.writeAttribute(Attribute.NAME.ge... | private void writeHornetQServer(final XMLExtendedStreamWriter writer, final String serverName, final ModelNode node) throws XMLStreamException {
writer.writeStartElement(Element.HORNETQ_SERVER.getLocalName());
if (!"default".equals(serverName)) {
writer.writeAttribute(Attribute.NAME.ge... |
public void commit() {
long lastCompletedOffset = lastCompletedOffset();
if (lastCompletedOffset != lastCompletedOffset) {
LOG.debug("Writing last completed offset (" + lastCompletedOffset + ") to ZK for " + _partition + " for topology: " + _topologyInstanceId);
Map<Object, O... | public void commit() {
long lastCompletedOffset = lastCompletedOffset();
if (_committedTo != lastCompletedOffset) {
LOG.debug("Writing last completed offset (" + lastCompletedOffset + ") to ZK for " + _partition + " for topology: " + _topologyInstanceId);
Map<Object, Object> ... |
private void loadBeanDefinitionsForConfigurationClass(ConfigurationClass configClass) {
doLoadBeanDefinitionForConfigurationClass(configClass);
for (BeanMethod method : configClass.getMethods())
loadBeanDefinitionsForModelMethod(method);
// Annotation[] pluginAnnotations = configClass.getPluginAnnotations();... | private void loadBeanDefinitionsForConfigurationClass(ConfigurationClass configClass) {
doLoadBeanDefinitionForConfigurationClass(configClass);
for (BeanMethod method : configClass.getBeanMethods())
loadBeanDefinitionsForModelMethod(method);
// Annotation[] pluginAnnotations = configClass.getPluginAnnotation... |
public ModelNode correct(ModelNode newValue, ModelNode currentValue) {
if (newValue.getType() != ModelType.LIST) {
return newValue;
} else {
ModelNode correctValue = new ModelNode();
... | public ModelNode correct(ModelNode newValue, ModelNode currentValue) {
if (newValue.getType() != ModelType.LIST) {
return newValue;
} else {
ModelNode correctValue = new ModelNode();
... |
public void testSequenceMap() throws Throwable {
Object[] keys = getKeys();
int expectedSize = keys.length;
Object[] values = getValues();
for (int i = 0; i < expectedSize; i++) {
labRat.put(keys[i], values[i]);
}
// Test size().
assertEquals("siz... | public void testSequenceMap() throws Throwable {
Object[] keys = getKeys();
int expectedSize = keys.length;
Object[] values = getValues();
for (int i = 0; i < expectedSize; i++) {
labRat.put(keys[i], values[i]);
}
// Test size().
assertEquals("siz... |
private void updateBD(double negccov) {
if (ccov1 + ccovmu + negccov > 0 &&
(iterations % 1. / (ccov1 + ccovmu + negccov) / dimension / 10.) < 1.) {
// to achieve O(N^2)
C = triu(C, 0).add(triu(C, 1).transpose());
// enforce symmetry to prevent complex num... | private void updateBD(double negccov) {
if (ccov1 + ccovmu + negccov > 0 &&
(iterations % 1. / (ccov1 + ccovmu + negccov) / dimension / 10.) < 1.) {
// to achieve O(N^2)
C = triu(C, 0).add(triu(C, 1).transpose());
// enforce symmetry to prevent complex num... |
private final IgnoredDomainResourceRegistry ignoredDomainResourceRegistry;
OperationSlaveStepHandler(final LocalHostControllerInfo localHostControllerInfo, Map<String, ProxyController> serverProxies,
IgnoredDomainResourceRegistry ignoredDomainResourceRegistry) {
this.local... | private final IgnoredDomainResourceRegistry ignoredDomainResourceRegistry;
OperationSlaveStepHandler(final LocalHostControllerInfo localHostControllerInfo, Map<String, ProxyController> serverProxies,
IgnoredDomainResourceRegistry ignoredDomainResourceRegistry) {
this.local... |
public interface ServerOperationExecutor {
/**
*
*/
package org.jboss.as.domain.controller.plan;
import org.jboss.as.domain.controller.ServerIdentity;
import org.jboss.dmr.ModelNode;
/**
* Callback from a task when it wants to execute an operation.
*
* @author Brian Stansberry (c) 2011 Red Hat Inc.
*/
public i... | public interface ServerOperationExecutor {
/**
*
*/
package org.jboss.as.domain.controller.plan;
import org.jboss.as.domain.controller.ServerIdentity;
import org.jboss.dmr.ModelNode;
/**
* Callback from a task when it wants to execute an operation.
*
* @author Brian Stansberry (c) 2011 Red Hat Inc.
*/
public i... |
Collection<WorkerSlot> availableSlots(Collection<SupervisorDetails> existingSupervisors, Collection<WorkerSlot> usedSlots, TopologyDetails topology);
package backtype.storm.scheduler;
import java.util.Collection;
import java.util.Map;
public interface INimbus {
void prepare(Map stormConf, String schedulerLocalDi... | Collection<WorkerSlot> availableSlots(Collection<SupervisorDetails> existingSupervisors, Collection<WorkerSlot> usedSlots, TopologyDetails topology);
package backtype.storm.scheduler;
import java.util.Collection;
import java.util.Map;
public interface INimbus {
void prepare(Map stormConf, String schedulerLocalDi... |
long crc32(Tuple tuple);
package backtype.storm.serialization;
import backtype.storm.tuple.Tuple;
public interface ITupleSerializer {
byte[] serialize(Tuple tuple);
// long crc32(Tuple tuple);
} | long crc32(Tuple tuple);
package backtype.storm.serialization;
import backtype.storm.tuple.Tuple;
public interface ITupleSerializer {
byte[] serialize(Tuple tuple);
long crc32(Tuple tuple);
} |
public void push(final String securityDomain, final String runAs, final String runAsPrincipal) {
// TODO - Handle a null securityDomain here? Yes I think so.
final SecurityContext previous = SecurityContextAssociation.getSecurityContext();
contexts.push(previous);
SecurityContext cu... | public void push(final String securityDomain, final String runAs, final String runAsPrincipal) {
// TODO - Handle a null securityDomain here? Yes I think so.
final SecurityContext previous = SecurityContextAssociation.getSecurityContext();
contexts.push(previous);
SecurityContext cu... |
public void registerAttributes(ManagementResourceRegistration resourceRegistration) {
super.registerAttributes(resourceRegistration);
SecurityDomainReloadWriteHandler writeHandler = new SecurityDomainReloadWriteHandler(ATTRIBUTES);
for (AttributeDefinition attr : getAttributes()) {
... | public void registerAttributes(ManagementResourceRegistration resourceRegistration) {
super.registerAttributes(resourceRegistration);
SecurityDomainReloadWriteHandler writeHandler = new SecurityDomainReloadWriteHandler(getAttributes());
for (AttributeDefinition attr : getAttributes()) {
... |
private ServletInvocableHandlerMethod createRequestMappingMethod(
HandlerMethod handlerMethod, WebDataBinderFactory binderFactory) {
ServletInvocableHandlerMethod requestMethod;
requestMethod = new ServletInvocableHandlerMethod(handlerMethod.getBean(), handlerMethod.getMethod());
requestMethod.setHandlerMeth... | private ServletInvocableHandlerMethod createRequestMappingMethod(
HandlerMethod handlerMethod, WebDataBinderFactory binderFactory) {
ServletInvocableHandlerMethod requestMethod;
requestMethod = new ServletInvocableHandlerMethod(handlerMethod);
requestMethod.setHandlerMethodArgumentResolvers(this.argumentReso... |
public synchronized void writeModel(ModelNode newModel) {
if (parent == null) {
throw new IllegalStateException("null parent");
}
ModelNode content = newModel.get(ModelDescriptionConstants.CONTENT);
try {
byte[] hash = parent.storeManagedContent(pathElement.... | public synchronized void writeModel(ModelNode newModel) {
if (parent == null) {
throw ManagedDMRContentMessages.MESSAGES.nullParent();
}
ModelNode content = newModel.get(ModelDescriptionConstants.CONTENT);
try {
byte[] hash = parent.storeManagedContent(pathE... |
ServiceBuilder<SSOManagerFactory> build(ServiceTarget target, ServiceName name, SSOManagerConfiguration config);
/*
* JBoss, Home of Professional Open Source.
* Copyright 2013, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full... | ServiceBuilder<SSOManagerFactory> build(ServiceTarget target, ServiceName name, SSOManagerConfiguration config);
/*
* JBoss, Home of Professional Open Source.
* Copyright 2013, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full... |
public String changeSessionId(HttpServerExchange exchange, SessionConfig config) {
Session<LocalSessionContext> oldSession = this.getSession();
SessionManager<LocalSessionContext> manager = this.manager.getSessionManager();
String id = manager.createIdentifier();
Session<LocalSession... | public String changeSessionId(HttpServerExchange exchange, SessionConfig config) {
Session<LocalSessionContext> oldSession = this.getSession();
SessionManager<LocalSessionContext> manager = this.manager.getSessionManager();
String id = manager.createSessionId();
Session<LocalSessionC... |
public ServiceBuilder<SessionManagerFactory> build(ServiceTarget target, ServiceName name, ServiceName deploymentServiceName, Module module, JBossWebMetaData metaData) {
ServiceName clusteringServiceName = name.append("distributable");
this.builder.buildDeploymentDependency(target, clusteringService... | public ServiceBuilder<SessionManagerFactory> build(ServiceTarget target, ServiceName name, ServiceName deploymentServiceName, Module module, JBossWebMetaData metaData) {
ServiceName clusteringServiceName = name.append("clustering");
this.builder.buildDeploymentDependency(target, clusteringServiceNam... |
public void createSessionNoSessionId() {
HttpServerExchange exchange = new HttpServerExchange(null);
Batcher batcher = mock(Batcher.class);
Batch batch = mock(Batch.class);
SessionConfig config = mock(SessionConfig.class);
Session<LocalSessionContext> session = mock(Session.c... | public void createSessionNoSessionId() {
HttpServerExchange exchange = new HttpServerExchange(null);
Batcher batcher = mock(Batcher.class);
Batch batch = mock(Batch.class);
SessionConfig config = mock(SessionConfig.class);
Session<LocalSessionContext> session = mock(Session.c... |
public void changeSessionId() {
HttpServerExchange exchange = new HttpServerExchange(null);
SessionConfig config = mock(SessionConfig.class);
SessionManager<LocalSessionContext> manager = mock(SessionManager.class);
Session<LocalSessionContext> session = mock(Session.class);
... | public void changeSessionId() {
HttpServerExchange exchange = new HttpServerExchange(null);
SessionConfig config = mock(SessionConfig.class);
SessionManager<LocalSessionContext> manager = mock(SessionManager.class);
Session<LocalSessionContext> session = mock(Session.class);
... |
private void processDeployment(final String hostName, final WarMetaData warMetaData, final DeploymentUnit deploymentUnit, final ServiceTarget serviceTarget)
throws DeploymentUnitProcessingException {
final VirtualFile deploymentRoot = deploymentUnit.getAttachment(Attachments.DEPLOYMENT_ROOT).get... | private void processDeployment(final String hostName, final WarMetaData warMetaData, final DeploymentUnit deploymentUnit, final ServiceTarget serviceTarget)
throws DeploymentUnitProcessingException {
final VirtualFile deploymentRoot = deploymentUnit.getAttachment(Attachments.DEPLOYMENT_ROOT).get... |
public void onSetUp() throws Exception {
target = new JmxTestBean();
target.setAge(100);
target.setName("Rob Harrop");
MBeanExporter adapter = new MBeanExporter();
Map<String, Object> beans = new HashMap<String, Object>();
beans.put(OBJECT_NAME, target);
adapter.setServer(getServer());
adapter.setBean... | public void onSetUp() throws Exception {
target = new JmxTestBean();
target.setAge(100);
target.setName("Rob Harrop");
MBeanExporter adapter = new MBeanExporter();
Map<String, Object> beans = new HashMap<String, Object>();
beans.put(OBJECT_NAME, target);
adapter.setServer(getServer());
adapter.setBean... |
public void testWithCglibProxy() throws Exception {
IJmxTestBean tb = createJmxTestBean();
ProxyFactory pf = new ProxyFactory();
pf.setTarget(tb);
pf.addAdvice(new NopInterceptor());
Object proxy = pf.getProxy();
MetadataMBeanInfoAssembler assembler = (MetadataMBeanInfoAssembler) getAssembler();
MBeanE... | public void testWithCglibProxy() throws Exception {
IJmxTestBean tb = createJmxTestBean();
ProxyFactory pf = new ProxyFactory();
pf.setTarget(tb);
pf.addAdvice(new NopInterceptor());
Object proxy = pf.getProxy();
MetadataMBeanInfoAssembler assembler = (MetadataMBeanInfoAssembler) getAssembler();
MBeanE... |
public List parseRequest(HttpServletRequest request) {
if (request instanceof MultipartHttpServletRequest) {
throw new IllegalStateException("Already a multipart request");
}
List<FileItem> fileItems = new ArrayList<FileItem>();
MockFileItem fileItem1 = new MockFileItem(
"field1",... | public List parseRequest(HttpServletRequest request) {
if (request instanceof MultipartHttpServletRequest) {
throw new IllegalStateException("Already a multipart request");
}
List<FileItem> fileItems = new ArrayList<FileItem>();
MockFileItem fileItem1 = new MockFileItem(
"field1",... |
public static final ListAttributeDefinition XML_NAMESPACES = new StringListAttributeDefinition.Builder(ModelDescriptionConstants.XML_NAMESPACES)
.setAllowNull(false)
.setStorageRuntime()
.setElementValidator(new StringLengthValidator(1, Integer.MAX_VALUE, false, false))
... | public static final ListAttributeDefinition XML_NAMESPACES = new StringListAttributeDefinition.Builder(ModelDescriptionConstants.XML_NAMESPACES)
.setAllowNull(false)
.setStorageRuntime()
.setValidator(new StringLengthValidator(1, Integer.MAX_VALUE, false, false))
.bui... |
public void testExpressions() throws OperationFailedException {
ListAttributeDefinition ld = new StringListAttributeDefinition.Builder("test")
.setAllowExpression(true)
.setElementValidator(new StringLengthValidator(1, false, true))
.build();
ModelNod... | public void testExpressions() throws OperationFailedException {
ListAttributeDefinition ld = new StringListAttributeDefinition.Builder("test")
.setAllowExpression(true)
.setValidator(new StringLengthValidator(1, false, true))
.build();
ModelNode op = ... |
public static final ListAttributeDefinition DECLARED_ROLES = new PrimitiveListAttributeDefinition.Builder("declared-roles", ModelType.STRING)
.setAllowNull(true)
.setElementValidator(new StringLengthValidator(1))
.setStorageRuntime()
| public static final ListAttributeDefinition DECLARED_ROLES = new PrimitiveListAttributeDefinition.Builder("declared-roles", ModelType.STRING)
.setAllowNull(true)
.setValidator(new StringLengthValidator(1))
.setStorageRuntime()
|
public static final ServiceName HC_EXECUTOR_SERVICE_NAME = HC_SERVICE_NAME.append("executor");
static final int DEFAULT_POOL_SIZE = 20;
| public static final ServiceName HC_SERVICE_NAME = ServiceName.JBOSS.append("host", "controller");
static final ServiceName HC_EXECUTOR_SERVICE_NAME = HC_SERVICE_NAME.append("executor");
static final int DEFAULT_POOL_SIZE = 20;
|
public static final PrimitiveListAttributeDefinition DISCOVERY_OPTIONS = new PrimitiveListAttributeDefinition.Builder(ModelDescriptionConstants.DISCOVERY_OPTIONS, ModelType.PROPERTY)
.setAllowNull(true)
.setElementValidator(new PropertyValidator(false, new StringLengthValidator(1)))
.build()... | public static final PrimitiveListAttributeDefinition DISCOVERY_OPTIONS = new PrimitiveListAttributeDefinition.Builder(ModelDescriptionConstants.DISCOVERY_OPTIONS, ModelType.PROPERTY)
.setAllowNull(true)
.setValidator(new PropertyValidator(false, new StringLengthValidator(1)))
.build();
|
public static final ListAttributeDefinition NAMES = new PrimitiveListAttributeDefinition.Builder(ModelDescriptionConstants.NAMES, ModelType.STRING)
.setAllowNull(true)
.setElementValidator(new StringLengthValidator(1))
.setFlags(AttributeAccess.Flag.RESTART_ALL_SERVICES)
| public static final ListAttributeDefinition NAMES = new PrimitiveListAttributeDefinition.Builder(ModelDescriptionConstants.NAMES, ModelType.STRING)
.setAllowNull(true)
.setValidator(new StringLengthValidator(1))
.setFlags(AttributeAccess.Flag.RESTART_ALL_SERVICES)
|
public static final AttributeDefinition OPTIONS = new StringListAttributeDefinition.Builder(JvmAttributes.JVM_OPTIONS)
.setElementValidator(new StringLengthValidator(1, true, true))
.setAllowNull(true)
| public static final AttributeDefinition OPTIONS = new StringListAttributeDefinition.Builder(JvmAttributes.JVM_OPTIONS)
.setValidator(new StringLengthValidator(1, true, true))
.setAllowNull(true)
|
protected static final StringListAttributeDefinition VIRTUAL_SERVER = new StringListAttributeDefinition.Builder(Constants.VIRTUAL_SERVER)
.setAllowNull(true)
.setFlags(AttributeAccess.Flag.RESTART_RESOURCE_SERVICES)
.setElementValidator(new StringLengthValidator(1, false))
... | protected static final StringListAttributeDefinition VIRTUAL_SERVER = new StringListAttributeDefinition.Builder(Constants.VIRTUAL_SERVER)
.setAllowNull(true)
.setFlags(AttributeAccess.Flag.RESTART_RESOURCE_SERVICES)
.setValidator(new StringLengthValidator(1, false))
.... |
protected static final ListAttributeDefinition WELCOME_FILES = new StringListAttributeDefinition.Builder(Constants.WELCOME_FILE)
.setXmlName(Constants.WELCOME_FILE)
.setFlags(AttributeAccess.Flag.RESTART_RESOURCE_SERVICES)
.setElementValidator(new StringLengthValidator(1, true, t... | protected static final ListAttributeDefinition WELCOME_FILES = new StringListAttributeDefinition.Builder(Constants.WELCOME_FILE)
.setXmlName(Constants.WELCOME_FILE)
.setFlags(AttributeAccess.Flag.RESTART_RESOURCE_SERVICES)
.setValidator(new StringLengthValidator(1, true, true))
... |
protected static final ListAttributeDefinition ALIAS =
new StringListAttributeDefinition.Builder(Constants.ALIAS)
.setXmlName(Constants.ALIAS)
.setAllowNull(true)
.setElementValidator(new StringLengthValidator(1, false))
.se... | protected static final ListAttributeDefinition ALIAS =
new StringListAttributeDefinition.Builder(Constants.ALIAS)
.setXmlName(Constants.ALIAS)
.setAllowNull(true)
.setValidator(new StringLengthValidator(1, false))
.setFlags(... |
public static final PrimitiveListAttributeDefinition CONNECTOR_REFS = PrimitiveListAttributeDefinition.Builder.of(STATIC_CONNECTORS, STRING)
.setAllowNull(true)
.setAlternatives(CommonAttributes.DISCOVERY_GROUP_NAME)
.setElementValidator(new StringLengthValidator(1))
... | public static final PrimitiveListAttributeDefinition CONNECTOR_REFS = PrimitiveListAttributeDefinition.Builder.of(STATIC_CONNECTORS, STRING)
.setAllowNull(true)
.setAlternatives(CommonAttributes.DISCOVERY_GROUP_NAME)
.setValidator(new StringLengthValidator(1))
.setXml... |
public static final PrimitiveListAttributeDefinition CONNECTOR_REFS = PrimitiveListAttributeDefinition.Builder.of(CONNECTORS, STRING)
.setAllowNull(true)
.setElementValidator(new StringLengthValidator(1))
.setXmlName(CONNECTOR_REF_STRING)
| public static final PrimitiveListAttributeDefinition CONNECTOR_REFS = PrimitiveListAttributeDefinition.Builder.of(CONNECTORS, STRING)
.setAllowNull(true)
.setValidator(new StringLengthValidator(1))
.setXmlName(CONNECTOR_REF_STRING)
|
public static final PrimitiveListAttributeDefinition CONNECTOR_REFS = PrimitiveListAttributeDefinition.Builder.of(STATIC_CONNECTORS, STRING)
.setAllowNull(true)
.setElementValidator(new StringLengthValidator(1))
.setXmlName(CONNECTOR_REF_STRING)
| public static final PrimitiveListAttributeDefinition CONNECTOR_REFS = PrimitiveListAttributeDefinition.Builder.of(STATIC_CONNECTORS, STRING)
.setAllowNull(true)
.setValidator(new StringLengthValidator(1))
.setXmlName(CONNECTOR_REF_STRING)
|
public ModelNode correct(ModelNode newValue, ModelNode currentValue) {
if (newValue.getType() != ModelType.LIST) {
return newValue;
} else {
ModelNode correctValue = new ModelNode();
... | public ModelNode correct(ModelNode newValue, ModelNode currentValue) {
if (newValue.getType() != ModelType.LIST) {
return newValue;
} else {
ModelNode correctValue = new ModelNode();
... |
public static final ServiceName JBOSS_SERVER_EXECUTOR = JBOSS_AS.append("server-executor");
| public static final ServiceName JBOSS_SERVER_CONTROLLER = JBOSS_AS.append("server-controller");
/**
* The service corresponding to the {@link java.util.concurrent.ExecutorService} for this instance.
*/
static final ServiceName JBOSS_SERVER_EXECUTOR = JBOSS_AS.append("server-executor");
|
public void createLdap1(ManagementClient managementClient, final String hostname) throws Exception, IOException, ClassNotFoundException, FileNotFoundException {
final Map<String, String> map = new HashMap<String, String>();
final String cannonicalHost = getCannonicalHost(managementClient);
f... | public void createLdap1(ManagementClient managementClient, final String hostname) throws Exception, IOException, ClassNotFoundException, FileNotFoundException {
final Map<String, String> map = new HashMap<String, String>();
final String cannonicalHost = getCannonicalHost(managementClient);
f... |
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(... | public void activate(final ServiceActivatorContext context) {
final String deploymentName = key.getName().replace('.', '_') + '_' + key.getSha1HashAsHexString();
log.info("Activating server group deployment: " + deploymentName);
final VirtualFile deploymentRoot = VFS.getChild(getFullyQualif... |
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
// Do nothing if the manifest is already available
final DeploymentUnit deploymentUnitContext = phaseContext.getDeploymentUnit();
Manifest manifest = deploymentUnitContext.getAttachment(Attach... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
// Do nothing if the manifest is already available
final DeploymentUnit deploymentUnitContext = phaseContext.getDeploymentUnit();
Manifest manifest = deploymentUnitContext.getAttachment(Attach... |
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final Manifest manifest = phaseContext.getAttachment(Attachments.MANIFEST);
if(manifest == null)
return;
final String dependencyString = manifest.getMainAttributes().getValue("Depe... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final Manifest manifest = phaseContext.getAttachment(Attachments.MANIFEST);
if(manifest == null)
return;
final String dependencyString = manifest.getMainAttributes().getValue("Depe... |
package org.wildfly.extension.io;
/*
*
* JBoss, Home of Professional Open Source.
* Copyright 2013, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you c... | package org.wildfly.extension.io;
/*
*
* JBoss, Home of Professional Open Source.
* Copyright 2013, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you c... |
protected OpenListener createOpenListener() {
AjpOpenListener ajpOpenListener = new AjpOpenListener(getBufferPool().getValue(), OptionMap.builder().addAll(commonOptions).addAll(listenerOptions).set(UndertowOptions.ENABLE_CONNECTOR_STATISTICS, getUndertowService().isStatisticsEnabled()).getMap(), getBufferSi... | protected OpenListener createOpenListener() {
AjpOpenListener ajpOpenListener = new AjpOpenListener(getBufferPool().getValue(), OptionMap.builder().addAll(commonOptions).addAll(listenerOptions).set(UndertowOptions.ENABLE_CONNECTOR_STATISTICS, getUndertowService().isStatisticsEnabled()).getMap());
aj... |
protected OpenListener createOpenListener() {
return new HttpOpenListener(getBufferPool().getValue(), OptionMap.builder().addAll(commonOptions).addAll(listenerOptions).set(UndertowOptions.ENABLE_CONNECTOR_STATISTICS, getUndertowService().isStatisticsEnabled()).getMap(), getBufferSize());
}
| protected OpenListener createOpenListener() {
return new HttpOpenListener(getBufferPool().getValue(), OptionMap.builder().addAll(commonOptions).addAll(listenerOptions).set(UndertowOptions.ENABLE_CONNECTOR_STATISTICS, getUndertowService().isStatisticsEnabled()).getMap());
}
|
public void registerAttributes(ManagementResourceRegistration resourceRegistration) {
super.registerAttributes(resourceRegistration);
for(ConnectorStat attr : ConnectorStat.values()) {
resourceRegistration.registerReadOnlyAttribute(attr.definition, ReadStatisticHandler.INSTANCE);
... | public void registerAttributes(ManagementResourceRegistration resourceRegistration) {
super.registerAttributes(resourceRegistration);
for(ConnectorStat attr : ConnectorStat.values()) {
resourceRegistration.registerMetric(attr.definition, ReadStatisticHandler.INSTANCE);
}
}
|
public static List<AuthMethodConfig> parse(final String methods, final Map<String, String> replacements) {
try {
if (methods == null || methods.isEmpty()) {
return Collections.emptyList();
}
final List<AuthMethodConfig> ret = new ArrayList<AuthMethodConfig... | public static List<AuthMethodConfig> parse(final String methods, final Map<String, String> replacements) {
try {
if (methods == null || methods.isEmpty()) {
return Collections.emptyList();
}
final List<AuthMethodConfig> ret = new ArrayList<AuthMethodConfig... |
public void testConvergenceException() {
final Collection<Vector2D> points = new ArrayList<Vector2D>();
points.add(new Vector2D(1, 1));
points.add(new Vector2D(1, 5));
points.add(new Vector2D(0, 7));
points.add(new Vector2D(1, 10));
points.add(new Vector2D(1, 20));
... | public void testConvergenceException() {
final Collection<Vector2D> points = new ArrayList<Vector2D>();
points.add(new Vector2D(1, 1));
points.add(new Vector2D(1, 5));
points.add(new Vector2D(0, 7));
points.add(new Vector2D(1, 10));
points.add(new Vector2D(1, 20));
... |
protected void compare(ModelNode node1, ModelNode node2) {
Assert.assertEquals(getCompareStackAsString() + " types", node1.getType(), node2.getType());
if (node1.getType() == ModelType.OBJECT) {
final Set<String> keys1 = node1.keys();
final Set<String> keys2 = node2.keys();
... | protected void compare(ModelNode node1, ModelNode node2) {
Assert.assertEquals(getCompareStackAsString() + " types", node1.getType(), node2.getType());
if (node1.getType() == ModelType.OBJECT) {
final Set<String> keys1 = node1.keys();
final Set<String> keys2 = node2.keys();
... |
Collection<WorkerSlot> availableSlots(Collection<SupervisorDetails> existingSupervisors, Collection<WorkerSlot> usedSlots, Collection<TopologyDetails> topologies);
package backtype.storm.scheduler;
import java.util.Collection;
import java.util.Map;
public interface INimbus {
void prepare(Map stormConf, String sc... | Collection<WorkerSlot> availableSlots(Collection<SupervisorDetails> existingSupervisors, Collection<WorkerSlot> usedSlots, Collection<TopologyDetails> topologies);
package backtype.storm.scheduler;
import java.util.Collection;
import java.util.Map;
public interface INimbus {
void prepare(Map stormConf, String sc... |
// long crc32(Tuple tuple);
package backtype.storm.serialization;
import backtype.storm.tuple.Tuple;
public interface ITupleSerializer {
byte[] serialize(Tuple tuple);
long crc32(Tuple tuple);
} | // long crc32(Tuple tuple);
package backtype.storm.serialization;
import backtype.storm.tuple.Tuple;
public interface ITupleSerializer {
byte[] serialize(Tuple tuple);
// long crc32(Tuple tuple);
} |
protected void processComponentConfig(final DeploymentUnit deploymentUnit, final DeploymentPhaseContext phaseContext, final CompositeIndex index, final AbstractComponentDescription componentConfiguration) throws DeploymentUnitProcessingException {
final ClassInfo classInfo = index.getClassByName(DotName.cre... | protected void processComponentConfig(final DeploymentUnit deploymentUnit, final DeploymentPhaseContext phaseContext, final CompositeIndex index, final AbstractComponentDescription componentConfiguration) throws DeploymentUnitProcessingException {
final ClassInfo classInfo = index.getClassByName(DotName.cre... |
private byte[] writePaxHeader(Map<String, String> m) throws Exception {
ByteArrayOutputStream bos = new ByteArrayOutputStream();
TarArchiveOutputStream tos = new TarArchiveOutputStream(bos, "ASCII");
tos.writePaxHeaders("foo", m);
// add a dummy entry so data gets written
Ta... | private byte[] writePaxHeader(Map<String, String> m) throws Exception {
ByteArrayOutputStream bos = new ByteArrayOutputStream();
TarArchiveOutputStream tos = new TarArchiveOutputStream(bos, "ASCII");
tos.writePaxHeaders(new TarArchiveEntry("x"), "foo", m);
// add a dummy entry so da... |
protected void setResult(OperationContext context, final String attributeName, final Service<?> service)
throws OperationFailedException {
BoundedQueueThreadPoolService bounded = (BoundedQueueThreadPoolService) service;
if(attributeName.equals(CommonAttributes.CURRENT_THREAD_COUNT)) {
... | protected void setResult(OperationContext context, final String attributeName, final Service<?> service)
throws OperationFailedException {
BoundedQueueThreadPoolService bounded = (BoundedQueueThreadPoolService) service;
if(attributeName.equals(CommonAttributes.CURRENT_THREAD_COUNT)) {
... |
public synchronized ManagedQueueExecutorService getValue() throws IllegalStateException {
final ManagedQueueExecutorService value = this.executor;
if (value == null) {
throw ThreadsMessages.MESSAGES.boundedQueueThreadPoolExecutorUninitialized();
}
return value;
}
| public synchronized ManagedQueueExecutorService getValue() throws IllegalStateException {
final ManagedQueueExecutorService value = this.executor;
if (value == null) {
throw ThreadsLogger.ROOT_LOGGER.boundedQueueThreadPoolExecutorUninitialized();
}
return value;
}
|
public ManagedExecutorService(ExecutorService executor) {
if(executor == null) {
throw ThreadsMessages.MESSAGES.nullExecutor();
}
this.executor = protectExecutor(executor);
}
| public ManagedExecutorService(ExecutorService executor) {
if(executor == null) {
throw ThreadsLogger.ROOT_LOGGER.nullExecutor();
}
this.executor = protectExecutor(executor);
}
|
protected void setResult(OperationContext context, final String attributeName, final Service<?> service)
throws OperationFailedException {
final QueuelessThreadPoolService pool = (QueuelessThreadPoolService) service;
if(attributeName.equals(CommonAttributes.CURRENT_THREAD_COUNT)) {
... | protected void setResult(OperationContext context, final String attributeName, final Service<?> service)
throws OperationFailedException {
final QueuelessThreadPoolService pool = (QueuelessThreadPoolService) service;
if(attributeName.equals(CommonAttributes.CURRENT_THREAD_COUNT)) {
... |
public synchronized ManagedQueuelessExecutorService getValue() throws IllegalStateException {
final ManagedQueuelessExecutorService value = this.executor;
if (value == null) {
throw ThreadsMessages.MESSAGES.queuelessThreadPoolExecutorUninitialized();
}
return value;
}... | public synchronized ManagedQueuelessExecutorService getValue() throws IllegalStateException {
final ManagedQueuelessExecutorService value = this.executor;
if (value == null) {
throw ThreadsLogger.ROOT_LOGGER.queuelessThreadPoolExecutorUninitialized();
}
return value;
... |
protected void setResult(OperationContext context, final String attributeName, final Service<?> service)
throws OperationFailedException {
final ScheduledThreadPoolService pool = (ScheduledThreadPoolService) service;
if(attributeName.equals(CommonAttributes.ACTIVE_COUNT)) {
c... | protected void setResult(OperationContext context, final String attributeName, final Service<?> service)
throws OperationFailedException {
final ScheduledThreadPoolService pool = (ScheduledThreadPoolService) service;
if(attributeName.equals(CommonAttributes.ACTIVE_COUNT)) {
c... |
public synchronized ManagedScheduledExecutorService getValue() throws IllegalStateException {
final ManagedScheduledExecutorService value = this.executor;
if (value == null) {
throw ThreadsMessages.MESSAGES.scheduledThreadPoolExecutorUninitialized();
}
return value;
}... | public synchronized ManagedScheduledExecutorService getValue() throws IllegalStateException {
final ManagedScheduledExecutorService value = this.executor;
if (value == null) {
throw ThreadsLogger.ROOT_LOGGER.scheduledThreadPoolExecutorUninitialized();
}
return value;
... |
public synchronized ThreadFactory getValue() throws IllegalStateException {
final ThreadFactory value = this.value;
if (value == null) {
throw ThreadsMessages.MESSAGES.threadFactoryUninitialized();
}
return value;
}
| public synchronized ThreadFactory getValue() throws IllegalStateException {
final ThreadFactory value = this.value;
if (value == null) {
throw ThreadsLogger.ROOT_LOGGER.threadFactoryUninitialized();
}
return value;
}
|
protected ServiceController<?> getService(final OperationContext context, final ModelNode operation)
throws OperationFailedException {
final String name = Util.getNameFromAddress(operation.require(OP_ADDR));
ServiceController<?> controller = context.getServiceRegistry(false).getService(s... | protected ServiceController<?> getService(final OperationContext context, final ModelNode operation)
throws OperationFailedException {
final String name = Util.getNameFromAddress(operation.require(OP_ADDR));
ServiceController<?> controller = context.getServiceRegistry(false).getService(s... |
public TimeSpec(final TimeUnit unit, final long duration) {
if (unit == null) {
throw ThreadsMessages.MESSAGES.nullUnit();
}
this.unit = unit;
this.duration = duration;
}
| public TimeSpec(final TimeUnit unit, final long duration) {
if (unit == null) {
throw ThreadsLogger.ROOT_LOGGER.nullUnit();
}
this.unit = unit;
this.duration = duration;
}
|
protected void setResult(OperationContext context, final String attributeName, final Service<?> service)
throws OperationFailedException {
final UnboundedQueueThreadPoolService pool = (UnboundedQueueThreadPoolService) service;
if(attributeName.equals(CommonAttributes.ACTIVE_COUNT)) {
... | protected void setResult(OperationContext context, final String attributeName, final Service<?> service)
throws OperationFailedException {
final UnboundedQueueThreadPoolService pool = (UnboundedQueueThreadPoolService) service;
if(attributeName.equals(CommonAttributes.ACTIVE_COUNT)) {
... |
public synchronized ManagedJBossThreadPoolExecutorService getValue() throws IllegalStateException {
final ManagedJBossThreadPoolExecutorService value = this.executor;
if (value == null) {
throw ThreadsMessages.MESSAGES.unboundedQueueThreadPoolExecutorUninitialized();
}
re... | public synchronized ManagedJBossThreadPoolExecutorService getValue() throws IllegalStateException {
final ManagedJBossThreadPoolExecutorService value = this.executor;
if (value == null) {
throw ThreadsLogger.ROOT_LOGGER.unboundedQueueThreadPoolExecutorUninitialized();
}
r... |
public void activateSubsystems(final ServiceActivatorContext context) {
final BatchBuilder batchBuilder = context.getBatchBuilder();
// Activate extensions
// Activate profile
profile.activate(context);
// Activate Interfaces
final Map<String, ServerInterfaceElemen... | public void activateSubsystems(final ServiceActivatorContext context) {
final BatchBuilder batchBuilder = context.getBatchBuilder();
// Activate extensions
// Activate profile
// profile.activate(context);
// Activate Interfaces
final Map<String, ServerInter... |
public <P> void applyUpdate(UpdateContext updateContext,
UpdateResultHandler<? super ServerDeploymentActionResult, P> resultHandler, P param) {
if (startStopHandler != null) {
startStopHandler.deploy(deploymentUniqueName, deploymentRuntimeName, deploymentHash, updateContext, resultHa... | public <P> void applyUpdate(UpdateContext updateContext,
UpdateResultHandler<? super ServerDeploymentActionResult, P> resultHandler, P param) {
if (startStopHandler != null) {
startStopHandler.deploy(deploymentUniqueName, deploymentRuntimeName, deploymentHash, updateContext.getBatchB... |
public <P> void applyUpdate(UpdateContext updateContext,
UpdateResultHandler<? super ServerDeploymentActionResult, P> resultHandler, P param) {
if (startStopHandler != null) {
startStopHandler.undeploy(deploymentName, updateContext, resultHandler, param);
}
}
| public <P> void applyUpdate(UpdateContext updateContext,
UpdateResultHandler<? super ServerDeploymentActionResult, P> resultHandler, P param) {
if (startStopHandler != null) {
startStopHandler.undeploy(deploymentName, updateContext.getServiceContainer(), resultHandler, param);
... |
public CompoundCriteriaElement(XMLExtendedStreamReader reader, boolean isAny) throws XMLStreamException {
super(reader, isAny ? Element.ANY : Element.NOT);
Set<InterfaceCriteria> criteria = new HashSet<InterfaceCriteria>(interfaceCriteria.size());
for (AbstractInterfaceCriteriaElement<?> el... | public CompoundCriteriaElement(XMLExtendedStreamReader reader, boolean isAny) throws XMLStreamException {
super(isAny ? Element.ANY : Element.NOT);
Set<InterfaceCriteria> criteria = new HashSet<InterfaceCriteria>(interfaceCriteria.size());
for (AbstractInterfaceCriteriaElement<?> element : ... |
public SimpleCriteriaElement(XMLExtendedStreamReader reader, Element type, InterfaceCriteria criteria) throws XMLStreamException {
super(reader, type, criteria);
if (criteria == null) {
throw new IllegalArgumentException("criteria is null");
}
ParseUtils.requireNoAttribut... | public SimpleCriteriaElement(XMLExtendedStreamReader reader, Element type, InterfaceCriteria criteria) throws XMLStreamException {
super(type, criteria);
if (criteria == null) {
throw new IllegalArgumentException("criteria is null");
}
ParseUtils.requireNoAttributes(reade... |
public static final SimpleAttributeDefinition POA_QUEUE_MAX = new SimpleAttributeDefinitionBuilder(
JacORBSubsystemConstants.POA_QUEUE_MAX, ModelType.INT, true)
.setDefaultValue(new ModelNode().set(100))
.setValidator(new IntRangeValidator(1, 200, true, false))
.setFl... | public static final SimpleAttributeDefinition POA_QUEUE_MAX = new SimpleAttributeDefinitionBuilder(
JacORBSubsystemConstants.POA_QUEUE_MAX, ModelType.INT, true)
.setDefaultValue(new ModelNode().set(100))
.setValidator(new IntRangeValidator(1, 500, true, false))
.setFl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.