use of org.apache.ignite.igfs.IgfsIpcEndpointConfiguration in project ignite by apache.
the class IgniteHadoopFileSystemLoopbackAbstractSelfTest method primaryIpcEndpointConfiguration.
/**
* {@inheritDoc}
*/
@Override
protected IgfsIpcEndpointConfiguration primaryIpcEndpointConfiguration(final String igniteInstanceName) {
IgfsIpcEndpointConfiguration endpointCfg = new IgfsIpcEndpointConfiguration();
endpointCfg.setType(IgfsIpcEndpointType.TCP);
endpointCfg.setPort(DFLT_IPC_PORT + getTestIgniteInstanceIndex(igniteInstanceName));
return endpointCfg;
}
use of org.apache.ignite.igfs.IgfsIpcEndpointConfiguration in project ignite by apache.
the class IgniteHadoopFileSystemShmemAbstractSelfTest method primaryIpcEndpointConfiguration.
/**
* {@inheritDoc}
*/
@Override
protected IgfsIpcEndpointConfiguration primaryIpcEndpointConfiguration(final String igniteInstanceName) {
IgfsIpcEndpointConfiguration endpointCfg = new IgfsIpcEndpointConfiguration();
endpointCfg.setType(IgfsIpcEndpointType.SHMEM);
endpointCfg.setPort(DFLT_IPC_PORT + getTestIgniteInstanceIndex(igniteInstanceName));
return endpointCfg;
}
use of org.apache.ignite.igfs.IgfsIpcEndpointConfiguration in project ignite by apache.
the class IgniteHadoopFileSystemShmemExternalToClientAbstractSelfTest method primaryIpcEndpointConfiguration.
/**
* {@inheritDoc}
*/
@Override
protected IgfsIpcEndpointConfiguration primaryIpcEndpointConfiguration(final String gridName) {
IgfsIpcEndpointConfiguration endpointCfg = new IgfsIpcEndpointConfiguration();
endpointCfg.setType(IgfsIpcEndpointType.SHMEM);
endpointCfg.setPort(DFLT_IPC_PORT + getTestIgniteInstanceIndex(gridName));
return endpointCfg;
}
use of org.apache.ignite.igfs.IgfsIpcEndpointConfiguration in project ignite by apache.
the class HadoopIgfs20FileSystemShmemPrimarySelfTest method primaryIpcEndpointConfiguration.
/**
* {@inheritDoc}
*/
@Override
protected IgfsIpcEndpointConfiguration primaryIpcEndpointConfiguration(final String igniteInstanceName) {
IgfsIpcEndpointConfiguration cfg = new IgfsIpcEndpointConfiguration();
cfg.setType(IgfsIpcEndpointType.SHMEM);
cfg.setPort(DFLT_IPC_PORT + getTestIgniteInstanceIndex(igniteInstanceName));
return cfg;
}
use of org.apache.ignite.igfs.IgfsIpcEndpointConfiguration in project ignite by apache.
the class IpcSharedMemoryNodeStartup method main.
/**
* @param args Args.
* @throws Exception If failed.
*/
public static void main(String[] args) throws Exception {
IgniteConfiguration cfg = new IgniteConfiguration();
FileSystemConfiguration igfsCfg = new FileSystemConfiguration();
TcpDiscoverySpi discoSpi = new TcpDiscoverySpi();
discoSpi.setIpFinder(new TcpDiscoveryVmIpFinder(true));
cfg.setDiscoverySpi(discoSpi);
IgfsIpcEndpointConfiguration endpointCfg = new IgfsIpcEndpointConfiguration();
endpointCfg.setType(IgfsIpcEndpointType.SHMEM);
endpointCfg.setPort(10500);
igfsCfg.setIpcEndpointConfiguration(endpointCfg);
igfsCfg.setName("igfs");
CacheConfiguration metaCacheCfg = new CacheConfiguration();
metaCacheCfg.setName("partitioned");
metaCacheCfg.setCacheMode(PARTITIONED);
metaCacheCfg.setNearConfiguration(null);
metaCacheCfg.setWriteSynchronizationMode(FULL_SYNC);
metaCacheCfg.setEvictionPolicy(null);
metaCacheCfg.setBackups(0);
CacheConfiguration dataCacheCfg = new CacheConfiguration();
dataCacheCfg.setName("partitioned");
dataCacheCfg.setCacheMode(PARTITIONED);
dataCacheCfg.setNearConfiguration(null);
dataCacheCfg.setWriteSynchronizationMode(FULL_SYNC);
dataCacheCfg.setEvictionPolicy(null);
dataCacheCfg.setBackups(0);
igfsCfg.setMetaCacheConfiguration(metaCacheCfg);
igfsCfg.setDataCacheConfiguration(dataCacheCfg);
cfg.setFileSystemConfiguration(igfsCfg);
cfg.setIncludeEventTypes(EVT_TASK_FAILED, EVT_TASK_FINISHED, EVT_JOB_MAPPED);
try (Ignite ignored = G.start(cfg)) {
X.println("Press any key to stop grid...");
System.in.read();
}
}
Aggregations