Created
March 27, 2024 17:37
-
-
Save SinTeZWh1te/2fb0474a558ab30b8a81c1ac235e00ec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ru.test.bgbilling.kernel.scripts.events.inet; | |
import org.apache.logging.log4j.LogManager; | |
import org.apache.logging.log4j.Logger; | |
import ru.bitel.bgbilling.kernel.container.managed.ServerContext; | |
import ru.bitel.bgbilling.kernel.script.server.dev.EventScriptBase; | |
import ru.bitel.bgbilling.modules.inet.server.radius.RadiusAccessRequestEvent; | |
import ru.bitel.bgbilling.server.util.Setup; | |
import ru.bitel.common.sql.ConnectionSet; | |
import java.sql.Connection; | |
import java.util.concurrent.TimeUnit; | |
/** | |
* @author sintezwh1te | |
*/ | |
public class OnRadiusAccessRequestEvent | |
extends EventScriptBase<RadiusAccessRequestEvent> { | |
private static final Logger logger = LogManager.getLogger(); | |
@Override | |
public void onEvent(RadiusAccessRequestEvent event, Setup setup, ConnectionSet connectionSet) throws Exception { | |
ServerContext serverContext = ServerContext.get(); | |
Connection con = connectionSet.getConnection(); | |
logger.info("Hello from Hell!"); | |
Thread.sleep(TimeUnit.SECONDS.toMillis(5)); | |
logger.info("Hello from Hell!"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment