mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Benchmark client zip and reporting fixes.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6845 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -35,7 +35,7 @@ import java.util.List;
|
|||||||
import org.alfresco.i18n.I18NUtil;
|
import org.alfresco.i18n.I18NUtil;
|
||||||
import org.alfresco.model.ContentModel;
|
import org.alfresco.model.ContentModel;
|
||||||
import org.alfresco.repo.admin.patch.AbstractPatch;
|
import org.alfresco.repo.admin.patch.AbstractPatch;
|
||||||
import org.alfresco.repo.domain.hibernate.NodeImpl;
|
import org.alfresco.repo.domain.Node;
|
||||||
import org.alfresco.repo.node.db.NodeDaoService;
|
import org.alfresco.repo.node.db.NodeDaoService;
|
||||||
import org.alfresco.service.cmr.admin.PatchException;
|
import org.alfresco.service.cmr.admin.PatchException;
|
||||||
import org.alfresco.service.cmr.repository.DuplicateChildNodeNameException;
|
import org.alfresco.service.cmr.repository.DuplicateChildNodeNameException;
|
||||||
@@ -158,10 +158,10 @@ public class InvalidNameEndingPatch extends AbstractPatch
|
|||||||
{
|
{
|
||||||
// get the association types to check
|
// get the association types to check
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
List<NodeImpl> nodes = getInvalidNames();
|
List<Node> nodes = getInvalidNames();
|
||||||
|
|
||||||
int updated = 0;
|
int updated = 0;
|
||||||
for (NodeImpl node : nodes)
|
for (Node node : nodes)
|
||||||
{
|
{
|
||||||
NodeRef nodeRef = node.getNodeRef();
|
NodeRef nodeRef = node.getNodeRef();
|
||||||
String name = (String)nodeService.getProperty(nodeRef, ContentModel.PROP_NAME);
|
String name = (String)nodeService.getProperty(nodeRef, ContentModel.PROP_NAME);
|
||||||
@@ -206,7 +206,7 @@ public class InvalidNameEndingPatch extends AbstractPatch
|
|||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
private List<NodeImpl> getInvalidNames()
|
private List<Node> getInvalidNames()
|
||||||
{
|
{
|
||||||
HibernateCallback callback = new HibernateCallback()
|
HibernateCallback callback = new HibernateCallback()
|
||||||
{
|
{
|
||||||
@@ -221,7 +221,7 @@ public class InvalidNameEndingPatch extends AbstractPatch
|
|||||||
return query.list();
|
return query.list();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
List<NodeImpl> results = (List<NodeImpl>) getHibernateTemplate().execute(callback);
|
List<Node> results = (List<Node>) getHibernateTemplate().execute(callback);
|
||||||
return results;
|
return results;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -189,8 +189,8 @@ public abstract class AbstractLoaderThread extends Thread
|
|||||||
.append(String.format("%40s", loaderName)).append("\t")
|
.append(String.format("%40s", loaderName)).append("\t")
|
||||||
.append(String.format("%15.0f", (float)statCount)).append("\t")
|
.append(String.format("%15.0f", (float)statCount)).append("\t")
|
||||||
.append(String.format("%15.3f", statTotalSec)).append("\t")
|
.append(String.format("%15.3f", statTotalSec)).append("\t")
|
||||||
.append(String.format("%15.3f", statPerSec)).append("\t")
|
|
||||||
.append(String.format("%15.3f", statAveSec)).append("\t")
|
.append(String.format("%15.3f", statAveSec)).append("\t")
|
||||||
|
.append(String.format("%15.3f", statPerSec)).append("\t")
|
||||||
.append("");
|
.append("");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user