/** * Constructor. * * @param ctx Kernal context. * @param connMgr Connection manager. */ public SchemaManager(GridKernalContext ctx, ConnectionManager connMgr) { this.ctx = ctx; this.connMgr = connMgr; log = ctx.log(SchemaManager.class); }
/** * @param ctx Context. */ public GridAffinityProcessor(GridKernalContext ctx) { super(ctx); log = ctx.log(GridAffinityProcessor.class); }
/** * @param category Category. * @return Logger. */ public IgniteLogger logger(String category) { return kernalCtx.log(category); }
/** * Gets grid logger for given class. * * @param cls Class to get logger for. * @return IgniteLogger instance. */ public IgniteLogger logger(Class<?> cls) { return kernalCtx.log(cls); }
/** {@inheritDoc} */ @Override public IgniteLogger log(Class<?> cls) { return ctx.log(cls); } }
/** {@inheritDoc} */ @Override public IgniteLogger log(Class<?> cls) { return ctx.log(cls); }
/** * @param requestId State change request ID. * @param activate New cluster state. * @param ctx Context. */ GridChangeGlobalStateFuture(UUID requestId, boolean activate, GridKernalContext ctx) { this.requestId = requestId; this.activate = activate; this.ctx = ctx; log = ctx.log(getClass()); }
/** * @param ctx Context. */ public ClusterCachesInfo(GridKernalContext ctx) { this.ctx = ctx; log = ctx.log(getClass()); }
/** * @param ctx Hadoop context. */ public void start(HadoopContext ctx) throws IgniteCheckedException { this.ctx = ctx; log = ctx.kernalContext().log(getClass()); }
/** * Constructor. * * @param platformCtx Context. */ protected PlatformAbstractTarget(PlatformContext platformCtx) { this.platformCtx = platformCtx; log = platformCtx.kernalContext().log(PlatformAbstractTarget.class); }
/** * @param ctx Kernal context. * @param depId Service deployment process id. */ protected ServiceDeploymentTask(GridKernalContext ctx, ServiceDeploymentProcessId depId) { assert ctx.service() instanceof IgniteServiceProcessor; this.depId = depId; this.ctx = ctx; srvcProc = (IgniteServiceProcessor)ctx.service(); log = ctx.log(getClass()); }
/** {@inheritDoc} */ @Override public void close() { U.closeQuiet(writer); U.close(dir, ctx.log(GridLuceneIndex.class)); }
/** {@inheritDoc} */ @Override public void onTimeout() { timedOut = true; IgniteLogger log = cctx.kernalContext().log(this.getClass()); U.warn(log, "Deadlock detection was timed out [timeout=" + DEADLOCK_TIMEOUT + ", fut=" + this + ']'); onDone(); }
/** * Default constructor. */ public DmlStatementsProcessor(GridKernalContext ctx, IgniteH2Indexing idx) { this.ctx = ctx; this.idx = idx; coCtx = idx.objectContext(); connMgr = idx.connections(); schemaMgr = idx.schemaManager(); log = ctx.log(DmlStatementsProcessor.class); isDmlAllowedOverride = Boolean.getBoolean(IgniteSystemProperties.IGNITE_ALLOW_DML_INSIDE_TRANSACTION); }
/** {@inheritDoc} */ @Override public void run(GridKernalContext ctx) { try { if (!isDone()) ctx.pools().poolForPolicy(plc).execute(this); } catch (IgniteCheckedException e) { U.error(ctx.log(LockFuture.class), e); } }
/** * Constructor. */ protected FragmentizerWorker() { super(igfsCtx.kernalContext().igniteInstanceName(), "fragmentizer-worker", igfsCtx.kernalContext().log(IgfsFragmentizerManager.class)); }
/** * Constructor. */ private BindWorker() { super(igfsCtx.kernalContext().igniteInstanceName(), "bind-worker", igfsCtx.kernalContext().log(IgfsServerManager.class)); }
/** * @param ctx Context. */ protected GridRestProtocolAdapter(GridKernalContext ctx) { assert ctx != null; assert ctx.config().getConnectorConfiguration() != null; this.ctx = ctx; log = ctx.log(getClass()); secretKey = ctx.config().getConnectorConfiguration().getSecretKey(); }
/** * Constructor. */ protected FragmentizerCoordinator() { super(igfsCtx.kernalContext().igniteInstanceName(), "fragmentizer-coordinator", igfsCtx.kernalContext().log(IgfsFragmentizerManager.class)); igfsCtx.kernalContext().event().addLocalEventListener(this, EVT_NODE_LEFT, EVT_NODE_FAILED); igfsCtx.kernalContext().io().addMessageListener(topic, this); }