class RaftAddPeerJob extends SysJob<String> {

    public static final String TASK_TYPE = "raft_add_peer";

    @Override
    public String type() {
        return TASK_TYPE;
    }

    @Override
    public String execute() throws Exception {<FILL_FUNCTION_BODY>}
}

        String input = this.task().input();
        E.checkArgumentNotNull(input, "The input can't be null");
        @SuppressWarnings("unchecked")
        Map<String, Object> map = JsonUtil.fromJson(input, Map.class);

        Object value = map.get("endpoint");
        E.checkArgument(value instanceof String,
                        "Invalid endpoint value '%s'", value);
        String endpoint = (String) value;
        return this.graph().raftGroupManager().addPeer(endpoint);
    
<methods>public non-sealed void <init>() ,public java.lang.String call() throws java.lang.Exception<variables>