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