|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectverinec.importer.parser.ImportHostname
public class ImportHostname
Main class of NetworkImporter. Starts the different ImportHostname-* classes for all services. Saves the configuration.
| Nested Class Summary | |
|---|---|
class |
ImportHostname.HostnameConfig
Config panel for hostname import. |
| Field Summary | |
|---|---|
private ImportHostname.HostnameConfig |
configPanel
|
private String |
hostname
|
private Logger |
log
|
| Constructor Summary | |
|---|---|
ImportHostname()
|
|
| Method Summary | |
|---|---|
JPanel |
getConfigPanel()
Config panel just to select whether import of hostname is on or off. |
private String |
getLocalHostName()
Find out the name of the local host name. |
String |
getRawConfiguration()
Get the raw configuration, that is the configuratio ninformation of the implementation of service. |
private String |
getRemoteHostname(ImporterEnvironment config)
Get name of remote host. |
void |
notifyMode(ImporterDialog.SettingsPanelBase mode)
Change mode. |
private String |
parseHostname(String hostname)
|
void |
runImport(ImporterEnvironment config)
Create the hostname attribute. |
void |
updateNode(PCNode node)
Update the PCNode with new information. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Logger log
private String hostname
private ImportHostname.HostnameConfig configPanel
| Constructor Detail |
|---|
public ImportHostname()
| Method Detail |
|---|
public void runImport(ImporterEnvironment config)
throws VerinecImporterException
runImport in interface IServiceParserconfig - the ImporterEnvironment of the import run.
VerinecImporterException - If local host name can not be determined.public String getRawConfiguration()
IServiceParser
getRawConfiguration in interface IServiceParserpublic void updateNode(PCNode node)
updateNode in interface IServiceParsernode - The node object to update
private String getLocalHostName()
throws VerinecImporterException
VerinecImporterException - If anything goes wrong
private String getRemoteHostname(ImporterEnvironment config)
throws VerinecImporterException
config - The configuration dialog to connect to remote host.
VerinecImporterException - If executing hostname command on remote host fails.private String parseHostname(String hostname)
public void notifyMode(ImporterDialog.SettingsPanelBase mode)
notifyMode in interface IServiceParsermode - One of remote, local or testpublic JPanel getConfigPanel()
getConfigPanel in interface IServiceParser
|
Copyright © 2005 Verinec, DIUF | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||