com.ibm.mobileservices.isync
Interface ISyncService

All Known Implementing Classes:
MIDPISyncProvider

public interface ISyncService

ISyncService class contains host and port information for making a connection to the DB2 Everyplace Sync Server.

See Also:
ISyncProvider, ISyncConfigStore

Method Summary
 void close()
          Closes the synchronization service.
 java.lang.String getCharEncoding()
          Get the character encoding.
 com.ibm.mobileservices.isync.ISyncConfigStore getConfigStore(java.lang.String path)
          Get a configuration store instance.
 java.lang.String getHost()
          Get server hostname or IP.
 java.lang.String getPort()
          Get server port.
 

Method Detail

getHost

public java.lang.String getHost()
                         throws ISyncException
Get server hostname or IP.

Returns:
string value of host
Throws:
throws - ISyncException with code:
  • EXC_ILLEGAL_STATE
ISyncException

getPort

public java.lang.String getPort()
                         throws ISyncException
Get server port.

Returns:
string value of port
Throws:
throws - ISyncException with code:
  • EXC_ILLEGAL_STATE
ISyncException

getConfigStore

public com.ibm.mobileservices.isync.ISyncConfigStore getConfigStore(java.lang.String path)
                                                             throws ISyncException
Get a configuration store instance.

Parameters:
path - target path for storing the data for synchronization
Throws:
throws - ISyncException with code:
  • EXC_ILLEGAL_ARG
  • EXC_ILLEGAL_STATE
  • EXC_STORE_IN_USE
  • EXC_ILLEGAL_ACCESS
  • EXC_INVALID_FORMAT
  • EXC_CONFIG_ERROR
ISyncException

getCharEncoding

public java.lang.String getCharEncoding()
                                 throws ISyncException
Get the character encoding.

This page defines the values,

http://java.sun.com/j2se/1.3/docs/guide/intl/encoding.doc.html
Although not all are supported.

The code page is set using the ISyncProvider.setPref method using the PREF_CODE_PAGE value.

Returns:
String value of the encoding.
Throws:
ISyncException

close

public void close()
           throws ISyncException
Closes the synchronization service.

Throws:
ISyncException


(c) Copyright IBM Corp. 2001, 2002, 2003. All Rights Reserved.