com.quadrique.jbuildingblocks.core
Class JbbFactory
java.lang.Object
com.quadrique.jbuildingblocks.core.JbbFactory
public class JbbFactory
- extends Object
This class is the factory for all the core JBuildingBlocks classes
|
Method Summary |
static JbbExceptionHandler |
getJbbExceptionHandler()
|
static JbbBlockingFifoQueue |
newJbbBlockingFifoQueue()
|
static JbbChronometer |
newJbbChronometer()
|
static JbbClass |
newJbbClass()
|
static JbbCurrency |
newJbbCurrency()
|
static JbbDatabaseClient |
newJbbDatabaseClient()
|
static JbbDatabaseClientPool |
newJbbDatabaseClientPool()
|
static JbbDataStructure |
newJbbDataStructure()
|
static JbbDate |
newJbbDate()
|
static JbbDate |
newJbbDate(Date date)
|
static JbbDate |
newJbbDate(Date date,
Locale locale)
|
static JbbDate |
newJbbDate(Date date,
Locale locale,
TimeZone timeZone)
|
static JbbDate |
newJbbDate(int year,
int month,
int day)
|
static JbbDate |
newJbbDate(int year,
int month,
int day,
int hour,
int minute,
int second,
int millisecond)
|
static JbbDate |
newJbbDate(int year,
int month,
int day,
int hour,
int minute,
int second,
int millisecond,
Locale locale)
|
static JbbDate |
newJbbDate(int year,
int month,
int day,
int hour,
int minute,
int second,
int millisecond,
Locale locale,
TimeZone timeZone)
|
static JbbDate |
newJbbDate(int year,
int month,
int day,
Locale locale)
|
static JbbDate |
newJbbDate(int year,
int month,
int day,
Locale locale,
TimeZone timeZone)
|
static JbbDate |
newJbbDate(Locale locale)
|
static JbbDate |
newJbbDate(Locale locale,
TimeZone timeZone)
|
static JbbDate |
newJbbDate(long date)
|
static JbbDate |
newJbbDate(long date,
Locale locale)
|
static JbbDate |
newJbbDate(long date,
Locale locale,
TimeZone timeZone)
|
static JbbDate |
newJbbDateFromRfc822String(String rfc822DateTime)
|
static JbbDate |
newJbbDateFromRfc822String(String rfc822DateTime,
Locale locale)
|
static JbbDate |
newJbbDateFromRfc822String(String rfc822DateTime,
Locale locale,
TimeZone timeZone)
|
static JbbDate |
newJbbDateFromXsdString(String xsdDateTime)
|
static JbbDate |
newJbbDateFromXsdString(String xsdDateTime,
Locale locale)
|
static JbbDate |
newJbbDateFromXsdString(String xsdDateTime,
Locale locale,
TimeZone timeZone)
|
static JbbDesCipher |
newJbbDesCipher(String passPhrase)
reversible DES enryption, returns null if unable to create the instance. |
static JbbDom |
newJbbDom()
|
static JbbEmail |
newJbbEmail()
|
static JbbExcelFileParser |
newJbbExcelFileParser()
|
static JbbFile |
newJbbFile()
|
static JbbGCalendar |
newJbbGCalendar()
|
static JbbGContacts |
newJbbGContacts()
|
static JbbGraphXYModel |
newJbbGraphXYModel()
|
static JbbImage |
newJbbImage()
|
static JbbImageHandler |
newJbbImageHandler()
|
static JbbJavaInterpreter |
newJbbJavaInterpreter()
|
static JbbMath |
newJbbMath()
|
static JbbNetworkInterfaces |
newJbbNetworkInterfaces()
|
static JbbProcess |
newJbbProcess()
|
static JbbProcessMemoryWatchdog |
newJbbProcessMemoryWatchdog(int pollingInterval,
int policy,
int threshold)
|
static JbbSmsUpsideWireless |
newJbbSmsUpsideWireless()
|
static JbbSocketHandler |
newJbbSocketHandler()
|
static JbbSoundHandler |
newJbbSoundHandler()
|
static JbbSqlClause |
newJbbSqlClause()
|
static JbbStatistics |
newJbbStatistics()
|
static JbbStream |
newJbbStream()
|
static JbbString |
newJbbString()
|
static JbbString |
newJbbString(String str)
|
static JbbStringLabelToIndexMap |
newJbbStringLabelToIndexMap()
|
static JbbThreadPool |
newJbbThreadPool(String zName,
int zInitialNbOfThreads,
int zMaxNbOfThreads)
|
static JbbVmMXbeanAccess |
newJbbVmMXbeanAccess()
|
static JbbVmMXbeanAccess |
newJbbVmMXbeanAccess(String host,
int port)
return MxBeanAccess to remote VM. |
JbbFactory
public JbbFactory()
newJbbNetworkInterfaces
public static JbbNetworkInterfaces newJbbNetworkInterfaces()
- Returns:
- a JbbNetworkInterfaces instance
newJbbDate
public static JbbDate newJbbDate()
- Returns:
- a JbbDate instance with current time and default Locale
newJbbDate
public static JbbDate newJbbDate(Locale locale)
- Parameters:
locale - the locale to use
- Returns:
- a JbbDate instance initialized with the given locale and current time
newJbbDate
public static JbbDate newJbbDate(Locale locale,
TimeZone timeZone)
- Parameters:
locale - the locale to usetimezone -
- Returns:
- a JbbDate instance initialized with the given locale and current time
newJbbDate
public static JbbDate newJbbDate(Date date)
- Parameters:
date - the date to use
- Returns:
- a JbbDate instance initialized with the given date and default Locale
newJbbDate
public static JbbDate newJbbDate(Date date,
Locale locale)
- Parameters:
date - the date to uselocale - the Locale to use
- Returns:
- a JbbDate instance initialized with the given date and given Locale
A null date will result in current time
A null Locale will result in the default Locale
newJbbDate
public static JbbDate newJbbDate(Date date,
Locale locale,
TimeZone timeZone)
- Parameters:
date - the date to uselocale - the Locale to use
- Returns:
- a JbbDate instance initialized with the given date and given Locale
A null date will result in current time
A null Locale will result in the default Locale
newJbbDate
public static JbbDate newJbbDate(long date)
- Parameters:
date - the date expressed as the number of milliseconds since Jan , 1970
- Returns:
- a JbbDate instance initialized with the given date and default Locale
newJbbDate
public static JbbDate newJbbDate(long date,
Locale locale)
- Parameters:
date - the date expressed as the number of milliseconds since Jan , 1970locale - the Locale to use
- Returns:
- a JbbDate instance initialized with the given date and given Locale
newJbbDate
public static JbbDate newJbbDate(long date,
Locale locale,
TimeZone timeZone)
- Parameters:
date - the date expressed as the number of milliseconds since Jan , 1970locale - the Locale to use
- Returns:
- a JbbDate instance initialized with the given date and given Locale
newJbbDate
public static JbbDate newJbbDate(int year,
int month,
int day,
int hour,
int minute,
int second,
int millisecond,
Locale locale)
throws Exception
- Parameters:
year - e.g. 2008month - 0 - 11day - 0 - ...hour - 0 - 23minute - 0 - 59second - 0 - 59millisecond - 0- 999locale -
- Returns:
-
- Throws:
Exception
newJbbDate
public static JbbDate newJbbDate(int year,
int month,
int day,
int hour,
int minute,
int second,
int millisecond,
Locale locale,
TimeZone timeZone)
throws Exception
- Parameters:
year - e.g. 2008month - 0 - 11day - 0 - ...hour - 0 - 23minute - 0 - 59second - 0 - 59millisecond - 0- 999locale -
- Returns:
-
- Throws:
Exception
newJbbDate
public static JbbDate newJbbDate(int year,
int month,
int day,
Locale locale)
throws Exception
- Parameters:
year - e.g. 2008month - 0 - 11day - 0 - ...locale -
- Returns:
-
- Throws:
Exception
newJbbDate
public static JbbDate newJbbDate(int year,
int month,
int day,
Locale locale,
TimeZone timeZone)
throws Exception
- Parameters:
year - e.g. 2008month - 0 - 11day - 0 - ...locale -
- Returns:
-
- Throws:
Exception
newJbbDate
public static JbbDate newJbbDate(int year,
int month,
int day,
int hour,
int minute,
int second,
int millisecond)
throws Exception
- Parameters:
year - e.g. 2008month - 0 - 11day - 0 - ...hour - 0 - 23minute - 0 - 59second - 0 - 59milliseconds - 0- 999
- Returns:
-
- Throws:
Exception
newJbbDate
public static JbbDate newJbbDate(int year,
int month,
int day)
throws Exception
- Parameters:
year - e.g. 2008month - 0 - 11day - 0 - ...
- Returns:
-
- Throws:
Exception
newJbbDateFromXsdString
public static JbbDate newJbbDateFromXsdString(String xsdDateTime,
Locale locale,
TimeZone timeZone)
throws Exception
- Throws:
Exception
newJbbDateFromXsdString
public static JbbDate newJbbDateFromXsdString(String xsdDateTime,
Locale locale)
throws Exception
- Parameters:
xsdDateTime -
- Returns:
-
- Throws:
Exception
newJbbDateFromXsdString
public static JbbDate newJbbDateFromXsdString(String xsdDateTime)
throws Exception
- Parameters:
xsdDateTime -
- Returns:
-
- Throws:
Exception
newJbbDateFromRfc822String
public static JbbDate newJbbDateFromRfc822String(String rfc822DateTime,
Locale locale,
TimeZone timeZone)
throws Exception
- Parameters:
xsdDateTime -
- Returns:
-
- Throws:
Exception
newJbbDateFromRfc822String
public static JbbDate newJbbDateFromRfc822String(String rfc822DateTime,
Locale locale)
throws Exception
- Parameters:
xsdDateTime -
- Returns:
-
- Throws:
Exception
newJbbDateFromRfc822String
public static JbbDate newJbbDateFromRfc822String(String rfc822DateTime)
throws Exception
- Parameters:
xsdDateTime -
- Returns:
-
- Throws:
Exception
newJbbString
public static JbbString newJbbString()
- Returns:
- a JbbString instance
newJbbString
public static JbbString newJbbString(String str)
- Parameters:
str -
- Returns:
- a JbbString instance initialized with the given String
newJbbStringLabelToIndexMap
public static JbbStringLabelToIndexMap newJbbStringLabelToIndexMap()
- Returns:
- a JbbStringLabelToIndexMap instance
newJbbClass
public static JbbClass newJbbClass()
- Returns:
- a JbbClass instance
newJbbDatabaseClient
public static JbbDatabaseClient newJbbDatabaseClient()
- Returns:
- a JbbDatabaseClient instance
newJbbDatabaseClientPool
public static JbbDatabaseClientPool newJbbDatabaseClientPool()
- Returns:
- a JbbDatabaseClientPool instance
newJbbSqlClause
public static JbbSqlClause newJbbSqlClause()
- Returns:
- a JbbSqlClause instance
newJbbDataStructure
public static JbbDataStructure newJbbDataStructure()
- Returns:
- a JbbDataStructure instance
newJbbCurrency
public static JbbCurrency newJbbCurrency()
- Returns:
- a JbbCurrency instance
newJbbJavaInterpreter
public static JbbJavaInterpreter newJbbJavaInterpreter()
- Returns:
- a JbbJavaInterpreter instance
newJbbImage
public static JbbImage newJbbImage()
- Returns:
- a JbbImage instance
newJbbImageHandler
public static JbbImageHandler newJbbImageHandler()
- Returns:
- a JbbImageHandler instance
newJbbGraphXYModel
public static JbbGraphXYModel newJbbGraphXYModel()
- Returns:
- a JbbGraphXYModel instance
newJbbGCalendar
public static JbbGCalendar newJbbGCalendar()
- Returns:
- a JbbGMailCalendar instance
newJbbGContacts
public static JbbGContacts newJbbGContacts()
- Returns:
- a JbbGContacts instance
newJbbEmail
public static JbbEmail newJbbEmail()
- Returns:
- a JbbEmail instance
newJbbExcelFileParser
public static JbbExcelFileParser newJbbExcelFileParser()
- Returns:
- a JbbExcelFileParser instance
newJbbFile
public static JbbFile newJbbFile()
- Returns:
- a JbbFile instance
newJbbSmsUpsideWireless
public static JbbSmsUpsideWireless newJbbSmsUpsideWireless()
- Returns:
- a JbbSmsUpsideWireless instance
newJbbSocketHandler
public static JbbSocketHandler newJbbSocketHandler()
- Returns:
- a JbbSocketHandler instance
newJbbProcess
public static JbbProcess newJbbProcess()
- Returns:
- a JbbProcess instance
newJbbSoundHandler
public static JbbSoundHandler newJbbSoundHandler()
- Returns:
- a JbbSoundHandler instance
newJbbChronometer
public static JbbChronometer newJbbChronometer()
- Returns:
- a JbbSoundHandler instance
newJbbDom
public static JbbDom newJbbDom()
- Returns:
- a JbbDom instance
newJbbThreadPool
public static JbbThreadPool newJbbThreadPool(String zName,
int zInitialNbOfThreads,
int zMaxNbOfThreads)
throws Exception
- Returns:
- the one and only JbbThreadPool instance
- Throws:
Exception
newJbbBlockingFifoQueue
public static JbbBlockingFifoQueue newJbbBlockingFifoQueue()
- Returns:
- a JbbBlockingFifoQueue instance
newJbbMath
public static JbbMath newJbbMath()
- Returns:
- a JbbMath instance
newJbbStatistics
public static JbbStatistics newJbbStatistics()
- Returns:
- a JbbStatistics instance
newJbbStream
public static JbbStream newJbbStream()
getJbbExceptionHandler
public static JbbExceptionHandler getJbbExceptionHandler()
- Returns:
- a JbbExceptionHandler instance
newJbbVmMXbeanAccess
public static JbbVmMXbeanAccess newJbbVmMXbeanAccess()
- Returns:
- MxBeanAccess to local VM.
newJbbVmMXbeanAccess
public static JbbVmMXbeanAccess newJbbVmMXbeanAccess(String host,
int port)
- return MxBeanAccess to remote VM.
newJbbProcessMemoryWatchdog
public static JbbProcessMemoryWatchdog newJbbProcessMemoryWatchdog(int pollingInterval,
int policy,
int threshold)
throws Exception
- Parameters:
policy - POLICY_IS_CALL_GC_FOR_EACH_DELTA_T to call the GC at regular interval, POLICY_IS_CALL_GC_IF_MEMORY_USED_IS_ABOVE_THRESHOLD...pollingInterval - the polling interval in number of seconds (> 60s)threshold - use 0 if policy is POLICY_IS_CALL_GC_FOR_EACH_DELTA_T, the threshold value in number of bytes otherwise
- Throws:
Exception
newJbbDesCipher
public static JbbDesCipher newJbbDesCipher(String passPhrase)
- reversible DES enryption, returns null if unable to create the instance.
- Returns:
- a JbbDesCipher instance
Copyright © 2001-2008 Quadrique Corporation. All Rights Reserved.