NoIssue: Add noop()
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
package com.r35157.nenjim.hubd.impl.ref;
|
package com.r35157.nenjim.hubd.impl.ref;
|
||||||
|
|
||||||
|
import com.r35157.nenjim.hubd.NenjimHub;
|
||||||
import org.apache.logging.log4j.LogManager;
|
import org.apache.logging.log4j.LogManager;
|
||||||
import org.apache.logging.log4j.Logger;
|
import org.apache.logging.log4j.Logger;
|
||||||
|
|
||||||
@@ -11,8 +12,10 @@ public class Main {
|
|||||||
public Main() throws Exception {
|
public Main() throws Exception {
|
||||||
log.info("Initializing NenjimHub...");
|
log.info("Initializing NenjimHub...");
|
||||||
log.info("Ready!");
|
log.info("Ready!");
|
||||||
|
nenjimHub.noop();
|
||||||
Thread.sleep(Long.MAX_VALUE);
|
Thread.sleep(Long.MAX_VALUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final Logger log = LogManager.getLogger(Main.class);
|
private static final Logger log = LogManager.getLogger(Main.class);
|
||||||
|
private static final NenjimHub nenjimHub = new NenjimHubImpl();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
package com.r35157.nenjim.hubd.impl.ref;
|
||||||
|
|
||||||
|
import com.r35157.nenjim.hubd.NenjimHub;
|
||||||
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
|
|
||||||
|
public class NenjimHubImpl implements NenjimHub {
|
||||||
|
@Override
|
||||||
|
public void noop() {
|
||||||
|
log.debug("NOOP executed.");
|
||||||
|
}
|
||||||
|
|
||||||
|
private static final Logger log = LogManager.getLogger(NenjimHubImpl.class);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user