import java.util.ArrayList;
import java.util.List;
-import org.lttng.ust.agent.AbstractLttngAgent;
-
/**
* Session daemon command asking the Java agent to list its registered loggers,
* which corresponds to event names in the tracing session.
class SessiondListLoggersCommand implements ISessiondCommand {
@Override
- public ILttngAgentResponse execute(AbstractLttngAgent<?> agent) {
+ public LttngAgentResponse execute(ILttngTcpClientListener agent) {
final List<String> loggerList = new ArrayList<String>();
int dataSize = 0;
return new SessiondListLoggersResponse(loggerList, dataSize);
}
- private static class SessiondListLoggersResponse implements ILttngAgentResponse {
+ private static class SessiondListLoggersResponse extends LttngAgentResponse {
private final static int SIZE = 12;
@Override
public ReturnCode getReturnCode() {
/* This command can't really fail */
- return ILttngAgentResponse.SUCESS_RESPONSE.getReturnCode();
+ return ReturnCode.CODE_SUCCESS_CMD;
}
@Override