com.ibm.manplato.Conduit
Class DefaultConduit

java.lang.Object
  |
  +--com.ibm.manplato.Conduit.Conduit
        |
        +--com.ibm.manplato.Conduit.DefaultConduit
All Implemented Interfaces:
java.io.Serializable

public class DefaultConduit
extends Conduit

The default Conduit. This Conduit is always used during synchronization. It provides backup and restore capabilities for database flagged as requiring backup.

Version:
$Rev$-$Date: 2001/08/16 20:58:15 $$State: Exp $
Author:
File Created By: Brad BARCLAY <bbarclay@ca.ibm.com>, Last Modified By: $Author: Yaztromo $
See Also:
Serialized Form

Constructor Summary
DefaultConduit()
           
 
Method Summary
 javax.swing.JPanel getConfigPanel()
          Gets a handle to this Conduits configuration panel.
protected  java.lang.String getResourceBundleClassName()
          Gets the fully-qualified classname for this conduits ResourceBundle class.
 java.io.File getRestoreSet()
           
 byte getSyncPriorityLevel()
          Returns this conduits desired sync priority level.
 int getSyncType()
           
 void resetSelection()
          This method resets the selected sync type to "Synchronize".
 void startSync(ConduitHandler conduithandler, DLPUserInfo userInfo)
          This method is called when this Conduit is given the opportunity to synchronize.
 void updateBackupList()
          This method is called to update the GUI's list of available backup names.
 
Methods inherited from class com.ibm.manplato.Conduit.Conduit
getConduitName, getDescriptiveText, getResourceBundle, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultConduit

public DefaultConduit()
Method Detail

getResourceBundleClassName

protected java.lang.String getResourceBundleClassName()
Gets the fully-qualified classname for this conduits ResourceBundle class.
Overrides:
getResourceBundleClassName in class Conduit
Returns:
a String containing the package and classname for this Conduits resources.

getSyncPriorityLevel

public byte getSyncPriorityLevel()
Returns this conduits desired sync priority level. Note that clients are typically hard-coded to always run the DefaultConduit last. We implement this methed merely for consistency.
Overrides:
getSyncPriorityLevel in class Conduit
Returns:
the priority level of -128, to ensure we run last.

getConfigPanel

public javax.swing.JPanel getConfigPanel()
Gets a handle to this Conduits configuration panel.
Overrides:
getConfigPanel in class Conduit
Returns:
a handle to the Default Conduit's config panel.

getSyncType

public int getSyncType()

startSync

public void startSync(ConduitHandler conduithandler,
                      DLPUserInfo userInfo)
               throws NotConnectedException
This method is called when this Conduit is given the opportunity to synchronize.
Overrides:
startSync in class Conduit
Parameters:
conduithandler - he handle to the active ConduitHandler to use for synchronization.
Throws:
NotConnectedException - thrown if the connection to the Palm is lost.

updateBackupList

public void updateBackupList()
This method is called to update the GUI's list of available backup names. It is passed through to the GUI.

getRestoreSet

public java.io.File getRestoreSet()

resetSelection

public void resetSelection()
This method resets the selected sync type to "Synchronize".