DhcpServiceMgrImpl.java revision 4300ced21cdd95ae6a526f1e29cac3146d92bd91
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/**
* This class provides the capabilities for managing the the basic service
* parameters which are not stored in the dhcptab or per-network tables.
*/
public class DhcpServiceMgrImpl implements DhcpServiceMgr {
private String serverName;
private String shortServerName;
private InetAddress serverAddress;
try {
if (i == -1) {
} else {
}
} catch (UnknownHostException e) {
}
}
public String getServerName() {
return serverName;
}
public String getShortServerName() {
return shortServerName;
}
public InetAddress getServerAddress() {
return serverAddress;
}
throws BridgeException {
}
}
/**
* Retrieve the list of possible data stores for this server
* @return an array of data store module names.
*/
return bridge.getDataStores();
}
/**
* Retrieve a list of options from the DHCP inittab.
* @return an array of options
*/
}
throws BridgeException {
try {
throw new BridgeException();
}
throw new BridgeException();
}
throw new BridgeException();
}
} catch (Throwable e) {
throw new BridgeException();
}
return className;
}
/**
* Retrieve the contents of the DHCP config file.
* @return the config settings
*/
return bridge.readDefaults();
}
/**
* Write new settings to the DHCP config file.
* @param cfgs the new config settings
*/
}
/**
* Remove the DHCP config file.
*/
public void removeDefaults() throws BridgeException {
}
/**
* Start the server
*/
public void startup() throws BridgeException {
}
/**
* Stop the server
*/
public void shutdown() throws BridgeException {
}
/**
* Send the server a SIGHUP to re-read the dhcptab
*/
public void reload() throws BridgeException {
}
/**
* Get the list of possible interfaces for the server to monitor
* @return an array of interfaces
*/
return bridge.getInterfaces();
}
/**
* Break up a line into a list of arguments
* @param input line
* @return an array of arguments
*/
}
/**
* Get the default value for an option which would take a string
* @param optionName name of the option
* @param arg additional information needed for this code
*/
throws BridgeException {
}
/**
* Get the default value for an option which would take one or more IP addrs
* @param optionName name of the option
* @param arg additional information needed for this code
*/
throws BridgeException {
}
/**
* Get the default value for an option which would take one or more numbers
* @param optionName name of the option
* @param arg additional information needed for this code
*/
throws BridgeException {
}
/**
* Check if the datastore version is current.
* @return true if the datastore version if current.
*/
public boolean isVersionCurrent() throws BridgeException {
return bridge.isVersionCurrent();
}
/**
* Check if the server is currently running
* @return true if the server process is started
*/
public boolean isServerRunning() throws BridgeException {
return bridge.isServerRunning();
}
}