Search in sources :

Example 16 with IgfsIpcEndpointConfiguration

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;
}
Also used : IgfsIpcEndpointConfiguration(org.apache.ignite.igfs.IgfsIpcEndpointConfiguration)

Example 17 with IgfsIpcEndpointConfiguration

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;
}
Also used : IgfsIpcEndpointConfiguration(org.apache.ignite.igfs.IgfsIpcEndpointConfiguration)

Example 18 with IgfsIpcEndpointConfiguration

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;
}
Also used : IgfsIpcEndpointConfiguration(org.apache.ignite.igfs.IgfsIpcEndpointConfiguration)

Example 19 with IgfsIpcEndpointConfiguration

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;
}
Also used : IgfsIpcEndpointConfiguration(org.apache.ignite.igfs.IgfsIpcEndpointConfiguration)

Example 20 with IgfsIpcEndpointConfiguration

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();
    }
}
Also used : IgniteConfiguration(org.apache.ignite.configuration.IgniteConfiguration) TcpDiscoveryVmIpFinder(org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder) IgfsIpcEndpointConfiguration(org.apache.ignite.igfs.IgfsIpcEndpointConfiguration) Ignite(org.apache.ignite.Ignite) FileSystemConfiguration(org.apache.ignite.configuration.FileSystemConfiguration) CacheConfiguration(org.apache.ignite.configuration.CacheConfiguration) TcpDiscoverySpi(org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi)

Aggregations

IgfsIpcEndpointConfiguration (org.apache.ignite.igfs.IgfsIpcEndpointConfiguration)21 FileSystemConfiguration (org.apache.ignite.configuration.FileSystemConfiguration)12 IgniteConfiguration (org.apache.ignite.configuration.IgniteConfiguration)9 TcpDiscoverySpi (org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi)8 CacheConfiguration (org.apache.ignite.configuration.CacheConfiguration)7 IgfsGroupDataBlocksKeyMapper (org.apache.ignite.igfs.IgfsGroupDataBlocksKeyMapper)6 TcpDiscoveryVmIpFinder (org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder)5 HashMap (java.util.HashMap)2 Ignite (org.apache.ignite.Ignite)2 IgfsMode (org.apache.ignite.igfs.IgfsMode)2 TcpCommunicationSpi (org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi)2 HashSet (java.util.HashSet)1 Map (java.util.Map)1 IgniteCheckedException (org.apache.ignite.IgniteCheckedException)1 DataRegionConfiguration (org.apache.ignite.configuration.DataRegionConfiguration)1 DataStorageConfiguration (org.apache.ignite.configuration.DataStorageConfiguration)1 IgfsEx (org.apache.ignite.internal.processors.igfs.IgfsEx)1 IgniteThread (org.apache.ignite.thread.IgniteThread)1