Search in sources :

Example 21 with IgniteThread

use of org.apache.ignite.thread.IgniteThread in project ignite by apache.

the class IgfsServerManager method start0.

/** {@inheritDoc} */
@Override
protected void start0() throws IgniteCheckedException {
    FileSystemConfiguration igfsCfg = igfsCtx.configuration();
    if (igfsCfg.isIpcEndpointEnabled()) {
        IgfsIpcEndpointConfiguration ipcCfg = igfsCfg.getIpcEndpointConfiguration();
        if (ipcCfg == null)
            ipcCfg = new IgfsIpcEndpointConfiguration();
        bind(ipcCfg, /*management*/
        false);
    }
    if (igfsCfg.getManagementPort() >= 0) {
        IgfsIpcEndpointConfiguration mgmtIpcCfg = new IgfsIpcEndpointConfiguration();
        mgmtIpcCfg.setType(TCP);
        mgmtIpcCfg.setPort(igfsCfg.getManagementPort());
        bind(mgmtIpcCfg, /*management*/
        true);
    }
    if (bindWorker != null)
        new IgniteThread(bindWorker).start();
}
Also used : IgfsIpcEndpointConfiguration(org.apache.ignite.igfs.IgfsIpcEndpointConfiguration) IgniteThread(org.apache.ignite.thread.IgniteThread) FileSystemConfiguration(org.apache.ignite.configuration.FileSystemConfiguration)

Aggregations

IgniteThread (org.apache.ignite.thread.IgniteThread)21 IgniteCheckedException (org.apache.ignite.IgniteCheckedException)8 IOException (java.io.IOException)3 Ignite (org.apache.ignite.Ignite)3 ClusterNode (org.apache.ignite.cluster.ClusterNode)3 DiscoveryEvent (org.apache.ignite.events.DiscoveryEvent)3 GridWorker (org.apache.ignite.internal.util.worker.GridWorker)3 Collection (java.util.Collection)2 IgniteException (org.apache.ignite.IgniteException)2 IgniteClientDisconnectedCheckedException (org.apache.ignite.internal.IgniteClientDisconnectedCheckedException)2 IgniteInterruptedCheckedException (org.apache.ignite.internal.IgniteInterruptedCheckedException)2 ClusterTopologyCheckedException (org.apache.ignite.internal.cluster.ClusterTopologyCheckedException)2 AffinityTopologyVersion (org.apache.ignite.internal.processors.affinity.AffinityTopologyVersion)2 CI1 (org.apache.ignite.internal.util.typedef.CI1)2 SparseDistributedMatrix (org.apache.ignite.ml.math.impls.matrix.SparseDistributedMatrix)2 InetSocketAddress (java.net.InetSocketAddress)1 ServerSocket (java.net.ServerSocket)1 ArrayList (java.util.ArrayList)1 List (java.util.List)1 UUID (java.util.UUID)1