congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
AdminController
Code IndexAdd Tabnine to your IDE (free)

How to use
AdminController
in
com.netflix.kayenta.orca.controllers

Best Java code snippets using com.netflix.kayenta.orca.controllers.AdminController (Showing top 2 results out of 315)

origin: spinnaker/kayenta

@RequestMapping(value = "/instance/enabled", consumes = "application/json", method = RequestMethod.POST)
void setInstanceEnabled(@RequestBody Map<String, Boolean> enabledWrapper) {
 Boolean enabled = enabledWrapper.get("enabled");
 if (enabled == null) {
  throw new ValidationException("The field 'enabled' must be set.", null);
 }
 setInstanceEnabled(enabled);
}
origin: com.netflix.kayenta/kayenta-orca

@RequestMapping(value = "/instance/enabled", consumes = "application/json", method = RequestMethod.POST)
void setInstanceEnabled(@RequestBody Map<String, Boolean> enabledWrapper) {
 Boolean enabled = enabledWrapper.get("enabled");
 if (enabled == null) {
  throw new ValidationException("The field 'enabled' must be set.", null);
 }
 setInstanceEnabled(enabled);
}
com.netflix.kayenta.orca.controllersAdminController

Most used methods

  • setInstanceEnabled

Popular in Java

  • Parsing JSON documents to java classes using gson
  • addToBackStack (FragmentTransaction)
  • putExtra (Intent)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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