richie
4 years ago
5 changed files with 70 additions and 0 deletions
@ -0,0 +1,17 @@
|
||||
package com.fanruan.api.cluster.resource; |
||||
|
||||
import com.fr.io.config.CommonRepoConfig; |
||||
|
||||
/** |
||||
* @author Dylan.Liu |
||||
* @version 10.0 |
||||
* Created by Dylan.Liu on 2021/1/3 |
||||
*/ |
||||
public class BaseCommonRepoConfig extends CommonRepoConfig { |
||||
|
||||
private static final long serialVersionUID = 6713243696930557143L; |
||||
|
||||
public BaseCommonRepoConfig(String identity) { |
||||
super(identity); |
||||
} |
||||
} |
@ -0,0 +1,17 @@
|
||||
package com.fanruan.api.cluster.resource; |
||||
|
||||
import com.fr.io.config.RepositoryConfig; |
||||
import com.fr.io.context.ResourceModuleContext; |
||||
|
||||
/** |
||||
* @author Dylan.Liu |
||||
* @version 10.0 |
||||
* Created by Dylan.Liu on 2021/1/3 |
||||
*/ |
||||
public class ResourceModuleContextKit { |
||||
|
||||
public static <T extends RepositoryConfig> T getRepoConfig(String hdfs, String srcRepo) { |
||||
return ResourceModuleContext.getRepoConfig(hdfs, srcRepo); |
||||
} |
||||
|
||||
} |
@ -0,0 +1,15 @@
|
||||
package com.fanruan.api.cluster.resource; |
||||
|
||||
import com.fr.workspace.WorkContext; |
||||
import com.fr.workspace.resource.WorkResource; |
||||
|
||||
/** |
||||
* @author Dylan.Liu |
||||
* @version 10.0 |
||||
* Created by Dylan.Liu on 2021/1/3 |
||||
*/ |
||||
public class WorkContextKit { |
||||
public static WorkResource getWorkResource() { |
||||
return WorkContext.getWorkResource(); |
||||
} |
||||
} |
@ -0,0 +1,15 @@
|
||||
package com.fanruan.api.cluster.state; |
||||
|
||||
import com.fr.store.impl.StoreTemplate; |
||||
|
||||
/** |
||||
* @author Dylan.Liu |
||||
* @version 10.0 |
||||
* Created by Dylan.Liu on 2021/1/3 |
||||
*/ |
||||
public class StoreTemplateKit { |
||||
|
||||
public static void close() { |
||||
StoreTemplate.getInstance().close(); |
||||
} |
||||
} |
Loading…
Reference in new issue