C D E F G H I L M O P R S T U V

C

capacity() - Method in class com.sun.sgs.impl.sharedutil.MessageBuffer
Returns the capacity of this buffer.
CHANNEL_JOIN - Static variable in class com.sun.sgs.protocol.simple.SimpleSgsProtocol
Channel join.
CHANNEL_LEAVE - Static variable in class com.sun.sgs.protocol.simple.SimpleSgsProtocol
Channel leave.
CHANNEL_MESSAGE - Static variable in class com.sun.sgs.protocol.simple.SimpleSgsProtocol
Channel message.
checkNull(String, Object) - Static method in class com.sun.sgs.impl.sharedutil.Objects
Checks that a variable is not null, throwing NullPointerException if it is.
com.sun.sgs.impl.sharedutil - package com.sun.sgs.impl.sharedutil
Provides common utility classes.
com.sun.sgs.impl.sharedutil.logging - package com.sun.sgs.impl.sharedutil.logging
Provides utility classes for customizing logging.
com.sun.sgs.protocol.simple - package com.sun.sgs.protocol.simple
Protocol specification classes.
CONFIG_FILE_PROPERTY - Static variable in class com.sun.sgs.impl.sharedutil.logging.ResamplingUrlLogConfiguration
The property that specifies the configuration file.

D

DEFAULT_TIME_FORMAT - Static variable in class com.sun.sgs.impl.sharedutil.logging.LogFormatter
The default time format string.

E

EXCEPTION_CLASS_PROPERTY - Static variable in class com.sun.sgs.impl.sharedutil.logging.ExceptionFilter
The property that specifies the exception class.
ExceptionFilter - Class in com.sun.sgs.impl.sharedutil.logging
Defines a logging Filter that logs exceptions at a different logging level from other logging.
ExceptionFilter() - Constructor for class com.sun.sgs.impl.sharedutil.logging.ExceptionFilter
Creates an instance of this class.
Exceptions - Class in com.sun.sgs.impl.sharedutil
Utility methods for working with Exceptions.

F

fastToString(Object) - Static method in class com.sun.sgs.impl.sharedutil.Objects
Returns a string representing the object without calling any methods on the object.
format(byte[]) - Static method in class com.sun.sgs.impl.sharedutil.HexDumper
Returns a string constructed with the contents of the byte array converted to hex format.
format(byte[], int) - Static method in class com.sun.sgs.impl.sharedutil.HexDumper
Returns a string constructed with the contents of the byte array converted to hex format.
format(ByteBuffer) - Static method in class com.sun.sgs.impl.sharedutil.HexDumper
Returns a string constructed with the contents of the ByteBuffer converted to hex format.
format(ByteBuffer, int) - Static method in class com.sun.sgs.impl.sharedutil.HexDumper
Returns a string constructed with the contents of the ByteBuffer converted to hex format.
format(LogRecord) - Method in class com.sun.sgs.impl.sharedutil.logging.LogFormatter
fromHexString(String) - Static method in class com.sun.sgs.impl.sharedutil.HexDumper
Returns a byte array constructed with the contents of the given string, which contains a series of byte values in hex format.

G

getBooleanProperty(String, boolean) - Method in class com.sun.sgs.impl.sharedutil.PropertiesWrapper
Returns the value of a boolean property.
getBuffer() - Method in class com.sun.sgs.impl.sharedutil.MessageBuffer
Returns the byte array that backs this buffer.
getByte() - Method in class com.sun.sgs.impl.sharedutil.MessageBuffer
Returns the byte in this buffer's current position, and advances the buffer's position by one.
getByteArray() - Method in class com.sun.sgs.impl.sharedutil.MessageBuffer
Returns a byte array encoded as a 2-byte length followed by the bytes, starting at this buffer's current position, and advances the buffer's position by the number of bytes obtained.
getBytes(int) - Method in class com.sun.sgs.impl.sharedutil.MessageBuffer
Returns a byte array containing the specified number of bytes, starting at this buffer's current position, and advances the buffer's position by the number of bytes obtained.
getChar() - Method in class com.sun.sgs.impl.sharedutil.MessageBuffer
Returns a char, composed of the next two bytes (high byte first) in this buffer, and advances the buffer's position by two.
getClassInstanceProperty(String, Class<T>, Class<?>[], Object...) - Method in class com.sun.sgs.impl.sharedutil.PropertiesWrapper
Returns an instance of the class whose fully qualified class name is specified by a property, and that has a constructor with the specified parameters.
getClassInstanceProperty(String, String, Class<T>, Class<?>[], Object...) - Method in class com.sun.sgs.impl.sharedutil.PropertiesWrapper
Returns an instance of the class whose fully qualified class name is specified by a property, and that has a constructor with the specified parameters.
getClassListProperty(String) - Method in class com.sun.sgs.impl.sharedutil.PropertiesWrapper
Returns a List of Class typed objects.
getEnumListProperty(String, Class<T>, T) - Method in class com.sun.sgs.impl.sharedutil.PropertiesWrapper
Returns a list of Enums of the type specified by enumType.
getEnumProperty(String, Class<T>, T) - Method in class com.sun.sgs.impl.sharedutil.PropertiesWrapper
Returns the value of an Enum property.
getInt() - Method in class com.sun.sgs.impl.sharedutil.MessageBuffer
Returns an int value, composed of the next four bytes (high byte first) in this buffer, and advances the buffer's position by 4.
getIntProperty(String, int) - Method in class com.sun.sgs.impl.sharedutil.PropertiesWrapper
Returns the value of an int property.
getIntProperty(String, int, int, int) - Method in class com.sun.sgs.impl.sharedutil.PropertiesWrapper
Returns the value of an int property within a bound range of values.
getListProperty(String, Class<T>, T) - Method in class com.sun.sgs.impl.sharedutil.PropertiesWrapper
Returns a list of objects of the type specified by type.
getLogger() - Method in class com.sun.sgs.impl.sharedutil.LoggerWrapper
Returns the wrapped Logger.
getLong() - Method in class com.sun.sgs.impl.sharedutil.MessageBuffer
Returns a long value, composed of the next eight bytes (high byte first) in this buffer, and advances the buffer's position by 8.
getLongProperty(String, long) - Method in class com.sun.sgs.impl.sharedutil.PropertiesWrapper
Returns the value of a long property.
getLongProperty(String, long, long, long) - Method in class com.sun.sgs.impl.sharedutil.PropertiesWrapper
Returns the value of a long property within a bound range of values.
getProperties() - Method in class com.sun.sgs.impl.sharedutil.PropertiesWrapper
Returns the associated Properties.
getProperty(String) - Method in class com.sun.sgs.impl.sharedutil.PropertiesWrapper
Returns the value of a property as a String, or null if the property is not found.
getProperty(String, String) - Method in class com.sun.sgs.impl.sharedutil.PropertiesWrapper
Returns the value of a property as a String, or the default value if the property is not found.
getRequiredIntProperty(String) - Method in class com.sun.sgs.impl.sharedutil.PropertiesWrapper
Returns the value of a required int property.
getRequiredIntProperty(String, int, int) - Method in class com.sun.sgs.impl.sharedutil.PropertiesWrapper
Returns the value of a required int property within a bound range of values.
getShort() - Method in class com.sun.sgs.impl.sharedutil.MessageBuffer
Returns a short value, composed of the next two bytes (high byte first) in this buffer, and advances the buffer's position by two.
getSize(String) - Static method in class com.sun.sgs.impl.sharedutil.MessageBuffer
Returns the size of the specified string, encoded in modified UTF-8 format.
getStackTrace() - Static method in class com.sun.sgs.impl.sharedutil.Exceptions
Returns the caller's stack trace, in the typical format.
getString() - Method in class com.sun.sgs.impl.sharedutil.MessageBuffer
Returns a string that has been encoded in modified UTF-8 format, starting at the buffer's current position, and advances the buffer's position by the length of the encoded string.
getUnsignedShort() - Method in class com.sun.sgs.impl.sharedutil.MessageBuffer
Returns an unsigned short value (as an int), composed of the next two bytes (high byte first) in this buffer, and advances the buffer's position by two.

H

HexDumper - Class in com.sun.sgs.impl.sharedutil
Utility class for converting a byte array to a hex-formatted string.

I

init() - Method in class com.sun.sgs.impl.sharedutil.logging.ResamplingUrlLogConfiguration
Initialize this class.
initCause(T, Throwable) - Static method in class com.sun.sgs.impl.sharedutil.Exceptions
Returns the given exception with its cause initialized.
isLoggable(Level) - Method in class com.sun.sgs.impl.sharedutil.LoggerWrapper
Returns the result of invoking isLoggable on the wrapped Logger.
isLoggable(LogRecord) - Method in class com.sun.sgs.impl.sharedutil.logging.ExceptionFilter

L

LEVEL_PROPERTY - Static variable in class com.sun.sgs.impl.sharedutil.logging.ExceptionFilter
The property that specifies the logging level for log records that do not contain an exception of the specified exception class.
limit() - Method in class com.sun.sgs.impl.sharedutil.MessageBuffer
Returns the limit of this buffer.
log(Level, String) - Method in class com.sun.sgs.impl.sharedutil.LoggerWrapper
If calling isLoggable with the given level value on the wrapped Logger returns true, invokes the log method of the wrapped Logger, passing a LogRecord constructed with the given level and message values.
log(Level, String, Object) - Method in class com.sun.sgs.impl.sharedutil.LoggerWrapper
If calling isLoggable with the given level value on the wrapped Logger returns true, invokes the log method of the wrapped Logger, passing a LogRecord constructed with the given level and message values.
log(Level, String, Object...) - Method in class com.sun.sgs.impl.sharedutil.LoggerWrapper
If calling isLoggable with the given level value on the wrapped Logger returns true, invokes the log method of the wrapped Logger, passing a LogRecord constructed with the given level and message values.
log(Level, String, Throwable) - Method in class com.sun.sgs.impl.sharedutil.LoggerWrapper
Deprecated. 
log(Level, String, Throwable, Object...) - Method in class com.sun.sgs.impl.sharedutil.LoggerWrapper
Deprecated. 
LogFormatter - Class in com.sun.sgs.impl.sharedutil.logging
Defines a logging Formatter that uses a compact date and time format that includes milliseconds, permits the date and time format to be customized, and allows suppressing stack traces for exceptions.
LogFormatter() - Constructor for class com.sun.sgs.impl.sharedutil.logging.LogFormatter
Creates an instance of this class.
LoggerWrapper - Class in com.sun.sgs.impl.sharedutil
Wrapper around a Logger that provides convenience methods for logging exceptions and messages with multiple arguments, and that insulates the caller from unchecked exceptions thrown during the act of logging.
LoggerWrapper(Logger) - Constructor for class com.sun.sgs.impl.sharedutil.LoggerWrapper
Creates an instance that delegates to the given Logger.
LOGIN_FAILURE - Static variable in class com.sun.sgs.protocol.simple.SimpleSgsProtocol
Login failure.
LOGIN_REDIRECT - Static variable in class com.sun.sgs.protocol.simple.SimpleSgsProtocol
Login redirect.
LOGIN_REQUEST - Static variable in class com.sun.sgs.protocol.simple.SimpleSgsProtocol
Login request from a client to a server.
LOGIN_SUCCESS - Static variable in class com.sun.sgs.protocol.simple.SimpleSgsProtocol
Login success.
LOGOUT_REQUEST - Static variable in class com.sun.sgs.protocol.simple.SimpleSgsProtocol
Logout request from a client to a server.
LOGOUT_SUCCESS - Static variable in class com.sun.sgs.protocol.simple.SimpleSgsProtocol
Logout success.
logThrow(Level, Throwable, String) - Method in class com.sun.sgs.impl.sharedutil.LoggerWrapper
If calling isLoggable with the given level value on the wrapped Logger returns true, invokes the log method of the wrapped Logger, passing a LogRecord constructed with the given level and message values.
logThrow(Level, Throwable, String, Object) - Method in class com.sun.sgs.impl.sharedutil.LoggerWrapper
If calling isLoggable with the given level value on the wrapped Logger returns true, invokes the log method of the wrapped Logger, passing a LogRecord constructed with the given level and message values.
logThrow(Level, Throwable, String, Object...) - Method in class com.sun.sgs.impl.sharedutil.LoggerWrapper
If calling isLoggable with the given level value on the wrapped Logger returns true, invokes the log method of the wrapped Logger, passing a LogRecord constructed with the given level and message values.

M

MAX_MESSAGE_LENGTH - Static variable in class com.sun.sgs.protocol.simple.SimpleSgsProtocol
The maximum length of a protocol message: 65535 bytes.
MAX_PAYLOAD_LENGTH - Static variable in class com.sun.sgs.protocol.simple.SimpleSgsProtocol
The maximum payload length: 65532 bytes.
MessageBuffer - Class in com.sun.sgs.impl.sharedutil
A buffer for composing/decomposing messages.
MessageBuffer(int) - Constructor for class com.sun.sgs.impl.sharedutil.MessageBuffer
Constructs an empty message buffer with the specified capacity.
MessageBuffer(byte[]) - Constructor for class com.sun.sgs.impl.sharedutil.MessageBuffer
Constructs a message buffer using the specified byte array as the byte array that backs this buffer.

O

Objects - Class in com.sun.sgs.impl.sharedutil
Utility methods for working with Objects.

P

position() - Method in class com.sun.sgs.impl.sharedutil.MessageBuffer
Returns the position of this buffer.
PRINT_STACK_PROPERTY - Static variable in class com.sun.sgs.impl.sharedutil.logging.LogFormatter
The logging property for specifying whether to print stack traces when logging a thrown exception.
PropertiesWrapper - Class in com.sun.sgs.impl.sharedutil
Wrapper around a Properties that provides convenience methods for accessing primitives.
PropertiesWrapper(Properties) - Constructor for class com.sun.sgs.impl.sharedutil.PropertiesWrapper
Creates an instance that delegates to the given Properties.
putByte(int) - Method in class com.sun.sgs.impl.sharedutil.MessageBuffer
Puts the specified byte in this buffer's current position, and advances the buffer's position and limit by one.
putByteArray(byte[]) - Method in class com.sun.sgs.impl.sharedutil.MessageBuffer
Puts into this buffer a short representing the length of the specified byte array followed by the bytes from the specified byte array, starting at the buffer's current position.
putBytes(byte[]) - Method in class com.sun.sgs.impl.sharedutil.MessageBuffer
Puts the bytes from the specified byte array in this buffer, starting at the buffer's current position.
putChar(int) - Method in class com.sun.sgs.impl.sharedutil.MessageBuffer
Puts the specified char as a two-byte value (high byte first) starting in the buffer's current position, and advances the buffer's position and limit by two.
putInt(int) - Method in class com.sun.sgs.impl.sharedutil.MessageBuffer
Puts the specified int as four bytes (high byte first) starting in the buffer's current position, and advances the buffer's position and limit by 4.
putLong(long) - Method in class com.sun.sgs.impl.sharedutil.MessageBuffer
Puts the specified long as eight bytes (high byte first) starting in the buffer's current position, and advances the buffer's position and limit by 8.
putShort(int) - Method in class com.sun.sgs.impl.sharedutil.MessageBuffer
Puts the specified short as a two-byte value (high byte first) starting in the buffer's current position, and advances the buffer's position and limit by two.
putString(String) - Method in class com.sun.sgs.impl.sharedutil.MessageBuffer
Puts the specified string, encoded in modified UTF-8 format, in the buffer starting in the buffer's the current position, and advances the buffer's position and limit by the size of the encoded string.

R

RECONNECT_FAILURE - Static variable in class com.sun.sgs.protocol.simple.SimpleSgsProtocol
Reconnect failure.
RECONNECT_REQUEST - Static variable in class com.sun.sgs.protocol.simple.SimpleSgsProtocol
Reconnection request.
RECONNECT_SUCCESS - Static variable in class com.sun.sgs.protocol.simple.SimpleSgsProtocol
Reconnect success.
RELOCATE_FAILURE - Static variable in class com.sun.sgs.protocol.simple.SimpleSgsProtocol
Relocate failure.
RELOCATE_NOTIFICATION - Static variable in class com.sun.sgs.protocol.simple.SimpleSgsProtocol
Relocate session notification.
RELOCATE_REQUEST - Static variable in class com.sun.sgs.protocol.simple.SimpleSgsProtocol
Relocation request.
RELOCATE_SUCCESS - Static variable in class com.sun.sgs.protocol.simple.SimpleSgsProtocol
Relocation success.
RESAMPLE_INTERVAL_DEFAULT - Static variable in class com.sun.sgs.impl.sharedutil.logging.ResamplingUrlLogConfiguration
The default resample interval.
RESAMPLE_INTERVAL_PROPERTY - Static variable in class com.sun.sgs.impl.sharedutil.logging.ResamplingUrlLogConfiguration
The property that specifies the resample interval.
ResamplingUrlLogConfiguration - Class in com.sun.sgs.impl.sharedutil.logging
Defines a class that allows the logging configuration to be specified by a URL and periodically rereads the configuration if it has changed.
ResamplingUrlLogConfiguration() - Constructor for class com.sun.sgs.impl.sharedutil.logging.ResamplingUrlLogConfiguration
Creates an instance of this class.
RESUME_MESSAGES - Static variable in class com.sun.sgs.protocol.simple.SimpleSgsProtocol
Resume messages notification.
rewind() - Method in class com.sun.sgs.impl.sharedutil.MessageBuffer
Sets the position of this buffer to zero, making this buffer ready for re-reading of its elements.

S

safeToString(Object) - Static method in class com.sun.sgs.impl.sharedutil.Objects
Returns a string representing the object, returning a failsafe value if the toString or hashCode methods throw exceptions or if the method ends up being called recursively.
SESSION_MESSAGE - Static variable in class com.sun.sgs.protocol.simple.SimpleSgsProtocol
Session message.
SimpleSgsProtocol - Class in com.sun.sgs.protocol.simple
SGS Protocol constants.
SimpleSgsProtocol() - Constructor for class com.sun.sgs.protocol.simple.SimpleSgsProtocol
This class should not be instantiated.
SUSPEND_MESSAGES - Static variable in class com.sun.sgs.protocol.simple.SimpleSgsProtocol
Suspend messages notification.
SUSPEND_MESSAGES_COMPLETE - Static variable in class com.sun.sgs.protocol.simple.SimpleSgsProtocol
Acknowledgment of SUSPEND_MESSAGES notification.

T

throwUnchecked(Throwable) - Static method in class com.sun.sgs.impl.sharedutil.Exceptions
Throws an unchecked exception.
TIME_FORMAT_PROPERTY - Static variable in class com.sun.sgs.impl.sharedutil.logging.LogFormatter
The logging property for specifying the time format.
toHexString(byte[]) - Static method in class com.sun.sgs.impl.sharedutil.HexDumper
Returns a string constructed with the contents of the byte array converted to hex format.
toHexString(BigInteger) - Static method in class com.sun.sgs.impl.sharedutil.HexDumper
Returns the specified bigInt as a hex-formatted string.

U

uncheckedCast(Object) - Static method in class com.sun.sgs.impl.sharedutil.Objects
Casts an object to the required type with no unchecked warnings.

V

VERSION - Static variable in class com.sun.sgs.protocol.simple.SimpleSgsProtocol
The version number, currently 0x05.

C D E F G H I L M O P R S T U V

Copyright © 2007-2013. All Rights Reserved.