Saturday 15 October 2016

perssonal

import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.Scanner;


public class GolfGame {

/**
* @param args
* @throws IOException
*/
public static void main(String[] args) throws IOException {
// TODO Auto-generated method stub

String a[]= new String[4];
String b[]= new String[4];
String c[]= new String[4];
String s1[];
BufferedReader br=new BufferedReader(new FileReader("file.txt"));


for(int i=0; i<4; i++)

{
String s=br.readLine();
s1=s.split(" ");
a[i]=s1[0];
b[i]=s1[1];
c[i]=s1[2];
System.out.println(s1[0]+"::"+s1[1]+"::"+s1[2]);


}


}

}

Saturday 13 August 2016

HikariCP A high-performance JDBC connection pool.

There is nothing faster. There is nothing more correct. HikariCP is a “zero-overhead” production-quality connection pool.
please follow the link
https://brettwooldridge.github.io/HikariCP/

Wednesday 8 June 2016

Playing with Annonymous inner class


Annonymous inner class

Thread T= new Thread()
{};
//annonumous inner class extends Thread class, in short it's  extedns parent Thread

Runnable R= new Runnable()
{
};
is it possible , yes
it's not runnable object it's an object of annonumous class which implement Runnable
else you can't crate an object of Interface

Example

public class AnnnerClass {

public static void main(String[] args) {

A a=new A()
{

public void m1()
{

System.out.println("spicy");
}
};

a.m1();

}
}


public class A {

public void m1()
{
System.out.println("swetty");
}
}
here annonymous A extends A,  and call child class object. 

Monday 18 April 2016

What is Splunk and How Does it Work?



The general idea is that Splunk can take any data, any log, from anywhere in your infrastructure and add it to a searchable, intelligent index through which you can extract all sorts of meaningful data about what's happening. By default, the system will watch all the logged events and return slices of interesting data. For instance, from the dashboard you can see that a specific server name or event type is occurring at a higher than normal frequency. From there, you can drill down and chase the cause of the error from the hypervisor to the storage, networking, and even the VM.

more you can get in below link
https://helgeklein.com/blog/2014/09/splunk-work/


there are some video lecture also available in it. you can  check online

https://www.coursera.org/learn/bigdata-analytics/lecture/rFnSu/how-splunk-works-hands-on-tutorial

If there's gold in log files, Splunk, Inc's Splunk Enterprise will help you to find it. Splunk bridges the gap between simple log management and security information and event management (SIEM) products from vendors such as ArcSight, RSA, Q1 Labs, and Symantec.

http://www.networkworld.com/article/2181089/security-vulnerability-mgmt/splunk-explains-it-all.html

Ref:-

http://www.networkworld.com/article/2181089/security-vulnerability-mgmt/splunk-explains-it-all.html

https://www.coursera.org/learn/bigdata-analytics/lecture/rFnSu/how-splunk-works-hands-on-tutorial

Sunday 27 March 2016

IBM MQ and how it works,

IBM MQ is a family of network software products that IBM launched in March 1992. It was originally called MQSeries, and was renamed WebSphere MQ in 2002 to join the suite of WebSphere products. In April 2014, it was renamed IBM MQ.

https://en.wikipedia.org/wiki/IBM_WebSphere_MQ


Simple Point-to-point application using WebSphere MQ JMS:-


http://www.ibm.com/developerworks/websphere/tutorials/i-mqrad3/i-mqrad3.html

Example of  mq call using java.

http://www.ibm.com/support/knowledgecenter/SSFKSJ/com.ibm.mq.helphome.doc/product_welcome_wmq.htm