Skip to content

Commit e06c116

Browse files
committed
mavenized++
mavenized++
1 parent daa6020 commit e06c116

File tree

243 files changed

+6323
-5969
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

243 files changed

+6323
-5969
lines changed

.classpath

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<classpath>
3-
<classpathentry exported="true" kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk8"/>
4-
<classpathentry kind="src" path="src"/>
3+
<classpathentry kind="src" path="src/main/java"/>
4+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk8"/>
55
<classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/JAVA_SRC_LIBS"/>
66
<classpathentry kind="output" path="bin"/>
77
</classpath>

README.md

Lines changed: 70 additions & 70 deletions
Large diffs are not rendered by default.

pom.xml

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3+
4+
<!-- Project properties -->
5+
<modelVersion>4.0.0</modelVersion>
6+
<groupId>com.inbravo</groupId>
7+
<artifactId>java-src</artifactId>
8+
<packaging>jar</packaging>
9+
<version>1.0.1beta</version>
10+
<name>java-src</name>
11+
<url>https://github.com/inbravo/java-src</url>
12+
13+
<!-- Library properties -->
14+
<properties>
15+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
16+
<compile.java.version>1.8</compile.java.version>
17+
<hadoop.version>3.0.0-alpha1</hadoop.version>
18+
<spark.version>1.5.2</spark.version>
19+
</properties>
20+
21+
<!-- Project dependencies -->
22+
<dependencies>
23+
<dependency>
24+
<groupId>org.apache.hadoop</groupId>
25+
<artifactId>hadoop-common</artifactId>
26+
<version>${hadoop.version}</version>
27+
</dependency>
28+
<dependency>
29+
<groupId>org.apache.hadoop</groupId>
30+
<artifactId>hadoop-mapreduce-client-core</artifactId>
31+
<version>${hadoop.version}</version>
32+
</dependency>
33+
<dependency>
34+
<groupId>com.google.guava</groupId>
35+
<artifactId>guava</artifactId>
36+
<version>14.0-rc1</version>
37+
</dependency>
38+
<dependency>
39+
<groupId>log4j</groupId>
40+
<artifactId>log4j</artifactId>
41+
<version>1.2.17</version>
42+
</dependency>
43+
<dependency>
44+
<groupId>javax.mail</groupId>
45+
<artifactId>javax.mail-api</artifactId>
46+
<version>1.6.0-rc2</version>
47+
</dependency>
48+
<dependency>
49+
<groupId>com.jcraft</groupId>
50+
<artifactId>jsch</artifactId>
51+
<version>0.1.54</version>
52+
</dependency>
53+
<dependency>
54+
<groupId>org.scala-lang</groupId>
55+
<artifactId>scala-library</artifactId>
56+
<version>2.13.0-M1</version>
57+
</dependency>
58+
<dependency>
59+
<groupId>org.apache.spark</groupId>
60+
<artifactId>spark-core_2.10</artifactId>
61+
<version>${spark.version}</version>
62+
</dependency>
63+
<dependency>
64+
<groupId>org.apache.spark</groupId>
65+
<artifactId>spark-streaming_2.10</artifactId>
66+
<version>${spark.version}</version>
67+
</dependency>
68+
<dependency>
69+
<groupId>object-explorer</groupId>
70+
<artifactId>object-explorer</artifactId>
71+
<version>1.0</version>
72+
<scope>system</scope>
73+
<systemPath>${project.basedir}/lib/object-explorer.jar</systemPath>
74+
</dependency>
75+
76+
</dependencies>
77+
78+
<build>
79+
<plugins>
80+
<plugin>
81+
<groupId>org.apache.maven.plugins</groupId>
82+
<artifactId>maven-compiler-plugin</artifactId>
83+
<version>3.6.1</version>
84+
<configuration>
85+
<source>${compile.java.version}</source>
86+
<target>${compile.java.version}</target>
87+
<verbose>true</verbose>
88+
<fork>true</fork>
89+
</configuration>
90+
</plugin>
91+
</plugins>
92+
</build>
93+
</project>
Lines changed: 67 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,67 @@
1-
package com.inbravo.collection;
2-
3-
import java.util.ArrayList;
4-
import java.util.Iterator;
5-
import java.util.List;
6-
import java.util.concurrent.CopyOnWriteArrayList;
7-
8-
/**
9-
* Test of CopyOnWriteArrayList (COWAL)
10-
*
11-
* @author amit.dixit
12-
*
13-
*/
14-
public final class CowalTest {
15-
16-
/**
17-
*
18-
* @param args
19-
*/
20-
public static final void main(final String... args) {
21-
22-
withCowal();
23-
withoutCowal();
24-
}
25-
26-
/**
27-
*
28-
*/
29-
public static final void withCowal() {
30-
System.out.println("No CMEx with Cowal >>>");
31-
32-
/* Create new COWAL */
33-
final CopyOnWriteArrayList<String> list = new CopyOnWriteArrayList<String>();
34-
35-
/* Add elements in COWAL */
36-
list.add("vivek");
37-
list.add("kumar");
38-
39-
final Iterator<String> i = list.iterator();
40-
41-
while (i.hasNext()) {
42-
System.out.println(i.next());
43-
44-
/* Change the list; it will not fail on next iteration */
45-
list.add("abhishek");
46-
}
47-
}
48-
49-
/**
50-
*
51-
*/
52-
public static final void withoutCowal() {
53-
System.out.println("CMEx without Cowal >>>");
54-
final List<String> list = new ArrayList<String>();
55-
list.add("vivek");
56-
list.add("kumar");
57-
58-
final Iterator<String> i = list.iterator();
59-
60-
while (i.hasNext()) {
61-
System.out.println(i.next());
62-
63-
/* Change the list; it will fail on next iteration */
64-
list.add("abhishek");
65-
}
66-
}
67-
}
1+
package com.inbravo.collection;
2+
3+
import java.util.ArrayList;
4+
import java.util.Iterator;
5+
import java.util.List;
6+
import java.util.concurrent.CopyOnWriteArrayList;
7+
8+
/**
9+
* Test of CopyOnWriteArrayList (COWAL)
10+
*
11+
* @author amit.dixit
12+
*
13+
*/
14+
public final class CowalTest {
15+
16+
/**
17+
*
18+
* @param args
19+
*/
20+
public static final void main(final String... args) {
21+
22+
withCowal();
23+
withoutCowal();
24+
}
25+
26+
/**
27+
*
28+
*/
29+
public static final void withCowal() {
30+
System.out.println("No CMEx with Cowal >>>");
31+
32+
/* Create new COWAL */
33+
final CopyOnWriteArrayList<String> list = new CopyOnWriteArrayList<String>();
34+
35+
/* Add elements in COWAL */
36+
list.add("vivek");
37+
list.add("kumar");
38+
39+
final Iterator<String> i = list.iterator();
40+
41+
while (i.hasNext()) {
42+
System.out.println(i.next());
43+
44+
/* Change the list; it will not fail on next iteration */
45+
list.add("abhishek");
46+
}
47+
}
48+
49+
/**
50+
*
51+
*/
52+
public static final void withoutCowal() {
53+
System.out.println("CMEx without Cowal >>>");
54+
final List<String> list = new ArrayList<String>();
55+
list.add("vivek");
56+
list.add("kumar");
57+
58+
final Iterator<String> i = list.iterator();
59+
60+
while (i.hasNext()) {
61+
System.out.println(i.next());
62+
63+
/* Change the list; it will fail on next iteration */
64+
list.add("abhishek");
65+
}
66+
}
67+
}
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
package com.inbravo.concurrency;
2-
3-
/**
4-
*
5-
* @author amit.dixit
6-
*
7-
*/
8-
public final class AvailableProcessorTest {
9-
10-
public static final void main(final String... args) {
11-
12-
final int numProcessores = Runtime.getRuntime().availableProcessors();
13-
14-
System.out.println("Processor has " + numProcessores + " cores");
15-
}
16-
}
1+
package com.inbravo.concurrency;
2+
3+
/**
4+
*
5+
* @author amit.dixit
6+
*
7+
*/
8+
public final class AvailableProcessorTest {
9+
10+
public static final void main(final String... args) {
11+
12+
final int numProcessores = Runtime.getRuntime().availableProcessors();
13+
14+
System.out.println("Processor has " + numProcessores + " cores");
15+
}
16+
}

0 commit comments

Comments
 (0)