Tabnine Logo
JobContext.getJobExecutionContext
Code IndexAdd Tabnine to your IDE (free)

How to use
getJobExecutionContext
method
in
org.springframework.batch.core.scope.context.JobContext

Best Java code snippets using org.springframework.batch.core.scope.context.JobContext.getJobExecutionContext (Showing top 8 results out of 315)

origin: spring-projects/spring-batch

@Override
public String toString() {
  return super.toString() + ", jobExecutionContext=" + getJobExecutionContext() + ", jobParameters="
      + getJobParameters();
}
origin: spring-projects/spring-batch

@Test
public void testJobExecutionContext() throws Exception {
  ExecutionContext executionContext = jobExecution.getExecutionContext();
  executionContext.put("foo", "bar");
  assertEquals("bar", context.getJobExecutionContext().get("foo"));
}
origin: spring-projects/spring-batch

  @Override
  public String call() throws Exception {
    ExecutionContext executionContext = jobExecution.getExecutionContext();
    executionContext.put("foo", value);
    JobContext context = JobSynchronizationManager.register(jobExecution);
    logger.debug("Registered: " + context.getJobExecutionContext());
    try {
      return simple.getName();
    }
    finally {
      JobSynchronizationManager.close();
    }
  }
});
origin: spring-projects/spring-batch

  @Override
  public String call() throws Exception {
    JobExecution jobExecution = new JobExecution(id);
    ExecutionContext executionContext = jobExecution.getExecutionContext();
    executionContext.put("foo", value);
    JobContext context = JobSynchronizationManager.register(jobExecution);
    logger.debug("Registered: " + context.getJobExecutionContext());
    try {
      return simple.getName();
    }
    finally {
      JobSynchronizationManager.close();
    }
  }
});
origin: spring-projects/spring-batch

private void testExecutionContext(Object target) throws Exception {
  TestContext testContext = getTestContext(target);
  listener.prepareTestInstance(testContext);
  try {
    listener.beforeTestMethod(testContext);
    JobContext context = JobSynchronizationManager.getContext();
    assertNotNull(context);
    assertEquals("bar", context.getJobExecutionContext().get("foo"));
  }
  finally {
    listener.afterTestMethod(testContext);
  }
  assertNull(JobSynchronizationManager.getContext());
}
origin: org.springframework.batch/spring-batch-core

@Override
public String toString() {
  return super.toString() + ", jobExecutionContext=" + getJobExecutionContext() + ", jobParameters="
      + getJobParameters();
}
origin: apache/servicemix-bundles

@Override
public String toString() {
  return super.toString() + ", jobExecutionContext=" + getJobExecutionContext() + ", jobParameters="
      + getJobParameters();
}
origin: org.springframework.batch.core/org.motechproject.org.springframework.batch.core

@Override
public String toString() {
  return super.toString() + ", jobExecutionContext=" + getJobExecutionContext() + ", jobParameters="
      + getJobParameters();
}
org.springframework.batch.core.scope.contextJobContextgetJobExecutionContext

Popular methods of JobContext

  • getJobParameters
  • <init>
  • close
    Clean up the context at the end of a step execution. Must be called once at the end of a step execut
  • getAttribute
  • getId
  • registerDestructionCallback
    Allow clients to register callbacks for clean up on close.
  • setAttribute
  • removeAttribute
    Override base class behaviour to ensure destruction callbacks are unregistered as well as the defaul
  • unregisterDestructionCallbacks
  • attributeNames
  • equals
    Extend the base class method to include the job execution itself as a key (i.e. two contexts are onl
  • getJobExecution
    The current JobExecution that is active in this context.
  • equals,
  • getJobExecution,
  • getJobName,
  • getSystemProperties,
  • hasAttribute

Popular in Java

  • Reading from database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • requestLocationUpdates (LocationManager)
  • putExtra (Intent)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now