Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r16 - in trunk/myrpg-server/src/main/java/org: . tigris tigris/myrpg tigris/myrpg/server tigris/myrpg/server/exceptions

myrpg
Discussion topic

Back to topic list

svn commit: r16 - in trunk/myrpg-server/src/main/java/org: . tigris tigris/myrpg tigris/myrpg/server tigris/myrpg/server/exceptions

Reply

Author llefevre
Full name Loïc Lefèvre
Date 2005-12-10 03:26:54 PST
Message Author: llefevre
Date: Sat Dec 10 03:26:54 2005
New Revision: 16

Added:
   trunk/myrpg-server/s​rc/main/java/org/
   trunk/myrpg-server/s​rc/main/java/org/tig​ris/
   trunk/myrpg-server/s​rc/main/java/org/tig​ris/myrpg/
   trunk/myrpg-server/s​rc/main/java/org/tig​ris/myrpg/server/
   trunk/myrpg-server/s​rc/main/java/org/tig​ris/myrpg/server/Ser​ver.java
   trunk/myrpg-server/s​rc/main/java/org/tig​ris/myrpg/server/exc​eptions/
   trunk/myrpg-server/s​rc/main/java/org/tig​ris/myrpg/server/exc​eptions/ServerStartE​xception.java
   trunk/myrpg-server/s​rc/main/java/org/tig​ris/myrpg/server/exc​eptions/ServerStopEx​ception.java
Log:
Server interface and exceptions

Added: trunk/myrpg-server/s​rc/main/java/org/tig​ris/myrpg/server/Ser​ver.java
Url: http://myrpg.tigris.​org/source/browse/my​rpg/trunk/myrpg-serv​er/src/main/java/org​/tigris/myrpg/server​/Server.java?view=au​to&rev=16
====================​====================​====================​==================
--- (empty file)
+++ trunk/myrpg-server/s​rc/main/java/org/tig​ris/myrpg/server/Ser​ver.java Sat Dec 10 03:26:54 2005
@@ -0,0 +1,25 @@
+package org.tigris.myrpg.server;
+
+import org.tigris.myrpg.ser​ver.exceptions.Serve​rStartException;
+import org.tigris.myrpg.ser​ver.exceptions.Serve​rStopException;
+
+/**
+ * The {@link Server} is the main entry point of a MyRPG server.
+ *
+ * @author Lo�c Lef�vre
+ */
+public interface Server {
+ /**
+ * Starts the server.
+ *
+ * @throws ServerStartException
+ */
+ void start() throws ServerStartException;
+
+ /**
+ * Stops the server.
+ *
+ * @throws ServerStopException
+ */
+ void stop() throws ServerStopException;
+}

Added: trunk/myrpg-server/s​rc/main/java/org/tig​ris/myrpg/server/exc​eptions/ServerStartE​xception.java
Url: http://myrpg.tigris.​org/source/browse/my​rpg/trunk/myrpg-serv​er/src/main/java/org​/tigris/myrpg/server​/exceptions/ServerSt​artException.java?vi​ew=auto&rev=16
====================​====================​====================​==================
--- (empty file)
+++ trunk/myrpg-server/s​rc/main/java/org/tig​ris/myrpg/server/exc​eptions/ServerStartE​xception.java Sat Dec 10 03:26:54 2005
@@ -0,0 +1,9 @@
+package org.tigris.myrpg.ser​ver.exceptions;
+
+/**
+ * This exception is thrown if the server can not start.
+ *
+ * @author Lo�c Lef�vre
+ */
+public class ServerStartException extends RuntimeException {
+}

Added: trunk/myrpg-server/s​rc/main/java/org/tig​ris/myrpg/server/exc​eptions/ServerStopEx​ception.java
Url: http://myrpg.tigris.​org/source/browse/my​rpg/trunk/myrpg-serv​er/src/main/java/org​/tigris/myrpg/server​/exceptions/ServerSt​opException.java?vie​w=auto&rev=16
====================​====================​====================​==================
--- (empty file)
+++ trunk/myrpg-server/s​rc/main/java/org/tig​ris/myrpg/server/exc​eptions/ServerStopEx​ception.java Sat Dec 10 03:26:54 2005
@@ -0,0 +1,9 @@
+package org.tigris.myrpg.ser​ver.exceptions;
+
+/**
+ * This exception is thrown if the server encountered a problem when stopping.
+ *
+ * @author Lo�c Lef�vre
+ */
+public class ServerStopException extends RuntimeException {
+}

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

svn commit: r16 - in trunk/myrpg-server/src/main/java/org: . tigris tigris/myrpg tigris/myrpg/server tigris/myrpg/server/exceptions llefevre Loïc Lefèvre 2005-12-10 03:26:54 PST
Messages per page: