extreme scale util class (六)

2014-11-24 08:24:25 · 作者: · 浏览: 1
:[" + up + "]\n");
if (null != up.getTagProfileDataList()) {
sb.append("Number of Tags :[" + up.getTagProfileDataList().size()
+ "]\n");
for (int i = 0; i < up.getTagProfileDataList().size(); i++) {
sb.append("Tag #" + i + ":\n");
sb.append(dumpTagProfileData(up.getTagProfileDataList().get(i)));
}
}

sb.append("\n");

return sb.toString();
}

private static String dumpTagProfileData(TagProfileData tpd) {
StringBuilder sb = new StringBuilder();
if (tpd == null)
return "TagProfileData is null";
// (" Tag Profile Data:\n");
sb.append(" Tag Id :[" + tpd.getTagId() + "]\n");
if (System.getProperty("xs.c") != null) {
sb.append(" Tag Name :[AOAbandonedTheFidelityAccount]\n");
} else {
sb.append(" Tag Name :[" + tpd.getTagName() + "]\n");
}
sb.append(" Category Name :[" + tpd.getCategoryName() + "]\n");
sb.append(" Sub Category Name :[" + tpd.getSubCategory() + "]\n");
sb.append(" Business type :[" + tpd.getType() + "]\n");
sb.append(" Reason :[" + tpd.getReason() + "]\n");
sb.append(" Cust Interest :[" + tpd.getCustInterest() + "]\n");
sb.append(" Last Event Date :[" + tpd.getLastEventDate() + "]\n");
sb.append(" Last Maintenance Date:[" + tpd.getLastMaintenanceDate()
+ "]\n");
sb.append(" Suppression Exp Date :[" + tpd.getSuppressionExpDate()
+ "]\n");
sb.append(" Suppression Ind :[" + tpd.getSuppressionInd() + "]\n");
sb.append(" Tag CreationDate :[" + tpd.getTagCreationDate() + "]\n");
sb.append(" Tag Priority :[" + tpd.getTagPriority() + "]\n");
sb.append(" Tag Score :[" + tpd.getTagScore() + "]\n");
sb.append(" Tag Source :[" + tpd.getTagSource() + "]\n");
sb.append("\n");
return sb.toString();
}
}

The ogClient.properties
# To enable client authentication, set the following two entries to
# Required. To disable client authentication, set both to Never.
# When SSL is disabled this file is not used at all.
credentialAuthentication=Never
clientCertificateAuthentication=Never

securityEnabled=true
transportType=SSL-Required
alias=clientkey
contextProvider=IBMJSSE2
protocol=SSL
keyStoreType=JKS
keyStore=configs/pzn-acp/wxs-client.jks
keyStorePassword=XXX
trustStoreType=JKS
trustStore=configs/pzn-acp/wxs-client.jks
trustStorePassword=XXX
authenticationRetryCount=3

example of objectGridClient.xml

< xml version="1.0" encoding="UTF-8" >
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://ibm.com/ws/objectgrid/config ../objectGrid.xsd"
xmlns="http://ibm.com/ws/objectgrid/config">








Server side;

< xml version="1.0" encoding="UTF-8" >
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://ibm.com/ws/objectgrid/config ../objectGrid.xsd"
xmlns="http://ibm.com/ws/objectgrid/config">















package com.fmr.pzn.xs.grid;

import java.sql.Connection;

import java.sql.PreparedStatement;

import java.sql.SQLException;

import oracle.jdbc.pool.OracleDataSource;

import com.fmr.pzn.bo