Search in sources :

Example 1 with LogListener

use of com.hazelcast.logging.LogListener in project hazelcast by hazelcast.

the class ClientLoggingServiceTest method setUp.

@Before
public void setUp() {
    factory = new TestHazelcastFactory();
    HazelcastInstance member = factory.newHazelcastInstance();
    HazelcastInstance client = factory.newHazelcastClient();
    loggingService = client.getLoggingService();
    logListener = new LogListener() {

        @Override
        public void log(LogEvent logEvent) {
        }
    };
    logEvent = new LogEvent(null, member.getCluster().getLocalMember());
}
Also used : HazelcastInstance(com.hazelcast.core.HazelcastInstance) LogListener(com.hazelcast.logging.LogListener) LogEvent(com.hazelcast.logging.LogEvent) TestHazelcastFactory(com.hazelcast.client.test.TestHazelcastFactory) Before(org.junit.Before)

Aggregations

TestHazelcastFactory (com.hazelcast.client.test.TestHazelcastFactory)1 HazelcastInstance (com.hazelcast.core.HazelcastInstance)1 LogEvent (com.hazelcast.logging.LogEvent)1 LogListener (com.hazelcast.logging.LogListener)1 Before (org.junit.Before)1