Tabnine Logo
AuditMetadataLogEntity.setServiceName
Code IndexAdd Tabnine to your IDE (free)

How to use
setServiceName
method
in
org.apache.sentry.provider.db.log.entity.AuditMetadataLogEntity

Best Java code snippets using org.apache.sentry.provider.db.log.entity.AuditMetadataLogEntity.setServiceName (Showing top 2 results out of 315)

origin: apache/incubator-sentry

 private void setCommAttrForAMLE(AuditMetadataLogEntity amle, Configuration conf,
   TSentryResponseStatus responseStatus, String userName, String requestClassName) {
  amle.setUserName(userName);
  amle.setServiceName(conf.get(ServerConfig.SENTRY_SERVICE_NAME,
    ServerConfig.SENTRY_SERVICE_NAME_DEFAULT).trim());
  amle.setImpersonator(ThriftUtil.getImpersonator());
  amle.setIpAddress(ThriftUtil.getIpAddress());
  amle.setOperation(Constants.requestTypeToOperationMap.get(requestClassName));
  amle.setEventTime(Long.toString(System.currentTimeMillis()));
  amle.setAllowed(isAllowed(responseStatus));
  amle.setObjectType(Constants.requestTypeToObjectTypeMap
    .get(requestClassName));
 }
}
origin: apache/sentry

private void setCommAttrForAMLE(AuditMetadataLogEntity amle, Configuration conf,
  TSentryResponseStatus responseStatus, String userName, String operationType, String objectType) {
 amle.setUserName(userName);
 amle.setServiceName(conf.get(ServerConfig.SENTRY_SERVICE_NAME,
   ServerConfig.SENTRY_SERVICE_NAME_DEFAULT).trim());
 amle.setImpersonator(ThriftUtil.getImpersonator());
 amle.setIpAddress(ThriftUtil.getIpAddress());
 amle.setOperation(operationType);
 amle.setEventTime(Long.toString(System.currentTimeMillis()));
 amle.setAllowed(isAllowed(responseStatus));
 amle.setObjectType(objectType);
}
org.apache.sentry.provider.db.log.entityAuditMetadataLogEntitysetServiceName

Popular methods of AuditMetadataLogEntity

  • parse
    For use in tests
  • setAllowed
  • setEventTime
  • setImpersonator
  • setIpAddress
  • setObjectType
  • setOperation
  • setUserName
  • setOperationText

Popular in Java

  • Making http post requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • runOnUiThread (Activity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • From CI to AI: The AI layer in your organization
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