Tabnine Logo
SentryService.runServer
Code IndexAdd Tabnine to your IDE (free)

How to use
runServer
method
in
org.apache.sentry.service.thrift.SentryService

Best Java code snippets using org.apache.sentry.service.thrift.SentryService.runServer (Showing top 2 results out of 315)

origin: apache/sentry

@Override
public String call() throws Exception {
 SentryKerberosContext kerberosContext = null;
 try {
  status = Status.STARTED;
  if (kerberos) {
   kerberosContext = new SentryKerberosContext(principal, keytab, true);
   Subject.doAs(kerberosContext.getSubject(), new PrivilegedExceptionAction<Void>() {
    @Override
    public Void run() throws Exception {
     runServer();
     return null;
    }
   });
  } else {
   runServer();
  }
 } catch (Exception t) {
  LOGGER.error("Error starting server", t);
  throw new Exception("Error starting server", t);
 } finally {
  if (kerberosContext != null) {
   kerberosContext.shutDown();
  }
  status = Status.NOT_STARTED;
 }
 return null;
}
origin: apache/incubator-sentry

@Override
public String call() throws Exception {
 SentryKerberosContext kerberosContext = null;
 try {
  status = Status.STARTED;
  if (kerberos) {
   kerberosContext = new SentryKerberosContext(principal, keytab, true);
   Subject.doAs(kerberosContext.getSubject(), new PrivilegedExceptionAction<Void>() {
    @Override
    public Void run() throws Exception {
     runServer();
     return null;
    }
   });
  } else {
   runServer();
  }
 } catch (Exception t) {
  LOGGER.error("Error starting server", t);
  throw new Exception("Error starting server", t);
 } finally {
  if (kerberosContext != null) {
   kerberosContext.shutDown();
  }
  status = Status.NOT_STARTED;
 }
 return null;
}
org.apache.sentry.service.thriftSentryServicerunServer

Popular methods of SentryService

  • isRunning
  • start
  • stop
  • <init>
  • addMultiException
  • findFreePort
  • getAddress
  • getIsActiveGauge
  • isWebServerRunning
  • loadConfig
  • startSentryWebServer
  • stopSentryWebServer
  • startSentryWebServer,
  • stopSentryWebServer,
  • addSentryServiceGauge,
  • getBecomeActiveCount,
  • getSentryStore,
  • startHMSFollower,
  • startSentryStoreCleaner,
  • stopHMSFollower,
  • stopSentryStoreCleaner

Popular in Java

  • Updating database using SQL prepared statement
  • runOnUiThread (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • addToBackStack (FragmentTransaction)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JCheckBox (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Github Copilot 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