DhcptabMgrImpl.java revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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
*/
/*
* ident "%Z%%M% %I% %E% SMI"
*
* Copyright (c) 1998-2001 by Sun Microsystems, Inc.
* All rights reserved.
*/
/**
* This class provides methods to manage the contents of the dhcptab.
*/
public class DhcptabMgrImpl implements DhcptabMgr {
/**
* Create a new DhcptabMgr using the provided native bridge.
* @param bridge the native bridge class which actually does the work.
*/
}
/**
* Create an option.
* @param name the name of the option.
* @param value the value for the option in dhcptab(4) format.
* @return the Option.
*/
throws BridgeException {
}
/**
* Retrieve all options currently defined in the dhcptab.
* @return an array of Options
*/
return getOptions(null);
}
/**
* Retrieve all options currently defined in the dhcptab.
* @param datastore user-supplied datastore attributes
* @return an array of Options
*/
throws BridgeException {
}
/**
* Retrieve all the macros currently defined in the dhcptab.
* @return an array of Macros
*/
}
/**
* Retrieve all the macros currently defined in the dhcptab.
* @param datastore user-supplied datastore attributes
* @return an array of Macros
*/
throws BridgeException {
/*
* Load the vendor and site options before loading the macros
* so we can validate correctly, adding them to the standard options
* table.
*/
}
/**
* Create a given record in the dhcptab, and signal the server to
* reload the dhcptab if so requested.
* @param rec the record to add to the table
* @param signalServer true if the server is to be sent a SIGHUP
*/
throws BridgeException {
}
/**
* Create a given record in the dhcptab, and signal the server to
* reload the dhcptab if so requested.
* @param rec the record to add to the table
* @param signalServer true if the server is to be sent a SIGHUP
* @param datastore user-supplied datastore attributes
*/
if (signalServer) {
}
}
/**
* Modify a given record in the dhcptab, and signal the server to reload
* the dhcptab if so requested
* @param oldRec the current record to modify
* @param newRec the new record to be placed in the table
* @param signalServer true if the server is to be sent a SIGHUP
*/
boolean signalServer) throws BridgeException {
}
/**
* Modify a given record in the dhcptab, and signal the server to reload
* the dhcptab if so requested
* @param oldRec the current record to modify
* @param newRec the new record to be placed in the table
* @param signalServer true if the server is to be sent a SIGHUP
* @param datastore user-supplied datastore attributes
*/
throws BridgeException {
if (signalServer) {
}
}
/**
* Delete a given record from the dhcptab, and signal the server to reload
* the dhcptab if so requested
* @param rec the record to delete
* @param signalServer true if the server is to be sent a SIGHUP
*/
throws BridgeException {
}
/**
* Delete a given record from the dhcptab, and signal the server to reload
* the dhcptab if so requested
* @param rec the record to delete
* @param signalServer true if the server is to be sent a SIGHUP
* @param datastore user-supplied datastore attributes
*/
if (signalServer) {
}
}
/**
* Delete a record by name and type
* @param key The key for the record
* @param type The type of record; either MACRO or OPTION
*/
} else {
}
deleteRecord(rec, false);
}
/**
* Delete a set of records.
* @return An array of ActionError, one error for each record not deleted
*/
try {
deleteRecord(recs[i], false);
} catch (BridgeException e) {
}
}
}
throws BridgeException {
DhcptabRecord [] recs;
} else {
recs = getOptions();
}
return deleteRecords(recs);
}
/**
* Delete all macros
* @return An array of ActionError, one error for each macro not deleted
*/
}
/**
* Delete all options
* @return An array of ActionError, one error for each option not deleted
*/
}
/**
* Delete a list of macros identified by name
* @param macroNames Names of the macros to delete
* @return An array of ActionError, one element per macro not deleted
*/
try {
} catch (BridgeException e) {
}
}
}
/**
* Delete a list of options identified by name
* @param optionNames Names of options to delete
* @return An array of ActionError, one element per option not deleted
*/
try {
} catch (BridgeException e) {
}
}
}
/**
* Retrieve a given macro from the dhcptab.
* @param key the key of the record to retrieve
* @return the Macro for the given key
*/
throws BridgeException {
}
/**
* Retrieve a given macro from the dhcptab.
* @param key the key of the record to retrieve
* @param datastore user-supplied datastore attributes
* @return the Macro for the given key
*/
throws BridgeException {
}
/**
* Retrieve a given option from the dhcptab.
* @param key the key of the record to retrieve
* @return the Option for the given key
*/
throws BridgeException {
}
/**
* Retrieve a given option from the dhcptab.
* @param key the key of the record to retrieve
* @param datastore user-supplied datastore attributes
* @return the Option for the given key
*/
throws BridgeException {
}
/**
* Create a new dhcptab converting the one in the server's data store,
* into a new data store.
* @param datastore user-supplied datastore attributes
*/
throws BridgeException {
}
/**
* Create a new empty dhcptab in the server's data store, which must
* already be configured.
*/
public void createDhcptab() throws BridgeException {
}
/**
* Create a new empty dhcptab in the server's data store, which must
* already be configured.
* @param datastore user-supplied datastore attributes
*/
throws BridgeException {
}
/**
* Delete the server's dhcptab in the current data store.
*/
public void deleteDhcptab() throws BridgeException {
}
/**
* Delete the server's dhcptab in the current data store.
* @param datastore user-supplied datastore attributes
*/
throws BridgeException {
}
public void createLocaleMacro()
throws BridgeException, ValidationException {
}
throws BridgeException, ValidationException {
createRecord(macro, false);
}
throws BridgeException, ValidationException {
}
throws BridgeException, ValidationException {
if (leaseNegotiable) {
}
}
// First delete it in case it's already there
try {
deleteRecord(macro, false);
} catch (Throwable e) {
// Ignore any error
}
createRecord(macro, false);
}
throws BridgeException, ValidationException {
}
throws BridgeException, ValidationException {
} else {
}
}
if (isLan) {
}
// NIS config
}
// NIS+ config
}
createRecord(macro, false);
}
}