X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=packetcable-driver%2Fsrc%2Fmain%2Fjava%2Forg%2Fpcmm%2Frcd%2FIPCMMServer.java;h=e27e1ef93e1762c2450a7853505ef39b1c1e84a9;hb=39907e12fc2b16e04f630a9a56c3cec47c87fa5d;hp=794af06dfaee2a8004af07cab5f70be340caabdc;hpb=6336e615fcfed04d012edfe7d8e4c36566338e39;p=packetcable.git diff --git a/packetcable-driver/src/main/java/org/pcmm/rcd/IPCMMServer.java b/packetcable-driver/src/main/java/org/pcmm/rcd/IPCMMServer.java index 794af06..e27e1ef 100644 --- a/packetcable-driver/src/main/java/org/pcmm/rcd/IPCMMServer.java +++ b/packetcable-driver/src/main/java/org/pcmm/rcd/IPCMMServer.java @@ -1,13 +1,14 @@ -/** - @header@ +/* + * (c) 2015 Cable Television Laboratories, Inc. All rights reserved. */ - package org.pcmm.rcd; import org.pcmm.concurrent.IWorker; import org.pcmm.state.IStateful; +import java.io.IOException; + /** *

* As discussed in RFC 2753 [11], the policy management framework underlying @@ -64,28 +65,27 @@ import org.pcmm.state.IStateful; * with scalability and fault-tolerance. *

*

- * - * */ public interface IPCMMServer extends IStateful { /** - * + * Starts all connections and threads */ - void startServer(); + void startServer() throws IOException; /** - * + * Stops all connections and threads */ void stopServer(); /** * When a client connects to the server, a handler is needed to manage the * exchange of the messages between this client and the server. - * - * */ - public static interface IPCMMClientHandler extends IWorker, IPCMMClient { - + interface IPCMMClientHandler extends IWorker, IPCMMClient { + /** + * Responsible for closing resources such as server connections or threads + */ + void stop(); } }