TPTP 4.4.0 Monitoring Tools Project
Public API Specification

org.eclipse.hyades.logging.adapter.util
Class AdapterMigrator

java.lang.Object
  extended byorg.eclipse.hyades.logging.adapter.util.AdapterMigrator

Deprecated. This class is no longer supported for migrating adapter configuration files.

public class AdapterMigrator
extends java.lang.Object

This class is used to migrate pre 1.3 Hyades adapter configuration files to 1.3 Hyades adapter configuration files


Constructor Summary
AdapterMigrator()
          Deprecated.  
 
Method Summary
 boolean isMigrated()
          Deprecated. Returns whether any migration occurred.
static void main(java.lang.String[] args)
          Deprecated. Main program to run the migration.
 boolean migrate(java.lang.String originalFile)
          Deprecated. Migrate an adapter configuration file, overwriting the original file.
 boolean migrate(java.lang.String originalFile, java.lang.String newFile)
          Deprecated. Migrate an adapter configuration file to a new file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdapterMigrator

public AdapterMigrator()
Deprecated. 
Method Detail

main

public static void main(java.lang.String[] args)
Deprecated. 
Main program to run the migration. It takes two arguments:
  1. The name of the file that is to be migrated.
  2. The name of the migrated file. If this is omitted the file to be migrated will be overwritten by the migrated file.

Parameters:
args - - program arguments

migrate

public boolean migrate(java.lang.String originalFile)
                throws AdapterMigrationException
Deprecated. 
Migrate an adapter configuration file, overwriting the original file.

Parameters:
originalFile -
Throws:
AdapterMigrationException - if a migration error occurs. The exception contains the cause of the failure.

migrate

public boolean migrate(java.lang.String originalFile,
                       java.lang.String newFile)
                throws AdapterMigrationException
Deprecated. 
Migrate an adapter configuration file to a new file. The original file will not be modified.

Parameters:
originalFile -
newFile -
Returns:
boolean - migration occurred indicator
Throws:
AdapterMigrationException - if a migration error occurs. The exception contains the cause of the failure.

isMigrated

public boolean isMigrated()
Deprecated. 
Returns whether any migration occurred.

Returns:
true if migration was required and was successful, otherwise false.

TPTP 4.4.0 Monitoring Tools Project
Public API Specification