void innerMessagesPerform(Request request) {
        String message = request.getParams().get("Innermessage").get(0);
        String data = (String) request.getData();
        if (data == null) {
            throw new NullPointerException("data == null");
        }
        if ("added_slave".equals(message)) {
            Slave s = new Slave(data);
            slaveList.add(s);
            slaveQueue.add(s);
            Logger.getLogger("").log(Level.INFO, "add slave " + s.addr);
            if (slaveList.size() == router.getSlavesPerShard()) {
                System.out.println("all slaves ok");
            }
        } else if ("added_master".equals(message)) {
            masterAddress = data;
        } else if (("fail").equals(message)) {
            System.err.println(data);
        } else {
            System.err.println("непоятное внутреннее сообщение: " + message);
        }
    }