com.ibm.mobileservices.isync
Interface ISyncService


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()
          Gets the character encoding.
 ISyncConfigStore getConfigStore(java.lang.String path)
          Gets a configuration store instance.
 java.lang.String getHost()
          Gets server hostname or IP.
 java.lang.String getPort()
          Gets server port.
 

Method Detail

getHost

public java.lang.String getHost()
                         throws ISyncException
Gets 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
Gets server port.

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

getConfigStore

public ISyncConfigStore getConfigStore(java.lang.String path)
                                throws ISyncException
Gets a configuration store instance. The maximum length for the path is 78 characters.

Parameters:
path - target path for storing the data for synchronization
Returns:
an ISyncConfigStore object
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
Gets 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 can be set by specifying the "isync.encoding" property in the Properties object of ISyncManager.getISyncService.

Returns:
String value of the encoding.
Throws:
ISyncException

close

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

Throws:
ISyncException


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