This gets virtualization partially working using the AVM remote interface.

Courtesy of Jon and Britt.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3523 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2006-08-15 23:25:40 +00:00
parent b42bda5b59
commit 9aed179e4d
2 changed files with 27 additions and 2 deletions

View File

@@ -20,7 +20,6 @@ package org.alfresco.repo.avm;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
@@ -148,6 +147,7 @@ public class AVMRemoteImpl implements AVMRemote, Runnable
{
// Do nothing.
}
/*
long now = System.currentTimeMillis();
List<String> toClose = new ArrayList<String>();
for (String handle : fInputLastAccessTimes.keySet())
@@ -201,6 +201,7 @@ public class AVMRemoteImpl implements AVMRemote, Runnable
fOutputLastAccessTimes.remove(handle);
fOutputBusy.remove(handle);
}
*/
}
}
@@ -268,7 +269,7 @@ public class AVMRemoteImpl implements AVMRemote, Runnable
try
{
int read;
while ((read = in.read(buff, off, count - off)) != -1)
while ((read = in.read(buff, off, count - off)) != -1 && read != 0)
{
off += read;
}