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 java.util.*;
  29 import java.net.InetAddress;
  30 
  31 import com.sun.dhcpmgr.bridge.*;
  32 import com.sun.dhcpmgr.data.*;
  33 
  34 /**
  35  * This interface defines the methods available for managing the basic
  36  * service parameters which are not stored in the dhcptab or network tables.
  37  */
  38 public interface DhcpServiceMgr {
  39     public String getServerName();
  40     public String getShortServerName();
  41     public InetAddress getServerAddress();
  42     public void makeLocation(DhcpDatastore datastore)
  43         throws BridgeException;
  44     public DhcpDatastore getDataStore(String resource) throws BridgeException;
  45     public DhcpDatastore [] getDataStores() throws BridgeException;
  46     public Option [] getInittabOptions(byte context) throws BridgeException;
  47     public String getDataStoreClassname(String dataStoreName)
  48         throws BridgeException;
  49     public DhcpdOptions readDefaults() throws BridgeException;
  50     public void writeDefaults(DhcpdOptions defs) throws BridgeException;
  51     public void removeDefaults() throws BridgeException;
  52     public void startup() throws BridgeException;
  53     public void shutdown() throws BridgeException;
  54     public void reload() throws BridgeException;
  55     public IPInterface [] getInterfaces() throws BridgeException;
  56     public String [] getArguments(String line) throws BridgeException;
  57     public String getStringOption(String optionName, String arg)
  58         throws BridgeException;
  59     public IPAddress [] getIPOption(String optionName, String arg)
  60         throws BridgeException;
  61     public long [] getNumberOption(String optionName, String arg)
  62         throws BridgeException;
  63     public boolean isServerRunning() throws BridgeException;
  64     public boolean isVersionCurrent() throws BridgeException;
  65 }