2 * (c) 2015 Cable Television Laboratories, Inc. All rights reserved.
7 import org.umu.cops.stack.COPSHandle;
8 import org.umu.cops.stack.COPSMsg;
10 import java.io.IOException;
14 * This is a Client Type 1, which represents existing "legacy" endpoints (e.g.,
15 * PC applications, gaming consoles) that lack specific QoS awareness or
16 * signaling capabilities. This client has no awareness of DOCSIS, CableHome, or
17 * PacketCable messaging, and hence no related requirements can be placed upon
18 * it. Client Type 1 communicates with an Application Manager to request
19 * service, and does not (cannot) request QoS resources directly from the MSO
25 public interface IPCMMClient {
30 short CLIENT_TYPE = (short) 0x800A;
33 * sends a message to the server.
35 * @param requestMessage
38 void sendRequest(COPSMsg requestMessage);
41 * Reads message from server
43 * @return COPS message
45 COPSMsg readMessage();
48 * tries to connect to the server.
51 void connect() throws IOException;
54 * disconnects from server.
56 * @return disconnection status.
62 * @return whether the client is connected to the server of not.
64 boolean isConnected();
67 * gets the client handle
69 * @return client handle
71 COPSHandle getClientHandle();
73 void setClientHandle(COPSHandle handle);