use crate::prelude::*;
use crate::checkers::http_helpers::http_get_check;

pub struct JbossChecker;
#[async_trait]
impl ServiceChecker for JbossChecker {
    fn service_name(&self) -> &'static str { "JBoss" }
    fn default_port(&self) -> u16 { 8080 }
    async fn check(&self, ip: &str, port: Option<u16>) -> CheckResult {
        let port = port.unwrap_or(self.default_port());
        http_get_check(ip, port, "/jmx-console/", &["JBoss"], "JBoss JMX 控制台暴露", "JBoss").await
    }
}
