/** * Creates new instance. * @param jobId Job ID. * @param ctx Hadoop job context. * @param log Logger. */ public HadoopV2JobResourceManager(HadoopJobId jobId, JobContextImpl ctx, IgniteLogger log, HadoopV2Job job) { this.jobId = jobId; this.ctx = ctx; this.log = log.getLogger(HadoopV2JobResourceManager.class); this.job = job; }
/** * Creates checked with given logger. * * @param log Logger. */ UpdateChecker(IgniteLogger log, boolean first) { super(igniteInstanceName, "grid-version-checker", log); this.log = log.getLogger(getClass()); this.first = first; }
/** {@inheritDoc} */ @Override public IgniteLogger getLogger(Object ctgr) { assert ctgr != null; return new GridLoggerProxy(impl.getLogger(ctgr), ctgr, igniteInstanceName, id8); }
/** * Creates new logger instance based on given logger and given category. * * @param log Base logger. * @param ctgr Category. * @return Initiated logger. * @throws Exception In case of an error. */ protected IgniteLogger logger(IgniteLogger log, Object ctgr) throws Exception { return log.getLogger(ctgr); }
/** {@inheritDoc} */ @Override public <T> MLLogger create(Class<T> targetCls) { return new CustomMLLogger(rootLog.getLogger(targetCls)); } }
/** * Constructs a new instance of TensorFlow cluster manager with maintenance. * * @param ignite Ignite instance. */ public TensorFlowClusterGatewayManager(Ignite ignite) { assert ignite != null : "Ignite should not be null"; this.ignite = ignite; this.log = ignite.log().getLogger(TensorFlowClusterGatewayManager.class); }
/** * @param cls Class. * @return Logger for specified class. */ public static IgniteLogger getLogger(Class<?> cls) { return rootLog.getLogger(cls); }
/** * Constructs a new asynchronous native process runner. * * @param ignite Ignite instance. * @param executor Executor. */ public AsyncNativeProcessRunner(Ignite ignite, ExecutorService executor) { this.log = ignite.log().getLogger(AsyncNativeProcessRunner.class); this.executor = executor; }
/** * @param ignite Node. * @param cache Cache. * @param eConverter Exception converter. */ protected HibernateAccessStrategyAdapter( Ignite ignite, HibernateCacheProxy cache, HibernateExceptionConverter eConverter) { this.cache = cache; this.ignite = ignite; this.eConverter = eConverter; log = ignite.log().getLogger(getClass()); }
/** {@inheritDoc} */ @Override public IgniteLogger log(String ctgr) { return config().getGridLogger().getLogger(ctgr); }
/** * Creates new router instance. * * @param cfg Router configuration. */ public GridTcpRouterImpl(GridTcpRouterConfiguration cfg) { this.cfg = cfg; log = cfg.getLogger() != null ? cfg.getLogger().getLogger(getClass()) : new JavaLogger().getLogger(getClass()); }
/** {@inheritDoc} */ @Override public IgniteLogger getLogger(Object ctgr) { assert ctgr != null; return new SensitiveInfoTestLoggerProxy(impl.getLogger(ctgr), ctgr, gridName, id8); }
/** */ protected GridAbstractTest() throws IgniteCheckedException { this(false); log = getIgniteTestResources().getLogger().getLogger(getClass()); }
/** * @throws IgniteCheckedException If failed. */ public IgniteTestResources() throws IgniteCheckedException { if (SensitiveInfoTestLoggerProxy.TEST_SENSITIVE) log = new SensitiveInfoTestLoggerProxy(rootLog.getLogger(getClass()), null, null, null); else log = rootLog.getLogger(getClass()); this.jmx = prepareMBeanServer(); this.rsrcProc = new GridResourceProcessor(new GridTestKernalContext(this.log)); }
/** * @param jmx JMX server. */ public IgniteTestResources(MBeanServer jmx) throws IgniteCheckedException { assert jmx != null; this.jmx = jmx; this.log = rootLog.getLogger(getClass()); this.rsrcProc = new GridResourceProcessor(new GridTestKernalContext(this.log)); }
/** * @param cfg Ignite configuration */ public IgniteTestResources(IgniteConfiguration cfg) throws IgniteCheckedException { this.cfg = cfg; this.log = rootLog.getLogger(getClass()); this.jmx = prepareMBeanServer(); this.rsrcProc = new GridResourceProcessor(new GridTestKernalContext(this.log, this.cfg)); }
/** * @param target Target spi. * @throws IgniteCheckedException If injection failed. */ private void injectLogger(IgniteSpi target) throws IgniteCheckedException { ctx.resource().injectBasicResource( target, LoggerResource.class, ctx.config().getGridLogger().getLogger(target.getClass()) ); }
/** * @param log Logger. */ public IgniteTestResources(IgniteLogger log) throws IgniteCheckedException { assert log != null; this.log = log.getLogger(getClass()); this.jmx = prepareMBeanServer(); this.rsrcProc = new GridResourceProcessor(new GridTestKernalContext(this.log)); }
private GridKernalContext newContext() throws IgniteCheckedException { IgniteConfiguration cfg = new IgniteConfiguration(); cfg.setIgniteHome(igniteHome); cfg.setClientMode(false); return new GridTestKernalContext(rootLog.getLogger(OptimizedMarshallerEnumSelfTest.class), cfg); }
/** * @param target Target. * @throws IgniteCheckedException If failed. */ public void inject(Object target) throws IgniteCheckedException { assert target != null; assert getLogger() != null; rsrcProc.injectBasicResource(target, LoggerResource.class, getLogger().getLogger(target.getClass())); rsrcProc.injectBasicResource(target, IgniteInstanceResource.class, new IgniteMock(null, locHost, nodeId, getMarshaller(), jmx, home, cfg)); }