Apache Cassandra

http://hector-client.github.io/hector/build/html/index.html

https://www.openshift.com/blogs/cassandra-on-openshift

https://github.com/shekhargulati/cassandra-openshift-quickstart-java

http://whyjava.wordpress.com/2012/02/23/logging-jaxws-soap-request-and-response-using-a-java-property/

http://architects.dzone.com/articles/creating-your-first-java

https://github.com/boneill42/naughty-or-nice

http://www.slideshare.net/DataStax/college-credit-creating-your-first-app-in-java-with-cassandra

 

Java Performance Links

HP Developer Anywhere Updated to 10.01 on June 1, 2013

New Features in this Release
l App redeployment. You can quickly redeploy your app when your Java code changes.
l Automatically reload app configuration files. HP Anywhere IDE automatically applies
changes to your app’s configuration files to the app running on the HP Anywhere server, so you
don’t need to manually reload your app every time you modify these files.
l New jQuery Mobile templates. You can now use out-of-the-box jQuery Mobile templates to
create Hello World and My Report apps.
l Minification support for your apps.HP Anywhere IDE comes complete with a built-in
mechanism that automatically minifies your apps, so they’re always ready for production.
l Automatic updates. Your HP Anywhere IDE Plugin is automatically updated, so you always
have the latest version of the plugin at your fingertips.
l Eclipse Marketplace. You can now download the HP Anywhere IDE Plugin directly from
Eclipse Marketplace.
l Bug fixes. For details, see “Fixed Defects in this Release” on the next page.

http://developer.hpanywhere.com/mind-zone/

Fixed Defects in this Release
The reference number for each fixed defect is the Change Request (QCCR) number. For more
information about fixed defects, visit HP Software Support Online, or contact your HP Support
representative directly.
The following defects are fixed in HP Anywhere IDE (Eclipse) 10.01:
l Coexistence of HP Anywhere IDE and HP Anywhere server: HP Anywhere IDE cannot
reside on the same machine as HP Anywhere server. If HP Anywhere server was already
installed on the machine, the installer did not prevent the installation of HP Anywhere IDE.
(QCCR161516)
l New app version always set to 1.0.0: If you changed the app version in the HP Anywhere App
Project wizard to anything other than the default 1.0.0, the change was ignored. (QCCR158307)
l Inaccessible descriptor file (relevant for WebOS catalog): The <app_name>-
descriptor.xml file was wrapped in the WAR file, and therefore, the app’s metadata was not
accessible when uploading to the WebOS catalog. (QCCR158935)
l OutOfMemoryError: PermGen space error message: This error message was sometimes
displayed when uploading to the HP Anywhere server. (QCCR162145)
l HP Anywhere IDE not shown by default: When you opened HP Anywhere IDE, the default
perspective was set to the Java IDE instead of HP Anywhere IDE. (QCCR160985)
l Incorrect error message for new project with existing name: If you tried to create a project
using an existing project name, a general “failed” error message was displayed that did not
indicate the reason. (QCCR160990)
l HP AnywhereIDE would not start if JDK 1.6 was installed: If JDK 1.6 was installed on the
machine, HP Anywhere IDE failed to open even though JDK 1.7 was also installed on the
machine. (QCCR160984)
l Generic log file: Apps created using

Log Scraping

package com.agilemobiledeveloper.logcheck;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;

import com.jcraft.jsch.Channel;
import com.jcraft.jsch.ChannelSftp;
import com.jcraft.jsch.JSch;
import com.jcraft.jsch.Session;

/**
*
* @author spannt
*
*/
public class LogScraper {

/**
* @param args
*/
public static void main(String[] args) {
String SFTPHOST = "myunixsite.com";
int SFTPPORT = 22;
String SFTPUSER = "myunixid";
String SFTPPASS = "myunixpassword";
String SFTPWORKINGDIR = "/some/unix/directory";
String SERRORFILE = "SystemErr.log";
String SOUTFILE = "SystemOut.log";

Session session = null;
Channel channel = null;
ChannelSftp channelSftp = null;

StringBuilder out = new StringBuilder();

try {
JSch jsch = new JSch();
session = jsch.getSession(SFTPUSER, SFTPHOST, SFTPPORT);
session.setPassword(SFTPPASS);
java.util.Properties config = new java.util.Properties();
config.put("StrictHostKeyChecking", "no");
session.setConfig(config);
session.connect();
channel = session.openChannel("sftp");
channel.connect();
channelSftp = (ChannelSftp) channel;
channelSftp.cd(SFTPWORKINGDIR);

System.out.println("Error File");
out.append("Error File:").append(
LogScraper.parseStream(channelSftp.get(SERRORFILE)));

System.out.println("Output File");
out.append("Output File:").append(
LogScraper.parseStream(channelSftp.get(SOUTFILE)));

} catch (Exception ex) {
ex.printStackTrace();
out.append(ex.getLocalizedMessage());
}

System.out.println("Logs=" + out.toString());

}

/**
*
* line.contains("Exception") ||
*
* @param file
* @return String of error data
*/
public static String parseStream(InputStream inputFileStream) {
if ( null == inputFileStream ) { return "Log Empty"; }
StringBuilder out = new StringBuilder();

BufferedReader br = new BufferedReader(new InputStreamReader(
inputFileStream));

String line = null;
try {
while ((line = br.readLine()) != null) {
if (line.contains("OutOfMemoryError")) {
out.append(line).append(System.lineSeparator());
}
}
} catch (IOException e) {
e.printStackTrace();
out.append(e.getLocalizedMessage());
}

return out.toString();
}
}