/******************************************************************************* * Copyright (c) 2013 Rene Schneider, GEBIT Solutions GmbH and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html *******************************************************************************/ package de.gebit.integrity.remoting.transport.messages; import de.gebit.integrity.remoting.transport.enums.BreakpointActions; /** * This message is sent when breakpoints shall be created or removed. It is used both as notification about breakpoint * changes (server -> client) as well as requests (client -> server). * * @author Rene Schneider - initial API and implementation * */ public class BreakpointUpdateMessage extends AbstractMessage { /** * Serialization. */ private static final long serialVersionUID = -5884158701301953627L; /** * The action to perform. */ private BreakpointActions action; /** * The entry reference on which to perform the action. Can be null, in which case the "next step pause flag" is to * be set or unset instead of an actual breakpoint being created/removed. */ private Integer entryReference; /** * Creates a new message instance. * * @param anAction * the action to perform * @param anEntryReference * the entry reference on which to perform the action */ public BreakpointUpdateMessage(BreakpointActions anAction, Integer anEntryReference) { action = anAction; entryReference = anEntryReference; } public BreakpointActions getAction() { return action; } public Integer getEntryReference() { return entryReference; } }