001 /*
002
003 $Id: ClientDaemonMessage.java,v 1.3 2003/03/22 17:55:54 hugha495 Exp $
004
005 */
006
007 package sharpster.common;
008
009 import sharpster.common.FileCollection;
010 import sharpster.common.ResponseCollection;
011 import java.io.Serializable;
012
013 /**
014 * Class holding objects to be passed between the Client Communication
015 * Module and the Daemon Communication Module.
016 *
017 */
018
019 public class ClientDaemonMessage implements Serializable {
020
021 public String role;
022
023 public GroupCommand command;
024
025
026 /**
027 * A number that maps to the correct command.
028 */
029 public int commandId;
030
031 /**
032 * Holds fromUser for methods that need it.
033 */
034 public String fromUser;
035
036 /**
037 * Holds workingDirectory for methods that need it.
038 */
039 public String workingDirectory;
040
041 /**
042 * Holds the CVScommand for methods that need it.
043 */
044 public String CVScommand;
045
046 /**
047 * Holds the FileCollection for methods that need it.
048 */
049 public FileCollection files;
050
051 /**
052 * Holds the ResponseCollection for methods that need it.
053 */
054 public ResponseCollection response;
055
056 /**
057 * Constructs a daemon communication object
058 */
059 public ClientDaemonMessage() {
060 clear();
061 }
062
063 /**
064 * Sets default empty values for all attributes.
065 *
066 */
067 public void clear() {
068 commandId = 0;
069 fromUser = null;
070 workingDirectory = null;
071 CVScommand = null;
072 files = null;
073 response = null;
074 }
075 }
076
077
078