Package jnode.dto

Examples of jnode.dto.Robot


        // TODO: optiomize
        IRobot oRobot = robotMaps
            .get(message.getToName().toLowerCase());
        if (oRobot == null) {
          try {
            Robot robot = ORMManager.get(Robot.class).getById(
                message.getToName().toLowerCase());
            if (robot != null) {
              robotname = robot.getRobot();
              Class<?> clazz = Class
                  .forName(robot.getClassName());
              oRobot = (IRobot) clazz.newInstance();
              robotMaps.put(robotname, oRobot);
              logger.l4("Message " + message.getMsgid()
                  + " sent to robot " + robotname);
            }
View Full Code Here


  private void doInstall() {
    logger.l1("[+] Creating database data");
    SystemInfo info = MainHandler.getCurrentInstance().getInfo();

    // robots
    Robot areafix = new Robot();
    areafix.setClassName(AreaFix.class.getCanonicalName());
    areafix.setRobot("areafix");
    ORMManager.get(Robot.class).save(areafix);
    Robot filefix = new Robot();
    filefix.setClassName(FileFix.class.getCanonicalName());
    filefix.setRobot("filefix");
    ORMManager.get(Robot.class).save(filefix);

    Robot scriptfix = new Robot();
    scriptfix.setClassName(ScriptFix.class.getCanonicalName());
    scriptfix.setRobot("scriptfix");
    ORMManager.get(Robot.class).save(scriptfix);

    logger.l1("[+] Robots created");

    // owner's point
View Full Code Here

    service.setHost(properties.getProperty(CONFIG_HOST, "127.0.0.1"));
    service.setPort(properties.getProperty(CONFIG_PORT, "25"));
    service.setUsername(properties.getProperty(CONFIG_USER));
    service.setPassword(properties.getProperty(CONFIG_PASSWORD));
    String robotName = properties.getProperty(CONFIG_ROBOT, "mailsender");
    Robot r = ORMManager.get(Robot.class).getById(robotName);
    if (r == null) {
      r = new Robot();
      r.setRobot(robotName);
      r.setClassName("org.jnode.mail.robot.MailSender");
      ORMManager.get(Robot.class).save(r);
      logger.l2("Robot " + robotName + " create by MailModule");
    }
    logger.l3("Mail service started");
    while (true) {
View Full Code Here

TOP

Related Classes of jnode.dto.Robot

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.