Search in sources :

Example 6 with Log4JLogger

use of org.apache.ignite.logger.log4j.Log4JLogger in project ignite by apache.

the class TcpRouterAbstractSelfTest method routerConfiguration.

/**
 * @return Router configuration.
 * @throws IgniteCheckedException If failed.
 */
public GridTcpRouterConfiguration routerConfiguration() throws IgniteCheckedException {
    GridTcpRouterConfiguration cfg = new GridTcpRouterConfiguration();
    cfg.setHost(HOST);
    cfg.setPort(ROUTER_PORT);
    cfg.setPortRange(0);
    cfg.setServers(Collections.singleton(HOST + ":" + BINARY_PORT));
    cfg.setLogger(new Log4JLogger(ROUTER_LOG_CFG));
    return cfg;
}
Also used : Log4JLogger(org.apache.ignite.logger.log4j.Log4JLogger)

Example 7 with Log4JLogger

use of org.apache.ignite.logger.log4j.Log4JLogger in project ignite by apache.

the class SingleSplitsLoadTest method getConfiguration.

/**
 * {@inheritDoc}
 */
@SuppressWarnings("ConstantConditions")
@Override
protected IgniteConfiguration getConfiguration() throws Exception {
    IgniteConfiguration cfg = super.getConfiguration();
    cfg.setCommunicationSpi(new TcpCommunicationSpi());
    cfg.setDiscoverySpi(new TcpDiscoverySpi());
    Log4JLogger log = (Log4JLogger) cfg.getGridLogger().getLogger(null);
    log.setLevel(Level.INFO);
    return cfg;
}
Also used : IgniteConfiguration(org.apache.ignite.configuration.IgniteConfiguration) Log4JLogger(org.apache.ignite.logger.log4j.Log4JLogger) TcpCommunicationSpi(org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi) TcpDiscoverySpi(org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi)

Aggregations

Log4JLogger (org.apache.ignite.logger.log4j.Log4JLogger)7 Field (java.lang.reflect.Field)2 URL (java.net.URL)2 IgniteConfiguration (org.apache.ignite.configuration.IgniteConfiguration)2 TcpCommunicationSpi (org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi)2 TcpDiscoverySpi (org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi)2 File (java.io.File)1 IgniteCheckedException (org.apache.ignite.IgniteCheckedException)1 CassandraCacheStore (org.apache.ignite.cache.store.cassandra.CassandraCacheStore)1 KeyValuePersistenceSettings (org.apache.ignite.cache.store.cassandra.persistence.KeyValuePersistenceSettings)1 CommunicationSpi (org.apache.ignite.spi.communication.CommunicationSpi)1 DiscoverySpi (org.apache.ignite.spi.discovery.DiscoverySpi)1