2 * Copyright (c) 2014, 2015 Cable Television Laboratories, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
11 import org.umu.cops.stack.COPSHandle;
12 import org.umu.cops.stack.COPSMsg;
14 import java.io.IOException;
18 * This is a Client Type 1, which represents existing "legacy" endpoints (e.g.,
19 * PC applications, gaming consoles) that lack specific QoS awareness or
20 * signaling capabilities. This client has no awareness of DOCSIS, CableHome, or
21 * PacketCable messaging, and hence no related requirements can be placed upon
22 * it. Client Type 1 communicates with an Application Manager to request
23 * service, and does not (cannot) request QoS resources directly from the MSO
29 public interface IPCMMClient {
34 short CLIENT_TYPE = (short) 0x800A;
37 * sends a message to the server.
39 * @param requestMessage
42 void sendRequest(COPSMsg requestMessage);
45 * Reads message from server
47 * @return COPS message
49 COPSMsg readMessage();
52 * tries to connect to the server.
55 void connect() throws IOException;
58 * disconnects from server.
60 * @return disconnection status.
66 * @return whether the client is connected to the server of not.
68 boolean isConnected();
71 * gets the client handle
73 * @return client handle
75 COPSHandle getClientHandle();
77 void setClientHandle(COPSHandle handle);