ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mad...@apache.org
Subject [2/3] git commit: whitespace corrections.
Date Thu, 04 Sep 2014 23:56:21 GMT
whitespace corrections.

Project: http://git-wip-us.apache.org/repos/asf/incubator-argus/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-argus/commit/83eca5e2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-argus/tree/83eca5e2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-argus/diff/83eca5e2

Branch: refs/heads/master
Commit: 83eca5e2314a92f3be0da328764a5f73bc0f859e
Parents: 914f0ba
Author: mneethiraj <mneethiraj@hortonworks.com>
Authored: Thu Sep 4 13:47:00 2014 -0700
Committer: mneethiraj <mneethiraj@hortonworks.com>
Committed: Thu Sep 4 13:47:00 2014 -0700

----------------------------------------------------------------------
 .../java/com/xasecure/audit/dao/DaoManagerBase.java |  8 +++-----
 .../com/xasecure/audit/model/AuditEventBase.java    |  2 +-
 .../com/xasecure/audit/provider/AuditProvider.java  |  2 +-
 .../audit/provider/MultiDestAuditProvider.java      |  3 +--
 .../java/com/xasecure/audit/test/TestEvents.java    | 16 ++++++++--------
 5 files changed, 14 insertions(+), 17 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/83eca5e2/agents-audit/src/main/java/com/xasecure/audit/dao/DaoManagerBase.java
----------------------------------------------------------------------
diff --git a/agents-audit/src/main/java/com/xasecure/audit/dao/DaoManagerBase.java b/agents-audit/src/main/java/com/xasecure/audit/dao/DaoManagerBase.java
index f1cfea8..eb367b0 100644
--- a/agents-audit/src/main/java/com/xasecure/audit/dao/DaoManagerBase.java
+++ b/agents-audit/src/main/java/com/xasecure/audit/dao/DaoManagerBase.java
@@ -27,7 +27,7 @@ public abstract class DaoManagerBase {
 	final static Logger logger = Logger.getLogger(DaoManagerBase.class);
 
 	abstract public EntityManager getEntityManager();
-	
+
 	private XAHBaseAuditEventDao mHBaseDao = null;
 	private XAHdfsAuditEventDao  mHdfsDao  = null;
 	private XAHiveAuditEventDao  mHiveDao  = null;
@@ -60,7 +60,7 @@ public abstract class DaoManagerBase {
 
 		return mHiveDao;
 	}
-	
+
 	public XAKnoxAuditEventDao getXAKnoxAuditEvent() {
 		if(mKnoxDao == null) {
 			mKnoxDao = new XAKnoxAuditEventDao(this);
@@ -68,7 +68,7 @@ public abstract class DaoManagerBase {
 
 		return mKnoxDao;
 	}
-	
+
 	public XAStormAuditEventDao getXAStormAuditEvent() {
 		if(mStormDao == null) {
 			mStormDao = new XAStormAuditEventDao(this);
@@ -76,7 +76,5 @@ public abstract class DaoManagerBase {
 
 		return mStormDao;
 	}
-	
-	
 }
 

http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/83eca5e2/agents-audit/src/main/java/com/xasecure/audit/model/AuditEventBase.java
----------------------------------------------------------------------
diff --git a/agents-audit/src/main/java/com/xasecure/audit/model/AuditEventBase.java b/agents-audit/src/main/java/com/xasecure/audit/model/AuditEventBase.java
index 8830e58..6873be5 100644
--- a/agents-audit/src/main/java/com/xasecure/audit/model/AuditEventBase.java
+++ b/agents-audit/src/main/java/com/xasecure/audit/model/AuditEventBase.java
@@ -258,7 +258,7 @@ public abstract class AuditEventBase {
 	}
 
 	public abstract void persist(DaoManager daoManager);
-	
+
 	@Override
 	public String toString() {
 		return toString(new StringBuilder()).toString();

http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/83eca5e2/agents-audit/src/main/java/com/xasecure/audit/provider/AuditProvider.java
----------------------------------------------------------------------
diff --git a/agents-audit/src/main/java/com/xasecure/audit/provider/AuditProvider.java b/agents-audit/src/main/java/com/xasecure/audit/provider/AuditProvider.java
index 9460de3..ee9bebe 100644
--- a/agents-audit/src/main/java/com/xasecure/audit/provider/AuditProvider.java
+++ b/agents-audit/src/main/java/com/xasecure/audit/provider/AuditProvider.java
@@ -22,7 +22,7 @@ import com.xasecure.audit.model.AuditEventBase;
 
 public interface AuditProvider {
 	public void log(AuditEventBase event);
-    
+
     public void start();
     public void stop();
     public void waitToComplete();

http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/83eca5e2/agents-audit/src/main/java/com/xasecure/audit/provider/MultiDestAuditProvider.java
----------------------------------------------------------------------
diff --git a/agents-audit/src/main/java/com/xasecure/audit/provider/MultiDestAuditProvider.java
b/agents-audit/src/main/java/com/xasecure/audit/provider/MultiDestAuditProvider.java
index 9181d0d..d068bdd 100644
--- a/agents-audit/src/main/java/com/xasecure/audit/provider/MultiDestAuditProvider.java
+++ b/agents-audit/src/main/java/com/xasecure/audit/provider/MultiDestAuditProvider.java
@@ -65,12 +65,11 @@ public class MultiDestAuditProvider implements AuditProvider {
 		}
 	}
 
-	
 	@Override
 	public void log(AuditEventBase event) {
 		try {
             for(AuditProvider provider : mProviders) {
-            	provider.log(event);
+                provider.log(event);
             }
 		} catch(Throwable excp) {
 			LOG.error("failed to log event { " + event.toString() + " }", excp);

http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/83eca5e2/agents-audit/src/main/java/com/xasecure/audit/test/TestEvents.java
----------------------------------------------------------------------
diff --git a/agents-audit/src/main/java/com/xasecure/audit/test/TestEvents.java b/agents-audit/src/main/java/com/xasecure/audit/test/TestEvents.java
index 073a356..a674dc6 100644
--- a/agents-audit/src/main/java/com/xasecure/audit/test/TestEvents.java
+++ b/agents-audit/src/main/java/com/xasecure/audit/test/TestEvents.java
@@ -61,13 +61,13 @@ public class TestEvents {
         	AuditProviderFactory.getInstance().init(auditProperties);
 
         	AuditProvider provider = AuditProviderFactory.getAuditProvider();
-        	
+
         	LOG.info("provider=" + provider.toString());
-        	
+
         	String strEventCount = args.length > 0 ? args[0] : auditProperties.getProperty("xasecure.audit.test.event.count");
-        	
+
         	int eventCount = (strEventCount == null) ? 1024 : Integer.parseInt(strEventCount);
-        	
+
         	AuditEventBase[] auditEvents = {
 	            new HBaseAuditEvent(),
 	            new HdfsAuditEvent(),
@@ -75,16 +75,16 @@ public class TestEvents {
 	            new KnoxAuditEvent(),
 	            new StormAuditEvent(),
         	};
-        	
+
         	for(int i = 0; i < eventCount; i++) {
         		AuditEventBase event = auditEvents[i % auditEvents.length];
 
 	            LOG.info("==> TestEvents.main(" + (i+1) + "): adding " + event.getClass().getName());
         		event.setEventTime(new Date());
         		provider.log(event);
-	            
-	            if(i != 0 && ((i % 100) == 0))
-	            	Thread.sleep(100);
+
+                if(i != 0 && ((i % 100) == 0))
+                    Thread.sleep(100);
         	}
         } catch(Exception excp) {
             LOG.info(excp.getLocalizedMessage());


Mime
View raw message