buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
public void handleMessage(Channel channel, MessageInputStream messageInputStream) {
final DataInputStream dataInputStream = new DataInputStream(messageInputStream);
try {
final byte version = dataInputStream.readByte();
final String clientMarshallingStrate... | public void handleMessage(Channel channel, MessageInputStream messageInputStream) {
final DataInputStream dataInputStream = new DataInputStream(messageInputStream);
try {
final byte version = dataInputStream.readByte();
final String clientMarshallingStrate... |
protected void performBoottime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException {
final String connectorName = model.require(CONNECTOR_REF).asString();
final Serv... | protected void performBoottime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException {
final String connectorName = model.require(CONNECTOR_REF).asString();
final Serv... |
private int getDecisionForStr(PolicyDecisionPoint pdp, String requestStr) throws Exception {
final RequestContext request = RequestResponseContextFactory.createRequestCtx();
request.readRequest(IOUtils.toInputStream(requestStr, null));
return getDecision(pdp, request);
}
| private int getDecisionForStr(PolicyDecisionPoint pdp, String requestStr) throws Exception {
final RequestContext request = RequestResponseContextFactory.createRequestCtx();
request.readRequest(IOUtils.toInputStream(requestStr));
return getDecision(pdp, request);
}
|
protected void standardSubsystemTest(final String configId) throws Exception {
final AdditionalInitialization additionalInit = createAdditionalInitialization();
// Parse the subsystem xml and install into the first controller
final String subsystemXml = configId == null ? getSubsystemXml() ... | protected void standardSubsystemTest(final String configId) throws Exception {
final AdditionalInitialization additionalInit = createAdditionalInitialization();
// Parse the subsystem xml and install into the first controller
final String subsystemXml = configId == null ? getSubsystemXml() ... |
public Logger getParentLogger() {
return Logger.getGlobal();
}
| public Logger getParentLogger() {
return Logger.getLogger(Logger.GLOBAL_LOGGER_NAME);
}
|
public Object[][] getContents() {
return contents;
}
static final Object[][] contents = {
// org.spaceroots.mantissa.estimation.GaussNewtonEstimator
{ "unable to converge in {0} iterations",
"pas de convergence apr\u00e8s {0} it\u00e9rations" },
// org.spaceroots.mantissa.estimation.Leven... | public Object[][] getContents() {
return contents;
}
static final Object[][] contents = {
// org.spaceroots.mantissa.estimation.GaussNewtonEstimator
{ "unable to converge in {0} iterations",
"pas de convergence apr\u00e8s {0} it\u00e9rations" },
// org.spaceroots.mantissa.estimation.Leven... |
private static int computeCapacity(final int expectedSize) {
if (expectedSize == 0) {
return 1;
}
final int capacity = (int) Math.ceil(expectedSize / LOAD_FACTOR);
final int powerOfTwo = Integer.highestOneBit(capacity);
if (powerOfTwo == capacity) {
... | private static int computeCapacity(final int expectedSize) {
if (expectedSize == 0) {
return 1;
}
final int capacity = (int) FastMath.ceil(expectedSize / LOAD_FACTOR);
final int powerOfTwo = Integer.highestOneBit(capacity);
if (powerOfTwo == capacity) {
... |
public void testSerial() {
BigReal[] Reals = {
new BigReal(3.0), BigReal.ONE, BigReal.ZERO,
new BigReal(17), new BigReal(Math.PI),
new BigReal(-2.5)
};
for (BigReal Real : Reals) {
assertEquals(Real, TestUtils.serializeAndRecover(Real));
... | public void testSerial() {
BigReal[] Reals = {
new BigReal(3.0), BigReal.ONE, BigReal.ZERO,
new BigReal(17), new BigReal(FastMath.PI),
new BigReal(-2.5)
};
for (BigReal Real : Reals) {
assertEquals(Real, TestUtils.serializeAndRecover(Real));
... |
public static ModelNode checkOperationResult(ModelNode operation, ModelNode result, Outcome expectedOutcome) {
String outcome = result.get(OUTCOME).asString();
switch (expectedOutcome) {
case SUCCESS:
if (!SUCCESS.equals(outcome)) {
System.out.println(... | public static ModelNode checkOperationResult(ModelNode operation, ModelNode result, Outcome expectedOutcome) {
String outcome = result.get(OUTCOME).asString();
switch (expectedOutcome) {
case SUCCESS:
if (!SUCCESS.equals(outcome)) {
System.out.println(... |
public void testSerializationDeserialization() throws Exception {
// TODO Auto-generated method stub
}
ServerModel parse(final String content) throws XMLStreamException, UpdateFailedException {
return ModelParsingSupport.parseServerModel(getXMLMapper(), getFullContent(content));
}
... | public void testSerializationDeserialization() throws Exception {
// TODO Auto-generated method stub
}
ServerModel parse(final String content) throws XMLStreamException, UpdateFailedException {
return ModelParsingSupport.parseServerModel(getXMLMapper(), getFullContent(content));
}
... |
public void start(StartContext context) throws StartException {
try {
log.debugf("Registering channel listener for %s", channelName);
endpointValue.getValue().registerService(channelName, this, optionMap);
} catch (Exception e) {
throw new StartException(e);
... | public void start(StartContext context) throws StartException {
try {
log.debugf("Registering channel listener for %s", channelName);
registration = endpointValue.getValue().registerService(channelName, this, optionMap);
} catch (Exception e) {
throw new StartExce... |
private double solve(final UnivariateRealFunction f,
double x0, double y0,
double x1, double y1,
double x2, double y2)
throws MaxIterationsExceededException, FunctionEvaluationException {
double delta = x1 - x0;
double o... | private double solve(final UnivariateRealFunction f,
double x0, double y0,
double x1, double y1,
double x2, double y2)
throws MaxIterationsExceededException, FunctionEvaluationException {
double delta = x1 - x0;
double o... |
protected boolean isBracketing(final double lower, final double upper,
final UnivariateRealFunction function)
throws FunctionEvaluationException {
final double f1 = function.value(lower);
final double f2 = function.value(upper);
return ((f1 > 0 && f... | protected boolean isBracketing(final double lower, final double upper,
final UnivariateRealFunction function)
throws FunctionEvaluationException {
final double f1 = function.value(lower);
final double f2 = function.value(upper);
return (f1 > 0 && f2... |
public boolean isSquare() {
return (getColumnDimension() == getRowDimension());
}
| public boolean isSquare() {
return getColumnDimension() == getRowDimension();
}
|
public void handleStep(final StepInterpolator interpolator, final boolean isLast)
throws DerivativeException {
if (lastState == null) {
lastTime = interpolator.getPreviousTime();
interpolator.setInterpolatedTime(lastTime);
lastState = interpolator.getInterpolate... | public void handleStep(final StepInterpolator interpolator, final boolean isLast)
throws DerivativeException {
if (lastState == null) {
lastTime = interpolator.getPreviousTime();
interpolator.setInterpolatedTime(lastTime);
lastState = interpolator.getInterpolate... |
public int compare(Comparable<T> o1, Comparable<T> o2) {
return (o1.compareTo((T) o2));
}
}
| public int compare(Comparable<T> o1, Comparable<T> o2) {
return o1.compareTo((T) o2);
}
}
|
public double getStandardDeviation() {
double stdDev = Double.NaN;
if (getN() > 0) {
if (getN() > 1) {
stdDev = Math.sqrt(getVariance());
} else {
stdDev = 0.0;
}
}
return (stdDev);
}
| public double getStandardDeviation() {
double stdDev = Double.NaN;
if (getN() > 0) {
if (getN() > 1) {
stdDev = Math.sqrt(getVariance());
} else {
stdDev = 0.0;
}
}
return stdDev;
}
|
public double evaluate(final double[] values,final int begin, final int length) {
if (test(values, begin, length)) {
Sum sum = new Sum();
double sampleSize = length;
// Compute initial estimate using definitional formula
double xbar = sum.evaluate(values, beg... | public double evaluate(final double[] values,final int begin, final int length) {
if (test(values, begin, length)) {
Sum sum = new Sum();
double sampleSize = length;
// Compute initial estimate using definitional formula
double xbar = sum.evaluate(values, beg... |
public double evaluate(final double[] values, final double[] weights,
final int begin, final int length) {
double sum = Double.NaN;
if (test(values, weights, begin, length)) {
sum = 0.0;
for (int i = begin; i < begin + length; i++) {
... | public double evaluate(final double[] values, final double[] weights,
final int begin, final int length) {
double sum = Double.NaN;
if (test(values, weights, begin, length)) {
sum = 0.0;
for (int i = begin; i < begin + length; i++) {
... |
public boolean anovaTest(Collection<double[]> categoryData, double alpha)
throws IllegalArgumentException, MathException {
if ((alpha <= 0) || (alpha > 0.5)) {
throw MathRuntimeException.createIllegalArgumentException(
"out of bounds significance level {0}, must be betw... | public boolean anovaTest(Collection<double[]> categoryData, double alpha)
throws IllegalArgumentException, MathException {
if ((alpha <= 0) || (alpha > 0.5)) {
throw MathRuntimeException.createIllegalArgumentException(
"out of bounds significance level {0}, must be betw... |
public void run() {
if (!cmdCtx.isTerminated()) {
cmdCtx.terminateSession();
}
cmdCtx.disconnectController();
}
}));
if(connect) {
cmdCtx.connectController(null, -1);
}
try {
... | public void run() {
if (!cmdCtx.isTerminated()) {
cmdCtx.terminateSession();
}
cmdCtx.disconnectController();
}
}));
if(connect) {
cmdCtx.connectController(null, -1);
}
try {
... |
protected void applyUpdateBootAction(final BootUpdateContext updateContext) {
log.infof("Activating Arquillian Subsystem");
ArquillianService.addService(updateContext.getBatchBuilder());
updateContext.addDeploymentProcessor(new ArquillianRunWithAnnotationProcessor(), Phase.ARQUILLIAN_RUNWITH... | protected void applyUpdateBootAction(final BootUpdateContext updateContext) {
log.infof("Activating Arquillian Subsystem");
ArquillianService.addService(updateContext.getServiceTarget());
updateContext.addDeploymentProcessor(new ArquillianRunWithAnnotationProcessor(), Phase.ARQUILLIAN_RUNWIT... |
public void activate(final BootUpdateContext updateContext) {
final ServiceTarget serviceTarget = updateContext.getBatchBuilder();
// add resources here
MdrService mdrService = new MdrService();
serviceTarget.addService(ConnectorServices.IRONJACAMAR_MDR, mdrService).install();
... | public void activate(final BootUpdateContext updateContext) {
final ServiceTarget serviceTarget = updateContext.getServiceTarget();
// add resources here
MdrService mdrService = new MdrService();
serviceTarget.addService(ConnectorServices.IRONJACAMAR_MDR, mdrService).install();
... |
protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> resultHandler,
final P param) {
final ServiceTarget serviceTarget = updateContext.getBatchBuilder();
WorkManager wm = new WorkManagerImpl();
final WorkManagerService wmS... | protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> resultHandler,
final P param) {
final ServiceTarget serviceTarget = updateContext.getServiceTarget();
WorkManager wm = new WorkManagerImpl();
final WorkManagerService wm... |
protected <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void, P> resultHandler, P param) {
final ServiceTarget serviceTarget = updateContext.getBatchBuilder();
serviceTarget.addService(JDBCRARDeployService.NAME, new JDBCRARDeployService())
.addDepende... | protected <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void, P> resultHandler, P param) {
final ServiceTarget serviceTarget = updateContext.getServiceTarget();
serviceTarget.addService(JDBCRARDeployService.NAME, new JDBCRARDeployService())
.addDepend... |
protected <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void, P> resultHandler, P param) {
final ServiceTarget serviceTarget = updateContext.getBatchBuilder();
serviceTarget.addService( ConnectorServices.RESOURCEADAPTERS_SERVICE, new ResourceAdaptersService(resourceAd... | protected <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void, P> resultHandler, P param) {
final ServiceTarget serviceTarget = updateContext.getServiceTarget();
serviceTarget.addService( ConnectorServices.RESOURCEADAPTERS_SERVICE, new ResourceAdaptersService(resourceA... |
public <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void,P> resultHandler, P param) {
final ServiceTarget target = updateContext.getBatchBuilder().subTarget();
target.addListener(new UpdateResultHandler.ServiceStartListener<P>(resultHandler, param));
Deployme... | public <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void,P> resultHandler, P param) {
final ServiceTarget target = updateContext.getServiceTarget().subTarget();
target.addListener(new UpdateResultHandler.ServiceStartListener<P>(resultHandler, param));
Deploym... |
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
if (deploymentElement != null) {
if (isStart) {
... | 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
if (deploymentElement != null) {
if (isStart) {
... |
public <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void,P> resultHandler, P param) {
final ServiceTarget target = context.getBatchBuilder().subTarget();
target.addListener(new UpdateResultHandler.ServiceStartListener<P>(resultHandler, param));
createService(target... | public <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void,P> resultHandler, P param) {
final ServiceTarget target = context.getServiceTarget().subTarget();
target.addListener(new UpdateResultHandler.ServiceStartListener<P>(resultHandler, param));
createService(targe... |
public <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void,P> resultHandler, P param) {
final BatchBuilder batch = updateContext.getBatchBuilder();
batch.addService(NetworkInterfaceService.JBOSS_NETWORK_INTERFACE.append(name), createInterfaceService())
.add... | public <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void,P> resultHandler, P param) {
final BatchBuilder batch = updateContext.getServiceTarget();
batch.addService(NetworkInterfaceService.JBOSS_NETWORK_INTERFACE.append(name), createInterfaceService())
.ad... |
protected <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void,P> resultHandler, P param) {
final ServiceTarget target = updateContext.getBatchBuilder().subTarget();
final UpdateResultHandler.ServiceStartListener<P> listener = new UpdateResultHandler.ServiceStartListene... | protected <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void,P> resultHandler, P param) {
final ServiceTarget target = updateContext.getServiceTarget().subTarget();
final UpdateResultHandler.ServiceStartListener<P> listener = new UpdateResultHandler.ServiceStartListen... |
protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> resultHandler, final P param) {
final BatchBuilder batchBuilder = updateContext.getBatchBuilder();
MBeanServerService.addService(batchBuilder);
ManagedServiceContainerService.addServ... | protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> resultHandler, final P param) {
final BatchBuilder batchBuilder = updateContext.getServiceTarget();
MBeanServerService.addService(batchBuilder);
ManagedServiceContainerService.addSer... |
protected <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void, P> resultHandler, P param) {
try {
final BatchBuilder builder = updateContext.getBatchBuilder();
final AsyncHandlerService service = new AsyncHandlerService();
final ServiceBuild... | protected <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void, P> resultHandler, P param) {
try {
final BatchBuilder builder = updateContext.getServiceTarget();
final AsyncHandlerService service = new AsyncHandlerService();
final ServiceBuil... |
protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> handler, final P param) {
try {
final BatchBuilder builder = updateContext.getBatchBuilder();
final ConsoleHandlerService service = new ConsoleHandlerService();
fi... | protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> handler, final P param) {
try {
final BatchBuilder builder = updateContext.getServiceTarget();
final ConsoleHandlerService service = new ConsoleHandlerService();
f... |
protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> handler, final P param) {
try {
final BatchBuilder batchBuilder = updateContext.getBatchBuilder();
final FileHandlerService service = new FileHandlerService();
fin... | protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> handler, final P param) {
try {
final BatchBuilder batchBuilder = updateContext.getServiceTarget();
final FileHandlerService service = new FileHandlerService();
fi... |
protected <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void, P> resultHandler, P param) {
try {
final String loggerName = getLoggerName();
final LoggerService service = new LoggerService(loggerName);
service.setLevel(Level.parse(getLevelNa... | protected <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void, P> resultHandler, P param) {
try {
final String loggerName = getLoggerName();
final LoggerService service = new LoggerService(loggerName);
service.setLevel(Level.parse(getLevelNa... |
protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> handler, final P param) {
try {
final BatchBuilder batchBuilder = updateContext.getBatchBuilder();
final SizeRotatingFileHandlerService service = new SizeRotatingFileHandlerSe... | protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> handler, final P param) {
try {
final BatchBuilder batchBuilder = updateContext.getServiceTarget();
final SizeRotatingFileHandlerService service = new SizeRotatingFileHandlerS... |
protected <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void, P> resultHandler, P param) {
final HornetQService hqservice = new HornetQService();
final Configuration hqConfig = new ConfigurationImpl();
if (clustered != null) {
hqConfig.setClustere... | protected <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void, P> resultHandler, P param) {
final HornetQService hqservice = new HornetQService();
final Configuration hqConfig = new ConfigurationImpl();
if (clustered != null) {
hqConfig.setClustere... |
protected <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void, P> resultHandler, P param) {
final QueueService service = new QueueService(address, name, filter, durable != null ? durable : true, false);
context.getBatchBuilder().addService(MessagingSubsystemElement.CORE_QUEU... | protected <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void, P> resultHandler, P param) {
final QueueService service = new QueueService(address, name, filter, durable != null ? durable : true, false);
context.getServiceTarget().addService(MessagingSubsystemElement.CORE_QUE... |
protected <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void, P> handler, P param) {
final ConnectionFactoryService service = new ConnectionFactoryService(transform());
final ServiceName serviceName = JMSSubsystemElement.JMS_CF_BASE.append(cf.getName());
context.get... | protected <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void, P> handler, P param) {
final ConnectionFactoryService service = new ConnectionFactoryService(transform());
final ServiceName serviceName = JMSSubsystemElement.JMS_CF_BASE.append(cf.getName());
context.get... |
protected <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void, P> handler, P param) {
final JMSQueueService service = new JMSQueueService(name, selector, durableDefault(), jndiBindings());
final ServiceName serviceName = JMSSubsystemElement.JMS_QUEUE_BASE.append(name);
... | protected <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void, P> handler, P param) {
final JMSQueueService service = new JMSQueueService(name, selector, durableDefault(), jndiBindings());
final ServiceName serviceName = JMSSubsystemElement.JMS_QUEUE_BASE.append(name);
... |
protected <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void, P> handler, P param) {
final JMSTopicService service = new JMSTopicService(name, jndiBindings());
final ServiceName serviceName = JMSSubsystemElement.JMS_TOPIC_BASE.append(name);
context.getBatchBuilder()... | protected <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void, P> handler, P param) {
final JMSTopicService service = new JMSTopicService(name, jndiBindings());
final ServiceName serviceName = JMSSubsystemElement.JMS_TOPIC_BASE.append(name);
context.getServiceTarget(... |
protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> resultHandler, final P param) {
log.info("Activating Naming Subsystem");
NamingContext.initializeNamingManager();
// Create the Naming Service
final BatchBuilder builder = u... | protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> resultHandler, final P param) {
log.info("Activating Naming Subsystem");
NamingContext.initializeNamingManager();
// Create the Naming Service
final BatchBuilder builder = u... |
protected <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void, P> resultHandler, P param) {
log.infof("Activating OSGi Subsystem");
// TODO: Hack, which registers the framework module with the {@link ModularURLStreamHandlerFactory}
String value = SystemPropert... | protected <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void, P> resultHandler, P param) {
log.infof("Activating OSGi Subsystem");
// TODO: Hack, which registers the framework module with the {@link ModularURLStreamHandlerFactory}
String value = SystemPropert... |
protected <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void, P> resultHandler, P param) {
final BatchBuilder batchBuilder = updateContext.getBatchBuilder();
final OptionMap.Builder builder = OptionMap.builder();
// First, apply options to option map.
... | protected <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void, P> resultHandler, P param) {
final BatchBuilder batchBuilder = updateContext.getServiceTarget();
final OptionMap.Builder builder = OptionMap.builder();
// First, apply options to option map.
... |
protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> resultHandler, final P param) {
// create endpoint
final EndpointService endpointService = new EndpointService();
// todo configure option map
endpointService.setOptionMap(Opt... | protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> resultHandler, final P param) {
// create endpoint
final EndpointService endpointService = new EndpointService();
// todo configure option map
endpointService.setOptionMap(Opt... |
protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> handler, final P param) {
final BatchBuilder builder = updateContext.getBatchBuilder();
final ScaledCount coreThreadsCount = getCoreThreads();
final ScaledCount maxThreadsCount = getM... | protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> handler, final P param) {
final BatchBuilder builder = updateContext.getServiceTarget();
final ScaledCount coreThreadsCount = getCoreThreads();
final ScaledCount maxThreadsCount = get... |
protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> handler, final P param) {
final BatchBuilder builder = updateContext.getBatchBuilder();
final ScaledCount maxThreadsCount = getMaxThreads();
final int maxThreads = maxThreadsCount.get... | protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> handler, final P param) {
final BatchBuilder builder = updateContext.getServiceTarget();
final ScaledCount maxThreadsCount = getMaxThreads();
final int maxThreads = maxThreadsCount.ge... |
protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> handler, final P param) {
final BatchBuilder builder = updateContext.getBatchBuilder();
final ScaledCount maxThreadsCount = getMaxThreads();
final int maxThreads = maxThreadsCount.get... | protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> handler, final P param) {
final BatchBuilder builder = updateContext.getServiceTarget();
final ScaledCount maxThreadsCount = getMaxThreads();
final int maxThreads = maxThreadsCount.ge... |
protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> handler, final P param) {
final ThreadFactoryService service = new ThreadFactoryService();
service.setNamePattern(threadNamePattern);
service.setPriority(priority);
service.se... | protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> handler, final P param) {
final ThreadFactoryService service = new ThreadFactoryService();
service.setNamePattern(threadNamePattern);
service.setPriority(priority);
service.se... |
protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> resultHandler,
final P param) {
final BatchBuilder builder = updateContext.getBatchBuilder();
// XATerminator has no deps, so just add it in there
final XATerminatorServic... | protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> resultHandler,
final P param) {
final BatchBuilder builder = updateContext.getServiceTarget();
// XATerminator has no deps, so just add it in there
final XATerminatorServi... |
protected <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void, P> resultHandler, P param) {
final boolean enabled = this.enabled == null || this.enabled;
final WebConnectorService service = new WebConnectorService(protocol, scheme);
if(secure != null) service.setSecu... | protected <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void, P> resultHandler, P param) {
final boolean enabled = this.enabled == null || this.enabled;
final WebConnectorService service = new WebConnectorService(protocol, scheme);
if(secure != null) service.setSecu... |
protected <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void, P> resultHandler, P param) {
final WebServerService service = new WebServerService(defaultHost);
context.getBatchBuilder().addService(WebSubsystemElement.JBOSS_WEB, service)
.addDependency(AbstractPat... | protected <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void, P> resultHandler, P param) {
final WebServerService service = new WebServerService(defaultHost);
context.getServiceTarget().addService(WebSubsystemElement.JBOSS_WEB, service)
.addDependency(AbstractPa... |
protected <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void, P> resultHandler, P param) {
final BatchBuilder builder = updateContext.getBatchBuilder();
final WebVirtualHostService service = new WebVirtualHostService(name, aliases());
final ServiceBuilder<?> s... | protected <P> void applyUpdate(UpdateContext updateContext, UpdateResultHandler<? super Void, P> resultHandler, P param) {
final BatchBuilder builder = updateContext.getServiceTarget();
final WebVirtualHostService service = new WebVirtualHostService(name, aliases());
final ServiceBuilder<?> ... |
protected void performRuntime(final OperationContext context, ModelNode operation, ModelNode model, final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> controllers) throws OperationFailedException {
final ModelNode address = operation.require(OP_ADDR);
final String... | protected void performRuntime(final OperationContext context, ModelNode operation, ModelNode model, final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> controllers) throws OperationFailedException {
final ModelNode address = operation.require(OP_ADDR);
final String... |
public void testInvalidFormat() throws Exception {
final CSVFormat invalidFormat = CSVFormat.DEFAULT.withDelimiter(CR);
new CSVParser((Reader) null, invalidFormat).close();
}
| public void testInvalidFormat() throws Exception {
final CSVFormat invalidFormat = CSVFormat.DEFAULT.withDelimiter(CR);
new CSVParser(null, invalidFormat).close();
}
|
protected void recoverServices(final OperationContext context, final ModelNode operation, final ModelNode model) throws OperationFailedException {
FeatureAdd.INSTANCE.performRuntime(context, operation, model, null, null);
}
| protected void recoverServices(final OperationContext context, final ModelNode operation, final ModelNode model) throws OperationFailedException {
PropertyAdd.INSTANCE.performRuntime(context, operation, model, null, null);
}
|
public void validate(Object... validationHints) {
Validator validator = getValidator();
if (validator instanceof SmartValidator) {
((SmartValidator) validator).validate(getTarget(), getBindingResult(), validationHints);
}
else if (validator != null) {
validator.validate(getTarget(), getBindingResult());
... | public void validate(Object... validationHints) {
Validator validator = getValidator();
if (!ObjectUtils.isEmpty(validationHints) && validator instanceof SmartValidator) {
((SmartValidator) validator).validate(getTarget(), getBindingResult(), validationHints);
}
else if (validator != null) {
validator.va... |
public static Archive<?> getDeployment() {
JavaArchive ja = ShrinkWrap.create(JavaArchive.class, "dummy.jar");
ja.addClass(DeployTestCase.class);
return ja;
}
| public static Archive<?> getDeployment() {
JavaArchive ja = ShrinkWrap.create(JavaArchive.class, "dummy.jar");
ja.addClass(ArchiveTestCase.class);
return ja;
}
|
protected DateTimeFormatter getFormatter(DateTimeFormat annotation, Class<?> fieldType) {
DateTimeFormatterFactory factory = new DateTimeFormatterFactory();
factory.setStyle(resolveEmbeddedValue(annotation.style()));
factory.setIso(annotation.iso());
factory.setPattern(resolveEmbeddedValue(annotation.pattern()... | protected DateTimeFormatter getFormatter(DateTimeFormat annotation, Class<?> fieldType) {
DateTimeFormatterFactory factory = new DateTimeFormatterFactory();
factory.setStyle(resolveEmbeddedValue(annotation.style()));
factory.setIso(annotation.iso());
factory.setPattern(resolveEmbeddedValue(annotation.pattern()... |
public static final BoundedQueueThreadPoolAdd INSTANCE = new BoundedQueueThreadPoolAdd();
static final AttributeDefinition[] ATTRIBUTES = new AttributeDefinition[] {PoolAttributeDefinitions.KEEPALIVE_TIME,
PoolAttributeDefinitions.MAX_THREADS, PoolAttributeDefinitions.PROPERTIES, PoolAttributeDefinitio... | public static final BoundedQueueThreadPoolAdd INSTANCE = new BoundedQueueThreadPoolAdd();
static final AttributeDefinition[] ATTRIBUTES = new AttributeDefinition[] {PoolAttributeDefinitions.KEEPALIVE_TIME,
PoolAttributeDefinitions.MAX_THREADS, PoolAttributeDefinitions.THREAD_FACTORY,
PoolAttrib... |
public void tearDown(ManagementClient managementClient,
String containerId) throws Exception {
super.tearDown(managementClient, containerId);
remove(address1);
removeModule("org/jboss/ironjacamar/ra16out1");
}
| public void tearDown(ManagementClient managementClient,
String containerId) throws Exception {
super.tearDown(managementClient, containerId);
remove(address1);
removeModule("org/jboss/ironjacamar/ra16out1", true);
}
|
public void tearDown(ManagementClient managementClient,
String containerId) throws Exception {
super.tearDown(managementClient, containerId);
remove(address1);
removeModule("org/jboss/ironjacamar/ra16out1");
}
| public void tearDown(ManagementClient managementClient,
String containerId) throws Exception {
super.tearDown(managementClient, containerId);
remove(address1);
removeModule("org/jboss/ironjacamar/ra16out1", true);
}
|
private static PathAddress getCacheAddress(String containerName, String cacheName, String cacheType) {
// create the address of the cache
PathAddress cacheAddr = PathAddress.pathAddress(
PathElement.pathElement(SUBSYSTEM, InfinispanExtension.SUBSYSTEM_NAME),
PathEleme... | private static PathAddress getCacheAddress(String containerName, String cacheName, String cacheType) {
// create the address of the cache
PathAddress cacheAddr = PathAddress.pathAddress(
PathElement.pathElement(SUBSYSTEM, InfinispanExtension.SUBSYSTEM_NAME),
PathEleme... |
public XAResourceRecoveryRegistry getRecoveryRegistry() {
return null;
}
};
AsynchronousService.addService(target, cacheServiceName, new CacheService<>(cacheName, dependencies))
.addAliases(InfinispanRouteLocatorService.getCacheServiceAlias(cacheNa... | public XAResourceRecoveryRegistry getRecoveryRegistry() {
return null;
}
};
AsynchronousService.addService(target, cacheServiceName, new CacheService<>(cacheName, dependencies))
.addAliases(RouteLocatorService.getCacheServiceAlias(cacheName))
... |
response = client.execute(new HttpGet(SessionOperationServlet.createGetURI(baseURL1, "a")));
/*
* 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 individu... | response = client.execute(new HttpGet(SessionOperationServlet.createGetURI(baseURL1, "a")));
/*
* 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 individu... |
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException {
String operation = getRequiredParameter(req, OPERATION);
HttpSession session = req.getSession(true);
resp.addHeader(SESSION_ID, session.getId());
System.out.println(String.format("%s?%s;j... | protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException {
String operation = getRequiredParameter(req, OPERATION);
HttpSession session = req.getSession(true);
resp.addHeader(SESSION_ID, session.getId());
System.out.println(String.format("%s?%s;j... |
public static final AttributeDefinition PREDICATE = new SimpleAttributeDefinitionBuilder("predicate", ModelType.STRING)
.setAllowNull(true)
| public Collection<AttributeDefinition> getAttributes() {
return Collections.singleton(PREDICATE);
}
} |
public void testPostDataFormAuth() throws Exception {
log.info("+++ testPostDataFormAuth");
URL url = new URL(baseURLNoAuth + "unsecure_form.html");
HttpGet httpget = new HttpGet(url.toURI());
log.info("Executing request " + httpget.getRequestLine());
HttpResponse response ... | public void testPostDataFormAuth() throws Exception {
log.info("+++ testPostDataFormAuth");
URL url = new URL(baseURLNoAuth + "unsecure_form.html");
HttpGet httpget = new HttpGet(url.toURI());
log.info("Executing request " + httpget.getRequestLine());
HttpResponse response ... |
public static CharSequence subSequence(CharSequence cs, int start) {
return cs == null ? null : cs.subSequence(start, cs.length());
}
//-----------------------------------------------------------------------
/**
* <p>Finds the first index in the {@code CharSequence} that matches the
*... | public static CharSequence subSequence(CharSequence cs, int start) {
return cs == null ? null : cs.subSequence(start, cs.length());
}
//-----------------------------------------------------------------------
/**
* <p>Finds the first index in the {@code CharSequence} that matches the
*... |
protected void add(String str) {
if (str == null) {
return;
}
int len = str.length();
int pos = 0;
while (pos < len) {
int remainder = (len - pos);
if (remainder >= 4 && str.charAt(pos) == '^' && str.charAt(pos + 2) == '-') {
... | protected void add(String str) {
if (str == null) {
return;
}
int len = str.length();
int pos = 0;
while (pos < len) {
int remainder = len - pos;
if (remainder >= 4 && str.charAt(pos) == '^' && str.charAt(pos + 2) == '-') {
... |
public static boolean isAssignable(Class<?> cls, Class<?> toClass, boolean autoboxing) {
if (toClass == null) {
return false;
}
// have to check for null, as isAssignableFrom doesn't
if (cls == null) {
return !(toClass.isPrimitive());
}
//autob... | public static boolean isAssignable(Class<?> cls, Class<?> toClass, boolean autoboxing) {
if (toClass == null) {
return false;
}
// have to check for null, as isAssignableFrom doesn't
if (cls == null) {
return !toClass.isPrimitive();
}
//autobox... |
public boolean contains(T element) {
if (element == null) {
return false;
}
return (comparator.compare(element, minimum) > -1) && (comparator.compare(element, maximum) < 1);
}
| public boolean contains(T element) {
if (element == null) {
return false;
}
return comparator.compare(element, minimum) > -1 && comparator.compare(element, maximum) < 1;
}
|
public int hashCode() {
return (getObject() != null) ? getObject().hashCode() : 0;
}
| public int hashCode() {
return getObject() != null ? getObject().hashCode() : 0;
}
|
public synchronized double getAverageCallsPerPeriod() {
return (periodCount == 0) ? 0 : (double) totalAcquireCount
/ (double) periodCount;
| public synchronized double getAverageCallsPerPeriod() {
return periodCount == 0 ? 0 : (double) totalAcquireCount
/ (double) periodCount;
|
public void resume() {
if (this.runningState != STATE_SUSPENDED) {
throw new IllegalStateException("Stopwatch must be suspended to resume. ");
}
this.startTime += (System.nanoTime() - this.stopTime);
this.runningState = STATE_RUNNING;
}
| public void resume() {
if (this.runningState != STATE_SUSPENDED) {
throw new IllegalStateException("Stopwatch must be suspended to resume. ");
}
this.startTime += System.nanoTime() - this.stopTime;
this.runningState = STATE_RUNNING;
}
|
public void testSetShortValue() {
for (int j = 0; j < 128; j++) {
assertEquals(bf_multi.getShortValue(bf_multi.setShortValue((short) 0, (short) j)), (short) j);
assertEquals(bf_multi.setShortValue((short) 0, (short) j), (short) (j << 7));
}
for (int j = 0; j < 128; j+... | public void testSetShortValue() {
for (int j = 0; j < 128; j++) {
assertEquals(bf_multi.getShortValue(bf_multi.setShortValue((short) 0, (short) j)), (short) j);
assertEquals(bf_multi.setShortValue((short) 0, (short) j), (short) (j << 7));
}
for (int j = 0; j < 128; j+... |
private int run_inlined_CharUtils_isAsciiNumeric(int loopCount) {
int t = 0;
for (int i = 0; i < loopCount; i++) {
for (char ch : CHAR_SAMPLES) {
boolean b = (ch >= '0' && ch <= '9');
t += b ? 1 : 0;
}
}
return t;
}
| private int run_inlined_CharUtils_isAsciiNumeric(int loopCount) {
int t = 0;
for (int i = 0; i < loopCount; i++) {
for (char ch : CHAR_SAMPLES) {
boolean b = ch >= '0' && ch <= '9';
t += b ? 1 : 0;
}
}
return t;
}
|
protected ScheduledFuture<?> startTimer() {
return (schedFuture != null) ? schedFuture : super.startTimer();
}
}
| protected ScheduledFuture<?> startTimer() {
return schedFuture != null ? schedFuture : super.startTimer();
}
}
|
public void testMessageNumber() {
Assert.assertEquals(317, LocalizedFormats.values().length);
}
| public void testMessageNumber() {
Assert.assertEquals(318, LocalizedFormats.values().length);
}
|
public void testConfigOk() {
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("org/springframework/context/conversionservice/conversionservice.xml");
TestClient client = context.getBean("testClient", TestClient.class);
assertEquals(2, client.getBars().size());
assertEquals("value1", ... | public void testConfigOk() {
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("org/springframework/context/conversionservice/conversionService.xml");
TestClient client = context.getBean("testClient", TestClient.class);
assertEquals(2, client.getBars().size());
assertEquals("value1", ... |
protected ModelAndView doResolveHandlerMethodException(HttpServletRequest request,
HttpServletResponse response,
HandlerMethod handlerMethod,
Exception exception) {
if (handlerMethod == null) {
return null;
}
ServletInvocableHandlerMethod exceptionHandle... | protected ModelAndView doResolveHandlerMethodException(HttpServletRequest request,
HttpServletResponse response,
HandlerMethod handlerMethod,
Exception exception) {
if (handlerMethod == null) {
return null;
}
ServletInvocableHandlerMethod exceptionHandle... |
public void handleReturnValue(Object returnValue,
MethodParameter returnType,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest) throws Exception {
mavContainer.setResolveView(false);
if (returnValue == null) {
return;
}
ServletServerHttpRequest inputMessa... | public void handleReturnValue(Object returnValue,
MethodParameter returnType,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest) throws Exception {
mavContainer.setRequestHandled(true);
if (returnValue == null) {
return;
}
ServletServerHttpRequest inputMes... |
public void handleReturnValue(Object returnValue,
MethodParameter returnType,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest) throws IOException, HttpMediaTypeNotAcceptableException {
mavContainer.setResolveView(false);
if (returnValue != null) {
writeWithMessageCo... | public void handleReturnValue(Object returnValue,
MethodParameter returnType,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest) throws IOException, HttpMediaTypeNotAcceptableException {
mavContainer.setRequestHandled(true);
if (returnValue != null) {
writeWithMessage... |
public void handleReturnValueNull() throws Exception {
handler.handleReturnValue(null, getReturnValueParam("modelAndView"), mavContainer, webRequest);
assertFalse(mavContainer.isResolveView());
}
| public void handleReturnValueNull() throws Exception {
handler.handleReturnValue(null, getReturnValueParam("modelAndView"), mavContainer, webRequest);
assertTrue(mavContainer.isRequestHandled());
}
|
private void testResolveArgument(SimpleBean argValue, MethodParameter parameter) throws IOException, Exception {
MediaType contentType = MediaType.TEXT_PLAIN;
multipartRequest.addHeader("Content-Type", contentType.toString());
expect(messageConverter.canRead(SimpleBean.class, contentType)).andReturn(true);
ex... | private void testResolveArgument(SimpleBean argValue, MethodParameter parameter) throws IOException, Exception {
MediaType contentType = MediaType.TEXT_PLAIN;
multipartRequest.addHeader("Content-Type", contentType.toString());
expect(messageConverter.canRead(SimpleBean.class, contentType)).andReturn(true);
ex... |
public void flashMap() throws Exception {
RedirectView rv = new RedirectView();
rv.setUrl("http://url.somewhere.com/path");
rv.setHttp10Compatible(false);
MockHttpServletRequest request = new MockHttpServletRequest();
MockHttpServletResponse response = new MockHttpServletResponse();
FlashMap flashMap = new... | public void flashMap() throws Exception {
RedirectView rv = new RedirectView();
rv.setUrl("http://url.somewhere.com/path");
rv.setHttp10Compatible(false);
MockHttpServletRequest request = new MockHttpServletRequest();
MockHttpServletResponse response = new MockHttpServletResponse();
FlashMap flashMap = new... |
public void updateModel(NativeWebRequest request, ModelAndViewContainer mavContainer, SessionStatus sessionStatus)
throws Exception {
if (sessionStatus.isComplete()){
this.sessionAttributesHandler.cleanupAttributes(request);
}
else {
this.sessionAttributesHandler.storeAttributes(request, mavContainer... | public void updateModel(NativeWebRequest request, ModelAndViewContainer mavContainer, SessionStatus sessionStatus)
throws Exception {
if (sessionStatus.isComplete()){
this.sessionAttributesHandler.cleanupAttributes(request);
}
else {
this.sessionAttributesHandler.storeAttributes(request, mavContainer... |
public void run() {
System.exit(restart ? ExitCodes.RESTART_PROCESS_FROM_STARTUP_SCRIPT : 0);
}
});
// The intention is that this shutdown is graceful, and so the client gets a reply.
// At the time of writin... | public void run() {
System.exit(restart ? ExitCodes.RESTART_PROCESS_FROM_STARTUP_SCRIPT : ExitCodes.NORMAL);
}
});
// The intention is that this shutdown is graceful, and so the client gets a reply.
// At the... |
public double initializeStep(final FirstOrderDifferentialEquations equations,
final boolean forward, final int order, final double[] scale,
final double t0, final double[] y0, final double[] yDot0,
final double[] y1, final do... | public double initializeStep(final FirstOrderDifferentialEquations equations,
final boolean forward, final int order, final double[] scale,
final double t0, final double[] y0, final double[] yDot0,
final double[] y1, final do... |
private void writeServerDeployments(final XMLExtendedStreamWriter writer, final ModelNode modelNode)
throws XMLStreamException {
Set<String> deploymentNames = modelNode.keys();
if (deploymentNames.size() > 0) {
boolean deploymentWritten = false;
for (String uniqu... | private void writeServerDeployments(final XMLExtendedStreamWriter writer, final ModelNode modelNode)
throws XMLStreamException {
Set<String> deploymentNames = modelNode.keys();
if (deploymentNames.size() > 0) {
boolean deploymentWritten = false;
for (String uniqu... |
private Map populateFromCentralDirectory()
throws IOException {
HashMap noUTF8Flag = new HashMap();
positionAtCentralDirectory();
byte[] cfh = new byte[CFH_LEN];
byte[] signatureBytes = new byte[WORD];
archive.readFully(signatureBytes);
long sig = ZipLong.g... | private Map populateFromCentralDirectory()
throws IOException {
HashMap noUTF8Flag = new HashMap();
positionAtCentralDirectory();
byte[] cfh = new byte[CFH_LEN];
byte[] signatureBytes = new byte[WORD];
archive.readFully(signatureBytes);
long sig = ZipLong.g... |
public void afterTest() throws Exception {
// undeploy helper servlets
cli.sendLine("undeploy RolloutPlanTestCase.war --all-relevant-server-groups", true);
// remove socket binding
cli.sendLine("/socket-binding-group=standard-sockets/socket-binding=test-binding:remove(){allow-resou... | public void afterTest() throws Exception {
// undeploy helper servlets
cli.sendLine("undeploy RolloutPlanTestCase.war --all-relevant-server-groups", true);
// remove socket binding
cli.sendLine("/socket-binding-group=standard-sockets/socket-binding=test-binding:remove", true);
... |
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode recoveryEnvModel,
ServiceVerificationHandler verificationHandler,
List<ServiceController<?>> serviceControllers) throws OperationFailedException {
final... | protected void performRuntime(OperationContext context, ModelNode operation, ModelNode recoveryEnvModel,
ServiceVerificationHandler verificationHandler,
List<ServiceController<?>> serviceControllers) throws OperationFailedException {
final... |
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode recoveryEnvModel,
ServiceVerificationHandler verificationHandler,
List<ServiceController<?>> serviceControllers) throws OperationFailedException {
final... | protected void performRuntime(OperationContext context, ModelNode operation, ModelNode recoveryEnvModel,
ServiceVerificationHandler verificationHandler,
List<ServiceController<?>> serviceControllers) throws OperationFailedException {
final... |
protected void performBoottime(OperationContext context, ModelNode operation, ModelNode recoveryEnvModel,
ServiceVerificationHandler verificationHandler,
List<ServiceController<?>> serviceControllers) throws OperationFailedException {
fina... | protected void performBoottime(OperationContext context, ModelNode operation, ModelNode recoveryEnvModel,
ServiceVerificationHandler verificationHandler,
List<ServiceController<?>> serviceControllers) throws OperationFailedException {
fina... |
protected void performBoottime(OperationContext context, ModelNode operation, ModelNode recoveryEnvModel,
ServiceVerificationHandler verificationHandler,
List<ServiceController<?>> serviceControllers) throws OperationFailedException {
fina... | protected void performBoottime(OperationContext context, ModelNode operation, ModelNode recoveryEnvModel,
ServiceVerificationHandler verificationHandler,
List<ServiceController<?>> serviceControllers) throws OperationFailedException {
fina... |
protected void performBoottime(OperationContext context, ModelNode operation, ModelNode recoveryEnvModel,
ServiceVerificationHandler verificationHandler,
List<ServiceController<?>> serviceControllers) throws OperationFailedException {
fina... | protected void performBoottime(OperationContext context, ModelNode operation, ModelNode recoveryEnvModel,
ServiceVerificationHandler verificationHandler,
List<ServiceController<?>> serviceControllers) throws OperationFailedException {
fina... |
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
ModelNode resolvedValue = attributeDefinition != null ? attributeDefinition.validateResolvedOperation(submodel) : newValue.resolve();
validateResolvedValue(attribu... | public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
ModelNode resolvedValue = attributeDefinition != null ? attributeDefinition.resolveModelAttribute(context, submodel) : newValue.resolve();
validateResolvedValue(at... |
protected void revertUpdateToRuntime(OperationContext context, ModelNode operation, String attributeName,
ModelNode valueToRestore, ModelNode valueToRevert, Void handback) throws OperationFailedException {
final ModelNode restored = context.readResource(PathAddress.E... | protected void revertUpdateToRuntime(OperationContext context, ModelNode operation, String attributeName,
ModelNode valueToRestore, ModelNode valueToRevert, Void handback) throws OperationFailedException {
final ModelNode restored = context.readResource(PathAddress.E... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.