Class jada.Jada
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jada.Jada

java.lang.Object
   |
   +----jada.Jada

public final class Jada
extends Object
This class provides some utility method that can be used to get/set Jada resources at run-time such as setting/removing object's serializers and tuning network retries in order to avoid troubles with transient network failures. This class cannot be instantiated.

Variable Index

 o default_net_retry_attempts
 o default_net_retry_delay

Method Index

 o addSerializer(Class, JadaSerializer)
Adds a new serializer to the system at run time.
 o errPrint(String)
If the error reporting flag is set to true, prints s to System.err using print
 o errPrintln(String)
If the error reporting flag is set to true, prints s to System.err using println
 o F()
Short form of Float
 o Float()
Returns the formal for a Float object
 o getNetRetryAttempts()
Returns the current number of retry attempts when a network error arises.
 o getNetRetryDelay()
Returns the current delay between retries when a network error arises.
 o getSerializer(Class)
Returns the serializer (if any) for the class aclass.
 o I()
Short form of Integer
 o Integer()
Returns the formal for a Integer object
 o removeSerializer(Class)
Removes the serializer for the class aclass (if any).
 o reportErrors(boolean)
Sets the error reporting flag for Jada.
 o S()
Short form of String
 o setNetRetryAttempts(int)
Changes the current number of retry attempts when a network error arises.
 o setNetRetryDelay(long)
Changes the current delay between retries when a network error arises.
 o String()
Returns the formal for a String object
 o V()
Short form of Vector
 o Vector()
Returns the formal for a Vector object

Variables

 o default_net_retry_delay
  public final long default_net_retry_delay
 o default_net_retry_attempts
  public final int default_net_retry_attempts

Methods

 o addSerializer
  public static void addSerializer(Class aclass,
                                   JadaSerializer object)
Adds a new serializer to the system at run time.
 o removeSerializer
  public static void removeSerializer(Class aclass)
Removes the serializer for the class aclass (if any).
 o getSerializer
  public static JadaSerializer getSerializer(Class aclass)
Returns the serializer (if any) for the class aclass.
 o setNetRetryDelay
  public static void setNetRetryDelay(long delay)
Changes the current delay between retries when a network error arises. The default value is default_net_retry_delay
 o setNetRetryAttempts
  public static void setNetRetryAttempts(int n)
Changes the current number of retry attempts when a network error arises. The default value is default_net_retry_attempts
 o getNetRetryDelay
  public static long getNetRetryDelay()
Returns the current delay between retries when a network error arises.
 o getNetRetryAttempts
  public static int getNetRetryAttempts()
Returns the current number of retry attempts when a network error arises.
 o Integer
  public static Class Integer()
Returns the formal for a Integer object
 o I
  public static Class I()
Short form of Integer
 o String
  public static Class String()
Returns the formal for a String object
 o S
  public static Class S()
Short form of String
 o Float
  public static Class Float()
Returns the formal for a Float object
 o F
  public static Class F()
Short form of Float
 o Vector
  public static Class Vector()
Returns the formal for a Vector object
 o V
  public static Class V()
Short form of Vector
 o reportErrors
  public static void reportErrors(boolean yes_no)
Sets the error reporting flag for Jada. Error reporting is performed printing messages to System.err
 o errPrintln
  public static void errPrintln(String s)
If the error reporting flag is set to true, prints s to System.err using println
 o errPrint
  public static void errPrint(String s)
If the error reporting flag is set to true, prints s to System.err using print

All Packages  Class Hierarchy  This Package  Previous  Next  Index