X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=liblttng-ust-java-agent%2Fjava%2Flttng-ust-agent-common%2Forg%2Flttng%2Fust%2Fagent%2Fclient%2FSessiondDisableEventCommand.java;h=2956c7e20363f2cd0cbbe73bfc873453f3ff74b1;hb=abac44cda88a3b83c2bf98c6bab16ed6a1cc1af1;hp=ee9d519f65a8fd699a07623974a0fc54041dabde;hpb=932535693bb8a719c40f63141dbfac786388ed4a;p=lttng-ust.git diff --git a/liblttng-ust-java-agent/java/lttng-ust-agent-common/org/lttng/ust/agent/client/SessiondDisableEventCommand.java b/liblttng-ust-java-agent/java/lttng-ust-agent-common/org/lttng/ust/agent/client/SessiondDisableEventCommand.java index ee9d519f..2956c7e2 100644 --- a/liblttng-ust-java-agent/java/lttng-ust-agent-common/org/lttng/ust/agent/client/SessiondDisableEventCommand.java +++ b/liblttng-ust-java-agent/java/lttng-ust-agent-common/org/lttng/ust/agent/client/SessiondDisableEventCommand.java @@ -21,8 +21,6 @@ package org.lttng.ust.agent.client; import java.nio.ByteBuffer; import java.nio.ByteOrder; -import org.lttng.ust.agent.AbstractLttngAgent; - /** * Session daemon command indicating to the Java agent that some events were * disabled in the tracing session. @@ -40,12 +38,12 @@ class SessiondDisableEventCommand implements ISessiondCommand { throw new IllegalArgumentException(); } ByteBuffer buf = ByteBuffer.wrap(data); - buf.order(ByteOrder.LITTLE_ENDIAN); + buf.order(ByteOrder.BIG_ENDIAN); eventName = new String(data).trim(); } @Override - public LttngAgentResponse execute(AbstractLttngAgent agent) { + public LttngAgentResponse execute(ILttngTcpClientListener agent) { boolean success = agent.eventDisabled(this.eventName); return (success ? LttngAgentResponse.SUCESS_RESPONSE : DISABLE_EVENT_FAILURE_RESPONSE); }