Tabnine Logo
JobControl.getThreadCount
Code IndexAdd Tabnine to your IDE (free)

How to use
getThreadCount
method
in
com.emc.ecs.sync.rest.JobControl

Best Java code snippets using com.emc.ecs.sync.rest.JobControl.getThreadCount (Showing top 2 results out of 315)

origin: EMCECS/ecs-sync

public void setJobControl(int jobId, JobControl jobControl) {
  EcsSync sync = syncCache.get(jobId);
  if (sync == null) throw new JobNotFoundException("the specified job ID does not exist");
  if (jobControl.getThreadCount() > 0) {
    sync.setThreadCount(jobControl.getThreadCount());
  }
  if (jobControl.getStatus() != null) {
    switch (jobControl.getStatus()) {
      case Stopped:
        sync.terminate();
        break;
      case Paused:
        sync.pause();
        break;
      case Running:
        sync.resume();
        break;
    }
  }
}
origin: EMCECS/ecs-sync

Assert.assertNotNull(jobControl);
Assert.assertEquals(JobControlStatus.Paused, jobControl.getStatus());
Assert.assertEquals(2, jobControl.getThreadCount());
Assert.assertNotNull(jobControl);
Assert.assertEquals(JobControlStatus.Running, jobControl.getStatus());
Assert.assertEquals(2, jobControl.getThreadCount());
com.emc.ecs.sync.restJobControlgetThreadCount

Popular methods of JobControl

  • <init>
  • getStatus
  • setStatus
  • setThreadCount

Popular in Java

  • Creating JSON documents from java classes using gson
  • addToBackStack (FragmentTransaction)
  • getSupportFragmentManager (FragmentActivity)
  • runOnUiThread (Activity)
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top plugins for Android Studio
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