cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From raj...@apache.org
Subject git commit: updated refs/heads/volume-upload to 1bf4058
Date Fri, 16 Jan 2015 11:49:55 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/volume-upload ebaa4dd38 -> 1bf405873


volume upload: removed the handlerFactory and the handler which were required by NioServer


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/1bf40587
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/1bf40587
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/1bf40587

Branch: refs/heads/volume-upload
Commit: 1bf40587322c82c0fc83b16185591acd08427d92
Parents: ebaa4dd
Author: Rajani Karuturi <rajanikaruturi@gmail.com>
Authored: Fri Jan 16 17:17:34 2015 +0530
Committer: Rajani Karuturi <rajanikaruturi@gmail.com>
Committed: Fri Jan 16 17:19:19 2015 +0530

----------------------------------------------------------------------
 .../resource/NfsSecondaryStorageResource.java   | 21 +-------------------
 1 file changed, 1 insertion(+), 20 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/1bf40587/services/secondary-storage/server/src/org/apache/cloudstack/storage/resource/NfsSecondaryStorageResource.java
----------------------------------------------------------------------
diff --git a/services/secondary-storage/server/src/org/apache/cloudstack/storage/resource/NfsSecondaryStorageResource.java
b/services/secondary-storage/server/src/org/apache/cloudstack/storage/resource/NfsSecondaryStorageResource.java
index 1bb48d4..894a3bb 100755
--- a/services/secondary-storage/server/src/org/apache/cloudstack/storage/resource/NfsSecondaryStorageResource.java
+++ b/services/secondary-storage/server/src/org/apache/cloudstack/storage/resource/NfsSecondaryStorageResource.java
@@ -48,10 +48,6 @@ import java.util.UUID;
 
 import javax.naming.ConfigurationException;
 
-import com.cloud.utils.nio.HandlerFactory;
-import com.cloud.utils.nio.Link;
-import com.cloud.utils.nio.Task;
-
 import org.apache.commons.codec.digest.DigestUtils;
 import org.apache.commons.io.FileUtils;
 import org.apache.commons.lang.StringUtils;
@@ -176,7 +172,7 @@ import com.cloud.utils.script.OutputInterpreter;
 import com.cloud.utils.script.Script;
 import com.cloud.vm.SecondaryStorageVm;
 
-public class NfsSecondaryStorageResource extends ServerResourceBase implements SecondaryStorageResource,
HandlerFactory {
+public class NfsSecondaryStorageResource extends ServerResourceBase implements SecondaryStorageResource
{
 
     private static final Logger s_logger = Logger.getLogger(NfsSecondaryStorageResource.class);
 
@@ -2598,21 +2594,6 @@ public class NfsSecondaryStorageResource extends ServerResourceBase
implements S
         }
     }
 
-    @Override
-    public Task create(Task.Type type, Link link, byte[] data) {
-        return new PostUploadHandler(type, link, data);
-    }
-
-    private class PostUploadHandler extends Task {
-        public PostUploadHandler(Task.Type type, Link link, byte[] data) {
-            super(type, link, data);
-        }
-        @Override
-        protected void doTask(Task task) throws Exception {
-            // TODO Auto-generated method stub
-        }
-    }
-
     //TODO: move this class to a separate file
     private class PostUploadRequestHandler implements HttpAsyncRequestHandler<HttpRequest>
{
         public void handleInternal(HttpRequest httpRequest, HttpResponse httpResponse, HttpContext
httpContext) throws HttpException, IOException {


Mime
View raw message