blob: 2b5a3c5069f42effe494af489776985987897f11 [file] [log] [blame]
/*=============================================================================#
# Copyright (c) 2011, 2018 Stephan Wahlbrink and others.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License 2.0 which is available at
# https://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
# which is available at https://www.apache.org/licenses/LICENSE-2.0.
#
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
#
# Contributors:
# Stephan Wahlbrink <sw@wahlbrink.eu> - initial API and implementation
#=============================================================================*/
package org.eclipse.statet.rj.server.dbg;
import java.io.IOException;
import org.eclipse.statet.rj.data.RJIO;
import org.eclipse.statet.rj.data.RJIOExternalizable;
public class TracepointInstallationReport implements RJIOExternalizable {
public static final int NOTFOUND= 1;
public static final int FOUND_UNCHANGED= 2;
public static final int FOUND_UNSET= 3;
public static final int FOUND_SET= 4;
private final int[] results;
public TracepointInstallationReport(final int[] resultCodes) {
this.results= resultCodes;
}
public TracepointInstallationReport(final RJIO io) throws IOException {
this.results= io.readIntArray();
}
@Override
public void writeExternal(final RJIO io) throws IOException {
io.writeIntArray(this.results, this.results.length);
}
public int[] getInstallationResults() {
return this.results;
}
}