From a65506c722a1d07486f675d609f27dffcef584ab Mon Sep 17 00:00:00 2001 From: Eddie Date: Sat, 2 May 2015 21:22:31 +0100 Subject: [PATCH] Created MessageServerControl --- WSYD_Members.serialized | Bin 0 -> 2288 bytes .../libs/message/MessageServerControl.java | 54 ++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 WSYD_Members.serialized create mode 100644 src/uk/ac/ntu/n0521366/wsyd/libs/message/MessageServerControl.java diff --git a/WSYD_Members.serialized b/WSYD_Members.serialized new file mode 100644 index 0000000000000000000000000000000000000000..553c40cf87998038999a8a7a07cdec4890b3bbbb GIT binary patch literal 2288 zcmd6n%WoT16vnR~<5$wec{XVpG!>1gK(z}Ml^}>kYe<_+0*YHocxZI(xrxUe&$xH) z_)#PTi^8G{kZ2{uk_{57R0$!mMq&wn0#FH*U6;I8;hf{R@eMSzJ7zKZdCooee&0Fg z`u06$gpxf~=Ph1{ly z@wmTLe5Fzcor|4jc$K}&*#GV=+1Q@_i&6-%GW_lDFP>beZzr&JxoXg8a>*4`mQ4?M zK6n2+x|8hr=t_ZC3%-g9{;6l5dHVF3Glh28bqbza2@99Y8zp;HG%7;cdztp7P{<3V zufDtf$LIFKdYrLNvz=s&+C4(Tu!;pM@V6Fk{QB|tA3gpvbaa^+E$&4EnwQ^Ov=-s+ zAKbn*KXmi%4cZHK!Y2muPCTr<7yi8Ty7R@|({YwtW@$Sjg%(TN6*tg(TUOEqT~H&4 zNmVOxB^1jK)Cj*oJa1PcDTS}BpvrM*aTZQkEMspXnf0%y{?!f44+!JQ7 zX`U5cD{v*`?i)04_~WOqesb&Hhi_7Pukmpbdwf@j{wvX;;Hloqn6}b5AePi(NyV}_ zfpAwP6h2Y9u%TGGB;6L+h1e38j_`rOMcNapA)t;desNhlucz#ZzD~vF&I)tOgHmaNIj+-&|`5e548NVxBq6U#9OYTnM!J=U`SGLT*Iet24;Kcv$qZGU1~{kztVlM znS%sBf>D^im$_{0A4OwXNZC8Re@_feyaA2890Z%k`r6?iuy`{kNc)QLec?S=yIxSe z*pJ`~w4aZBoN#TLQf1eJ3(>)me~jM85a)Xz5RVehBhC>XMLa?{hd4`k1aXFN7V$9Q z4B|B5VZz>% literal 0 HcmV?d00001 diff --git a/src/uk/ac/ntu/n0521366/wsyd/libs/message/MessageServerControl.java b/src/uk/ac/ntu/n0521366/wsyd/libs/message/MessageServerControl.java new file mode 100644 index 0000000..3b1cb94 --- /dev/null +++ b/src/uk/ac/ntu/n0521366/wsyd/libs/message/MessageServerControl.java @@ -0,0 +1,54 @@ +/* + * The MIT License + * + * Copyright 2015 eddie. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ +package uk.ac.ntu.n0521366.wsyd.libs.message; + +/** + * + * @author eddie + */ +public class MessageServerControl extends MessageAbstract { + public static final String _type = "ServerControl"; + + public boolean exitReq; + + public boolean restartReq; + + public static String getType() + { + return _type; + } + + @Override + public String getMessageType() + { + return _type; + } + + public MessageServerControl(boolean exit, boolean restart) + { + super(); + this.exitReq = exit; + this.restartReq = restart; + } +} -- 2.17.1