|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.manplato.Threads.Synchronizer
This class encapsulates the ManplatoSync synchronization engine as a seperate Runnable class, allowing it to be incorporated into multithreaded applications which listen to multiple synchronization ports at once.
Inner Class Summary | |
(package private) class |
Synchronizer.ConduitList
|
Field Summary | |
static int |
BACKUP_SYNC
|
java.io.PrintWriter |
logStream
|
static int |
NORMAL_SYNC
|
static int |
RESTORE_SYNC
|
boolean |
running
|
java.io.PrintWriter |
statusStream
|
static java.lang.String |
version
|
Constructor Summary | |
protected |
Synchronizer()
Insert the method's description here. |
|
Synchronizer(SLPTransportInterface transport,
int syncSpeed,
SynchronizerListener listener)
Insert the method's description here. |
Method Summary | |
void |
appendToPalmSyncLog(java.lang.String text)
Appends a string to the Palm's Sync Log. |
protected void |
finalize()
Code to perform when this object is garbage collected. |
java.util.Vector |
getDBInfo()
Retrieves the database info vector. |
DLPDatabaseInfo |
getDBInfo(java.lang.String s)
Returns a database information object for the specified, named database. |
DLPVersion |
getDLPVersion()
Retrieves the DLP version number. |
boolean |
getPopupState()
Returns the desired popup state. |
DLPStorageInfo |
getStorageInfo()
Retrieves the storage information object from the remote device. |
DLPSystemInfo |
getSystemInfo()
Retrieves hardware system information from the remote device. |
DLPUserInfo |
getUserInfo()
Retrieves the user info object for the remote device. |
boolean |
isModemListener()
This method is used to determine if this ManplatoSync instance is listening to a serial port with a cradle, or a serial port with a modem attached. |
void |
postToLog(java.lang.String s)
Posts the desired string to the synchronization log. |
void |
run()
run method comment. |
void |
setLogStream(java.io.PrintStream stream)
Insert the method's description here. |
void |
setLogStream(java.io.PrintWriter stream)
Insert the method's description here. |
void |
setRestorePath(java.lang.String path)
Sets the path to use for the Restore sync method. |
void |
setSpeed(int speed)
Insert the method's description here. |
void |
setStatus(java.lang.String s)
Insert the method's description here. |
void |
setStatusStream(java.io.PrintStream stream)
Insert the method's description here. |
void |
setStatusStream(java.io.PrintWriter stream)
Insert the method's description here. |
void |
stopSync()
Insert the method's description here. |
Methods inherited from class java.lang.Object |
|
Field Detail |
public static final java.lang.String version
public java.io.PrintWriter statusStream
public java.io.PrintWriter logStream
public volatile boolean running
public static final int NORMAL_SYNC
public static final int BACKUP_SYNC
public static final int RESTORE_SYNC
Constructor Detail |
protected Synchronizer()
public Synchronizer(SLPTransportInterface transport, int syncSpeed, SynchronizerListener listener)
transport
- com.ibm.manplato.Transport.SLPTransportInterfaceconduits
- java.util.Vectorsynctime
- booleanMethod Detail |
public void appendToPalmSyncLog(java.lang.String text)
ConduitManager
appendToPalmSyncLog
in interface ConduitManager
text
- java.lang.Stringprotected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
public java.util.Vector getDBInfo()
ConduitManager
getDBInfo
in interface ConduitManager
com.ibm.manplato.ConduitManager
public DLPDatabaseInfo getDBInfo(java.lang.String s) throws DatabaseNotFoundException
ConduitManager
getDBInfo
in interface ConduitManager
com.ibm.manplato.ConduitManager
s
- the database name to retrieve info for.DatabaseNotFoundException
- if the named database does not exist on this device.public DLPVersion getDLPVersion()
ConduitManager
getDLPVersion
in interface ConduitManager
public boolean getPopupState()
ConduitManager
getPopupState
in interface ConduitManager
public DLPStorageInfo getStorageInfo()
ConduitManager
getStorageInfo
in interface ConduitManager
public DLPSystemInfo getSystemInfo()
ConduitManager
getSystemInfo
in interface ConduitManager
public DLPUserInfo getUserInfo()
ConduitManager
getUserInfo
in interface ConduitManager
com.ibm.manplato.ConduitManager
public boolean isModemListener()
isModemListener
in interface ConduitManager
public void postToLog(java.lang.String s)
ConduitManager
postToLog
in interface ConduitManager
s
- java.lang.Stringpublic void run()
run
in interface java.lang.Runnable
public void setLogStream(java.io.PrintStream stream)
stream
- java.io.PrintStreampublic void setLogStream(java.io.PrintWriter stream)
stream
- java.io.PrintStreampublic void setRestorePath(java.lang.String path)
path
- the path to use for the restore method.public void setSpeed(int speed)
speed
- intpublic void setStatus(java.lang.String s)
setStatus
in interface ConduitManager
s
- java.lang.Stringpublic void setStatusStream(java.io.PrintStream stream)
stream
- java.io.PrintStreampublic void setStatusStream(java.io.PrintWriter stream)
stream
- java.io.PrintStreampublic void stopSync()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |