Codota Logo
AppFabricClient.getVersionedInfo
Code IndexAdd Codota to your IDE (free)

How to use
getVersionedInfo
method
in
co.cask.cdap.internal.AppFabricClient

Best Java code snippets using co.cask.cdap.internal.AppFabricClient.getVersionedInfo (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
origin: caskdata/cdap

@Override
public ApplicationDetail getApplicationDetail(ApplicationId applicationId) throws Exception {
 return appFabricClient.getVersionedInfo(applicationId);
}
origin: co.cask.cdap/cdap-unit-test

@Override
public ApplicationDetail getApplicationDetail(ApplicationId applicationId) throws Exception {
 return appFabricClient.getVersionedInfo(applicationId);
}
origin: caskdata/cdap

@Override
public void stopAll() {
 try {
  ApplicationDetail appDetail = appFabricClient.getVersionedInfo(application);
  for (ProgramRecord programRecord : appDetail.getPrograms()) {
   try {
    appFabricClient.stopProgram(application.getNamespace(), application.getApplication(),
                  appDetail.getAppVersion(), programRecord.getName(), programRecord.getType());
   } catch (BadRequestException e) {
    // Ignore this as this will be throw if the program is not running, which is fine as there could
    // be programs in the application that are currently not running.
   }
   waitForStopped(application.program(programRecord.getType(), programRecord.getName()));
  }
 } catch (NamespaceNotFoundException e) {
  // This can be safely ignore if the unit-test already deleted the namespace
 } catch (Exception e) {
  throw Throwables.propagate(e);
 }
}
origin: co.cask.cdap/cdap-unit-test

@Override
public void stopAll() {
 try {
  ApplicationDetail appDetail = appFabricClient.getVersionedInfo(application);
  for (ProgramRecord programRecord : appDetail.getPrograms()) {
   try {
    appFabricClient.stopProgram(application.getNamespace(), application.getApplication(),
                  appDetail.getAppVersion(), programRecord.getName(), programRecord.getType());
   } catch (BadRequestException e) {
    // Ignore this as this will be throw if the program is not running, which is fine as there could
    // be programs in the application that are currently not running.
   }
   waitForStopped(application.program(programRecord.getType(), programRecord.getName()));
  }
 } catch (NamespaceNotFoundException e) {
  // This can be safely ignore if the unit-test already deleted the namespace
 } catch (Exception e) {
  throw Throwables.propagate(e);
 }
}
co.cask.cdap.internalAppFabricClientgetVersionedInfo

Popular methods of AppFabricClient

  • deployApplication
  • addSchedule
  • deleteAllApplications
  • deleteApplication
  • deleteSchedule
  • doGetHistory
  • enableSchedule
  • getFlowletInstances
  • getHistory
  • getInfo
  • getNamespacePath
  • getPlugins
  • getNamespacePath,
  • getPlugins,
  • getProgramSchedules,
  • getRuntimeArgs,
  • getServiceInstances,
  • getStatus,
  • getWorkerInstances,
  • getWorkflowNodeStates,
  • getWorkflowToken

Popular in Java

  • Running tasks concurrently on multiple threads
  • runOnUiThread (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getApplicationContext (Context)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • URI (java.net)
    Represents a Uniform Resource Identifier (URI) reference. Aside from some minor deviations noted bel
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • JButton (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now