Java Code Examples for org.apache.ignite.configuration.IgniteConfiguration#setServiceConfiguration()
The following examples show how to use
org.apache.ignite.configuration.IgniteConfiguration#setServiceConfiguration() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ServiceDeploymentOutsideBaselineTest.java From ignite with Apache License 2.0 | 6 votes |
/** {@inheritDoc} */ @Override protected IgniteConfiguration getConfiguration(String igniteInstanceName) throws Exception { IgniteConfiguration cfg = super.getConfiguration(igniteInstanceName); if (persistence) { cfg.setDataStorageConfiguration( new DataStorageConfiguration() .setDefaultDataRegionConfiguration( new DataRegionConfiguration() .setPersistenceEnabled(true) .setMaxSize(10 * 1024 * 1024) ).setWalMode(WALMode.LOG_ONLY) ); } if (srvcCfg != null) cfg.setServiceConfiguration(srvcCfg); return cfg; }
Example 2
Source File: SystemCacheNotConfiguredTest.java From ignite with Apache License 2.0 | 5 votes |
/** {@inheritDoc} */ @Override protected IgniteConfiguration getConfiguration(String igniteInstanceName) throws Exception { IgniteConfiguration cfg = super.getConfiguration(igniteInstanceName); if ("server".equals(igniteInstanceName)) cfg.setServiceConfiguration(serviceConfiguration()); return cfg; }
Example 3
Source File: ServiceDeploymentOnActivationTest.java From ignite with Apache License 2.0 | 5 votes |
/** {@inheritDoc} */ @Override protected IgniteConfiguration getConfiguration(String igniteInstanceName) throws Exception { IgniteConfiguration cfg = super.getConfiguration(igniteInstanceName); if (srvcCfg != null) cfg.setServiceConfiguration(srvcCfg); return cfg; }
Example 4
Source File: IgniteServiceReassignmentTest.java From ignite with Apache License 2.0 | 4 votes |
/** {@inheritDoc} */ @Override protected IgniteConfiguration getConfiguration(String igniteInstanceName) throws Exception { IgniteConfiguration cfg = super.getConfiguration(igniteInstanceName); if (srvcCfg != null) cfg.setServiceConfiguration(srvcCfg); if (useStrLog) { GridStringLogger strLog = new GridStringLogger(false, cfg.getGridLogger()); strLog.logLength(100 * 1024); cfg.setGridLogger(strLog); strLoggers.add(strLog); } return cfg; }
Example 5
Source File: ServiceDeploymentNonSerializableStaticConfigurationTest.java From ignite with Apache License 2.0 | 4 votes |
/** {@inheritDoc} */ @Override protected IgniteConfiguration getConfiguration(String igniteInstanceName) throws Exception { IgniteConfiguration cfg = super.getConfiguration(igniteInstanceName); cfg.setGridLogger(log); ServiceConfiguration srvcCfg = new ServiceConfiguration(); srvcCfg.setName(TEST_SERVICE_NAME); srvcCfg.setMaxPerNodeCount(1); srvcCfg.setService(new NonSerializableService()); cfg.setServiceConfiguration(srvcCfg); return cfg; }
Example 6
Source File: GridServiceProcessorAbstractSelfTest.java From ignite with Apache License 2.0 | 4 votes |
/** {@inheritDoc} */ @Override protected IgniteConfiguration getConfiguration(String igniteInstanceName) throws Exception { IgniteConfiguration c = super.getConfiguration(igniteInstanceName); ServiceConfiguration[] svcs = services(); if (svcs != null) c.setServiceConfiguration(svcs); CacheConfiguration cc = new CacheConfiguration(DEFAULT_CACHE_NAME); cc.setName(CACHE_NAME); cc.setCacheMode(CacheMode.PARTITIONED); cc.setBackups(nodeCount()); c.setCacheConfiguration(cc); return c; }
Example 7
Source File: IgniteServiceProxyTimeoutInitializedTest.java From ignite with Apache License 2.0 | 3 votes |
/** {@inheritDoc} */ @Override protected IgniteConfiguration getConfiguration(final String igniteInstanceName) throws Exception { final IgniteConfiguration cfg = super.getConfiguration(igniteInstanceName); final ServiceConfiguration scfg = new ServiceConfiguration(); if (igniteInstanceName.endsWith("0")) { scfg.setName("testService"); scfg.setService(srvc); scfg.setMaxPerNodeCount(1); scfg.setTotalCount(1); scfg.setNodeFilter(new NodeFilter()); final Map<String, String> attrs = new HashMap<>(); attrs.put("clusterGroup", "0"); cfg.setUserAttributes(attrs); cfg.setServiceConfiguration(scfg); } cfg.setMarshaller(null); final BinaryConfiguration binCfg = new BinaryConfiguration(); // Despite defaults explicitly set to lower case. binCfg.setIdMapper(new BinaryBasicIdMapper(true)); cfg.setBinaryConfiguration(binCfg); return cfg; }