org.opensync.engine.server
Class Synchronizer

java.lang.Object
  extended byorg.opensync.engine.server.Synchronizer

public class Synchronizer
extends java.lang.Object

This object represents the motor of the OpenSync application.


Field Summary
static Task currentTask
           
protected static java.text.SimpleDateFormat dateFormat
           
protected static Mapper mapper
          The mapper use to synchronize the and transform views of tasks
 
Constructor Summary
Synchronizer()
           
 
Method Summary
static void executeTask(Task task)
          Execute a task
static java.lang.String getClassName(java.lang.Object obj)
          Trunc the full name of the class
protected static void logDebug(Task task, java.lang.String msgKey, java.lang.Object[] params)
          Log information
static void logError(Task task, java.lang.Exception ex)
          Log error
protected static void logInfo(Task task, java.lang.String msgKey, java.lang.Object[] params)
          Log information
protected static void logStat(Task task, Statistic stat)
          Log information
static void logWarning(Task task, java.lang.String msgKey, java.lang.Object[] params)
          Log information
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dateFormat

protected static java.text.SimpleDateFormat dateFormat

mapper

protected static Mapper mapper
The mapper use to synchronize the and transform views of tasks

See Also:
Mapper

currentTask

public static Task currentTask
Constructor Detail

Synchronizer

public Synchronizer()
Method Detail

executeTask

public static void executeTask(Task task)
                        throws java.lang.Exception
Execute a task

Parameters:
task - the task to execute
Throws:
javax.xml.transform.TransformerException
java.io.IOException
java.lang.Exception

logDebug

protected static void logDebug(Task task,
                               java.lang.String msgKey,
                               java.lang.Object[] params)
Log information

Parameters:
task - the task executed
msgKey - the message to log
params - the message parameters

logInfo

protected static void logInfo(Task task,
                              java.lang.String msgKey,
                              java.lang.Object[] params)
Log information

Parameters:
task - the task executed
msgKey - the message to log
params - the message parameters

logStat

protected static void logStat(Task task,
                              Statistic stat)
Log information

Parameters:
task - the task executed

logWarning

public static void logWarning(Task task,
                              java.lang.String msgKey,
                              java.lang.Object[] params)
Log information

Parameters:
task - the task executed
msgKey - the message to log
params - the message parameters

logError

public static void logError(Task task,
                            java.lang.Exception ex)
Log error

Parameters:
task - the executed task
ex - the exception log

getClassName

public static java.lang.String getClassName(java.lang.Object obj)
Trunc the full name of the class

Parameters:
obj - the class


Copyright © 2004 sourceforge. All Rights Reserved.