org.jumpmind.symmetric.util
Class AppUtils

java.lang.Object
  extended by org.jumpmind.symmetric.util.AppUtils

public class AppUtils
extends java.lang.Object


Constructor Summary
AppUtils()
           
 
Method Summary
static
<T> T
find(java.lang.String name, SymmetricEngine engine)
          Handy utility method to look up a SymmetricDS component given the bean name.
static
<T> T
find(java.lang.String name, SymmetricWebServer server)
           
static java.lang.String getServerId()
          Get a unique identifier that represents the JVM instance this server is currently running in.
static java.lang.String getTimezoneOffset()
          This method will return the timezone in RFC822 format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppUtils

public AppUtils()
Method Detail

getServerId

public static java.lang.String getServerId()
Get a unique identifier that represents the JVM instance this server is currently running in.


getTimezoneOffset

public static java.lang.String getTimezoneOffset()
This method will return the timezone in RFC822 format.

The format ("-+HH:MM") has advantages over the older timezone codes ("AAA"). The difference of 5 hours from GMT is obvious with "-05:00" but only implied with "EST". There is no ambiguity saying "-06:00", but you don't know if "CST" means Central Standard Time ("-06:00") or China Standard Time ("+08:00"). The timezone codes need to be loaded on the system, and definitions are not standardized between systems. Therefore, to remain agnostic to operating systems and databases, the RFC822 format is the best choice.


find

public static <T> T find(java.lang.String name,
                         SymmetricEngine engine)
Handy utility method to look up a SymmetricDS component given the bean name.

See Also:
Constants

find

public static <T> T find(java.lang.String name,
                         SymmetricWebServer server)


Copyright © 2007-2008. All Rights Reserved.