You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
aggregation-platform/src/com/platform/service/impl/GfsServiceImpl.java

49 lines
1.2 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/**
* 文件名 : GfsServiceImpl.java
* 版权 : <版权/公司名>
* 描述 : <描述>
* @author chen
* 版本 : <版本>
* 修改时间: 2016年9月8日
* 修改内容: <修改内容>
*/
package com.platform.service.impl;
import org.springframework.stereotype.Service;
import com.platform.entities.FolderNode;
import com.platform.glusterfs.CopyData;
import com.platform.glusterfs.GetTreeData;
import com.platform.service.IGfsService;
/**
* <一句话功能简述>
* <功能详细描述>
* @author chen
* @version [版本号2016年9月8日]
* @see [相关类/方法]
* @since [产品/模块版本]
*/
@Service(value = "gfsService")
public class GfsServiceImpl implements IGfsService {
private GetTreeData gfsTree = new GetTreeData();
private CopyData copydata = new CopyData();
@Override
public FolderNode getFolder(String path) {
FolderNode result = gfsTree.getDatas(path);
return result;
}
@Override
public int copyFolder(String src, String dst, String name)
throws Exception {
// TODO Auto-generated method stub
int status = copydata.copyVolumeFiles(src, dst, name);
return status;
}
}