1 /* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. 8 * 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 * or http://www.opensolaris.org/os/licensing. 11 * See the License for the specific language governing permissions 12 * and limitations under the License. 13 * 14 * When distributing Covered Code, include this CDDL HEADER in each 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 */ 22 /* 23 * Copyright (c) 1998-2001 by Sun Microsystems, Inc. 24 * All rights reserved. 25 */ 26 package com.sun.dhcpmgr.server; 27 28 import com.sun.dhcpmgr.bridge.*; 29 import com.sun.dhcpmgr.data.*; 30 31 /** 32 * This class defines the methods available to manage the DHCP network 33 * tables and hosts table. 34 */ 35 public interface DhcpNetMgr { 36 public Network getNetwork(String networkName) 37 throws BridgeException; 38 public Network [] getNetworks(DhcpDatastore datastore) 39 throws BridgeException; 40 public Network [] getNetworks() 41 throws BridgeException; 42 public DhcpClientRecord [] loadNetwork(String network, 43 DhcpDatastore datastore) throws BridgeException; 44 public DhcpClientRecord [] loadNetwork(String network) 45 throws BridgeException; 46 public DhcpClientRecord [] loadNetworkCompletely(String network) 47 throws BridgeException; 48 public void modifyClient(DhcpClientRecord oldClient, 49 DhcpClientRecord newClient, String table) 50 throws BridgeException; 51 public void modifyClient(DhcpClientRecord oldClient, 52 DhcpClientRecord newClient, String table, 53 DhcpDatastore datastore) throws BridgeException; 54 public void addClient(DhcpClientRecord client, String table, 55 DhcpDatastore datastore) throws BridgeException; 56 public void addClient(DhcpClientRecord client, String table) 57 throws BridgeException; 58 public void deleteClient(DhcpClientRecord client, String table, 59 DhcpDatastore datastore) 60 throws BridgeException; 61 public void deleteClient(DhcpClientRecord client, String table) 62 throws BridgeException; 63 public DhcpClientRecord getClient(DhcpClientRecord client, String table, 64 DhcpDatastore datastore) throws BridgeException; 65 public void cvtNetwork(String network, 66 DhcpDatastore datastore) throws BridgeException; 67 public void createNetwork(String network, 68 DhcpDatastore datastore) throws BridgeException; 69 public void createNetwork(String network) 70 throws BridgeException; 71 public void deleteNetwork(String network, boolean deleteMacro, 72 DhcpDatastore datastore) 73 throws BridgeException; 74 public void deleteNetwork(String network, boolean deleteMacro) 75 throws BridgeException; 76 }