本文整理汇总了Java中org.uberfire.io.IOService类的典型用法代码示例。如果您正苦于以下问题:Java IOService类的具体用法?Java IOService怎么用?Java IOService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IOService类属于org.uberfire.io包,在下文中一共展示了IOService类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: AppSetup
import org.uberfire.io.IOService; //导入依赖的package包/类
@Inject
public AppSetup(@Named("ioStrategy") final IOService ioService,
final RepositoryService repositoryService,
final OrganizationalUnitService organizationalUnitService,
final KieProjectService projectService,
final ConfigurationService configurationService,
final ConfigurationFactory configurationFactory,
final Event<ApplicationStarted> applicationStartedEvent) {
super(ioService,
repositoryService,
organizationalUnitService,
projectService,
configurationService,
configurationFactory);
this.applicationStartedEvent = applicationStartedEvent;
}
示例2: ioService
import org.uberfire.io.IOService; //导入依赖的package包/类
protected IOService ioService() {
if (ioService == null) {
config = new MetadataConfigBuilder()
.withInMemoryMetaModelStore()
.useDirectoryBasedIndex()
.useInMemoryDirectory()
.build();
ioService = new IOServiceIndexedImpl(config.getIndexEngine(),
Executors.newCachedThreadPool(new DescriptiveThreadFactory()),
DublinCoreView.class,
VersionAttributeView.class);
}
return ioService;
}
示例3: ioService
import org.uberfire.io.IOService; //导入依赖的package包/类
@Override
protected IOService ioService() {
if (ioService == null) {
config = new MetadataConfigBuilder()
.withInMemoryMetaModelStore()
.useDirectoryBasedIndex()
.useInMemoryDirectory()
.build();
ioService = new IOServiceIndexedImpl(config.getIndexEngine(),
Executors.newCachedThreadPool(new DescriptiveThreadFactory()),
DublinCoreView.class,
VersionAttributeView.class);
IndexersFactory.addIndexer(new MockIndexer());
}
return ioService;
}
示例4: ioService
import org.uberfire.io.IOService; //导入依赖的package包/类
@Override
protected IOService ioService() {
if (ioService == null) {
config = new MetadataConfigBuilder()
.withInMemoryMetaModelStore()
.useDirectoryBasedIndex()
.useInMemoryDirectory()
.build();
metaIndexEngine = spy(config.getIndexEngine());
ioService = new IOServiceIndexedImpl(metaIndexEngine,
Executors.newCachedThreadPool(new DescriptiveThreadFactory()),
DublinCoreView.class,
VersionAttributeView.class) {
@Override
protected void setupWatchService(final FileSystem fs) {
//No WatchService for this test
}
};
}
return ioService;
}
示例5: ioService
import org.uberfire.io.IOService; //导入依赖的package包/类
protected IOService ioService() {
if (ioService == null) {
config = new MetadataConfigBuilder("elastic")
.withInMemoryMetaModelStore()
.useDirectoryBasedIndex()
.useInMemoryDirectory()
.build();
ioService = new IOServiceIndexedImpl(config.getIndexEngine(),
Executors.newCachedThreadPool(new DescriptiveThreadFactory()),
DublinCoreView.class,
VersionAttributeView.class);
}
return ioService;
}
示例6: ioService
import org.uberfire.io.IOService; //导入依赖的package包/类
@Override
protected IOService ioService() {
if (ioService == null) {
config = new MetadataConfigBuilder("elastic")
.withInMemoryMetaModelStore()
.useDirectoryBasedIndex()
.useInMemoryDirectory()
.build();
ioService = new IOServiceIndexedImpl(config.getIndexEngine(),
Executors.newCachedThreadPool(new DescriptiveThreadFactory()),
DublinCoreView.class,
VersionAttributeView.class);
IndexersFactory.addIndexer(new MockIndexer());
}
return ioService;
}
示例7: ioService
import org.uberfire.io.IOService; //导入依赖的package包/类
protected IOService ioService() {
if (ioService == null) {
config = new MetadataConfigBuilder("elastic")
.withInMemoryMetaModelStore()
.useDirectoryBasedIndex()
.useInMemoryDirectory()
.usingAnalyzers(new HashMap<String, Analyzer>() {{
put("file",
new FilenameAnalyzer());
}})
.build();
ioService = new IOServiceIndexedImpl(config.getIndexEngine(),
Executors.newCachedThreadPool(new DescriptiveThreadFactory()),
DublinCoreView.class,
VersionAttributeView.class);
}
return ioService;
}
示例8: ioService
import org.uberfire.io.IOService; //导入依赖的package包/类
@Override
protected IOService ioService() {
if (ioService == null) {
config = new MetadataConfigBuilder("elastic")
.withInMemoryMetaModelStore()
.useDirectoryBasedIndex()
.useInMemoryDirectory()
.build();
metaIndexEngine = spy(config.getIndexEngine());
ioService = new IOServiceIndexedImpl(metaIndexEngine,
Executors.newCachedThreadPool(new DescriptiveThreadFactory()),
DublinCoreView.class,
VersionAttributeView.class) {
@Override
protected void setupWatchService(final FileSystem fs) {
//No WatchService for this test
}
};
}
return ioService;
}
示例9: CopyServiceImpl
import org.uberfire.io.IOService; //导入依赖的package包/类
@Inject
public CopyServiceImpl(@Named("ioStrategy") IOService ioService,
User identity,
SessionInfo sessionInfo,
Instance<CopyHelper> helpers,
Event<ResourceCopiedEvent> resourceCopiedEvent,
Instance<CopyRestrictor> copyRestrictorBeans,
PathNamingService pathNamingService) {
this.ioService = ioService;
this.identity = identity;
this.sessionInfo = sessionInfo;
this.helpers = helpers;
this.resourceCopiedEvent = resourceCopiedEvent;
this.copyRestrictorBeans = copyRestrictorBeans;
this.pathNamingService = pathNamingService;
}
示例10: SocialTimelineCacheClusterPersistence
import org.uberfire.io.IOService; //导入依赖的package包/类
public SocialTimelineCacheClusterPersistence(final Gson gson,
final Type gsonCollectionType,
final IOService ioService,
final SocialEventTypeRepositoryAPI socialEventTypeRepository,
final SocialUserPersistenceAPI socialUserPersistenceAPI,
final SocialClusterMessaging socialClusterMessaging,
final SocialUserServicesExtendedBackEndImpl userServicesBackend,
final FileSystem fileSystem,
final SocialSecurityConstraintsManager socialSecurityConstraintsManager) {
this.gson = gson;
this.gsonCollectionType = gsonCollectionType;
this.ioService = ioService;
this.socialEventTypeRepository = socialEventTypeRepository;
this.socialUserPersistenceAPI = socialUserPersistenceAPI;
this.socialClusterMessaging = socialClusterMessaging;
this.userServicesBackend = userServicesBackend;
this.fileSystem = fileSystem;
this.socialSecurityConstraintsManager = socialSecurityConstraintsManager;
PriorityDisposableRegistry.register(this);
}
示例11: SocialTimelineCacheInstancePersistence
import org.uberfire.io.IOService; //导入依赖的package包/类
public SocialTimelineCacheInstancePersistence(final Gson gson,
final Type gsonCollectionType,
final IOService ioService,
final SocialEventTypeRepositoryAPI socialEventTypeRepository,
final SocialUserPersistenceAPI socialUserService,
final SocialUserServicesExtendedBackEndImpl userServicesBackend,
final FileSystem fileSystem,
final SocialSecurityConstraintsManager socialSecurityConstraintsManager) {
this.gsonCollectionType = gsonCollectionType;
this.gson = gson;
this.ioService = ioService;
this.socialEventTypeRepository = socialEventTypeRepository;
this.socialUserPersistenceAPI = socialUserService;
this.userServicesBackend = userServicesBackend;
this.fileSystem = fileSystem;
this.socialSecurityConstraintsManager = socialSecurityConstraintsManager;
PriorityDisposableRegistry.register(this);
}
示例12: setupSocialUserPersistenceAPI
import org.uberfire.io.IOService; //导入依赖的package包/类
void setupSocialUserPersistenceAPI(IOService _ioService,
SocialUserServicesExtendedBackEndImpl userServicesBackend) {
if (!clusterService.isAppFormerClustered()) {
socialUserPersistenceAPI = new SocialUserInstancePersistence(userServicesBackend,
userServices,
_ioService,
gson);
} else {
socialUserPersistenceAPI = new SocialUserClusterPersistence(userServicesBackend,
userServices,
_ioService,
gson,
socialUserClusterMessaging);
socialUserClusterMessaging.setup(clusterService, socialUserPersistenceAPI);
}
socialUserPersistenceAPI.setup();
}
示例13: setupSocialTimelinePersistenceAPI
import org.uberfire.io.IOService; //导入依赖的package包/类
void setupSocialTimelinePersistenceAPI(IOService _ioService,
FileSystem _fileSystem,
SocialUserServicesExtendedBackEndImpl userServicesBackend) {
if (!clusterService.isAppFormerClustered()) {
socialTimelinePersistenceAPI = new SocialTimelineCacheInstancePersistence(gson,
gsonCollectionType,
_ioService,
socialEventTypeRepository,
socialUserPersistenceAPI,
userServicesBackend,
_fileSystem,
socialSecurityConstraintsManager);
} else {
socialTimelinePersistenceAPI = new SocialTimelineCacheClusterPersistence(gson,
gsonCollectionType,
_ioService,
socialEventTypeRepository,
socialUserPersistenceAPI,
socialClusterMessaging,
userServicesBackend,
_fileSystem,
socialSecurityConstraintsManager);
socialClusterMessaging.setup(clusterService, socialTimelinePersistenceAPI, socialUserPersistenceAPI);
}
socialTimelinePersistenceAPI.setup();
}
示例14: createAndDestroyFSShouldRegisterUnregisterOnPriorityDisposableRegistry
import org.uberfire.io.IOService; //导入依赖的package包/类
@Test
public void createAndDestroyFSShouldRegisterUnregisterOnPriorityDisposableRegistry() throws Exception {
when(bm.getBeans("configIO")).thenReturn(configIOBeans);
when(bm.getReference(eq(ioServiceBean),
eq(IOService.class),
any(CreationalContext.class)))
.thenReturn(ioServiceMock);
when(ioServiceMock.newFileSystem(any(URI.class),
any(Map.class)))
.thenReturn(fs);
final Bean fileSystemBean = producer.createFileSystemBean(bm,
mock(InjectionTarget.class));
assertNull(PriorityDisposableRegistry.get("systemFS"));
fileSystemBean.create(mock(CreationalContext.class));
assertNotNull(PriorityDisposableRegistry.get("systemFS"));
fileSystemBean.destroy(fs,
mock(CreationalContext.class));
assertNull(PriorityDisposableRegistry.get("systemFS"));
}
示例15: DataSetDefRegistryCDI
import org.uberfire.io.IOService; //导入依赖的package包/类
@Inject
public DataSetDefRegistryCDI(@Config("10485760" /* 10 Mb */) int maxCsvLength,
@Named("ioStrategy") IOService ioService,
DataSetProviderRegistryCDI dataSetProviderRegistry,
SchedulerCDI scheduler,
ExceptionManager exceptionManager,
Event<DataSetDefModifiedEvent> dataSetDefModifiedEvent,
Event<DataSetDefRegisteredEvent> dataSetDefRegisteredEvent,
Event<DataSetDefRemovedEvent> dataSetDefRemovedEvent,
Event<DataSetStaleEvent> dataSetStaleEvent) {
super(dataSetProviderRegistry,
scheduler);
this.uuidGenerator = DataSetCore.get().getUuidGenerator();
this.maxCsvLength = maxCsvLength;
this.ioService = ioService;
this.exceptionManager = exceptionManager;
this.dataSetDefModifiedEvent = dataSetDefModifiedEvent;
this.dataSetDefRegisteredEvent = dataSetDefRegisteredEvent;
this.dataSetDefRemovedEvent = dataSetDefRemovedEvent;
this.dataSetStaleEvent = dataSetStaleEvent;
}