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

A

Acceptor<T> - Interface in com.sun.sgs.io
Passively initiates connections by listening on a ServerEndpoint and asynchronously notifies an associated AcceptorListener of each accepted connection.
AcceptorListener - Interface in com.sun.sgs.io
Receives asynchronous notification of events from an associated Acceptor.

B

bytesReceived(Connection, byte[]) - Method in interface com.sun.sgs.io.ConnectionListener
Notifies this listener that data arrives on a connection.

C

capacity() - Method in class com.sun.sgs.impl.sharedutil.MessageBuffer
Returns the capacity of this buffer.
CHANNEL_JOIN - Static variable in interface com.sun.sgs.protocol.simple.SimpleSgsProtocol
Channel join.
CHANNEL_LEAVE - Static variable in interface com.sun.sgs.protocol.simple.SimpleSgsProtocol
Channel leave.
CHANNEL_MESSAGE - Static variable in interface com.sun.sgs.protocol.simple.SimpleSgsProtocol
Channel message.
close() - Method in class com.sun.sgs.impl.io.SocketConnection
Asynchronously closes this connection, freeing any resources in use.
close() - Method in interface com.sun.sgs.io.Connection
Asynchronously closes this connection, freeing any resources in use.
com.sun.sgs.impl.io - package com.sun.sgs.impl.io
 
com.sun.sgs.impl.sharedutil - package com.sun.sgs.impl.sharedutil
 
com.sun.sgs.impl.sharedutil.logging - package com.sun.sgs.impl.sharedutil.logging
Provides utility classes for customizing logging.
com.sun.sgs.io - package com.sun.sgs.io
Defines an abstract networking framework that provides endpoint abstraction, connection initiation, and reactive event processing.
com.sun.sgs.protocol.simple - package com.sun.sgs.protocol.simple
 
CONFIG_FILE_PROPERTY - Static variable in class com.sun.sgs.impl.sharedutil.logging.ResamplingUrlLogConfiguration
The property that specifies the configuration file.
connect(ConnectionListener) - Method in interface com.sun.sgs.io.Connector
Actively initiates a connection to the associated Endpoint.
connected(Connection) - Method in interface com.sun.sgs.io.ConnectionListener
Notifies this listener that the connection is established, either actively from a Connector or passively by an Acceptor.
Connection - Interface in com.sun.sgs.io
Represents a connection for data communication, independent of the QoS properties of the connection's transport or protocol.
ConnectionListener - Interface in com.sun.sgs.io
Receives asynchronous notification of events from an associated Connection.
Connector<T> - Interface in com.sun.sgs.io
Actively initiates a single connection to an Endpoint and asynchronously notifies the associated ConnectionListener when the connection completes.
createAcceptor() - Method in class com.sun.sgs.impl.io.ServerSocketEndpoint
Creates an Acceptor to passively listen for connections on this local ServerEndpoint.
createAcceptor() - Method in interface com.sun.sgs.io.ServerEndpoint
Creates an Acceptor to passively listen for connections on this local ServerEndpoint.
createConnector() - Method in class com.sun.sgs.impl.io.SocketEndpoint
Creates a Connector for actively initiating a connection to this remote Endpoint.
createConnector() - Method in interface com.sun.sgs.io.Endpoint
Creates a Connector for actively initiating a connection to this remote Endpoint.

D

DEFAULT_REUSE_ADDRESS - Static variable in class com.sun.sgs.impl.io.ServerSocketEndpoint
Default value for the reuse-address property if not specified.
DEFAULT_TIME_FORMAT - Static variable in class com.sun.sgs.impl.sharedutil.logging.LogFormatter
The default time format string.
disconnected() - Method in interface com.sun.sgs.io.AcceptorListener
Notifies this listener that its associated Acceptor has shut down.
disconnected(Connection) - Method in interface com.sun.sgs.io.ConnectionListener
Notifies this listener that the connection has been closed, or that it could not be initiated (e.g., when a Connector fails to connect).

E

Endpoint<T> - Interface in com.sun.sgs.io
Represents an abstract remote communication endpoint.
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.
exceptionThrown(Connection, Throwable) - Method in interface com.sun.sgs.io.ConnectionListener
Notifies this listener that a network exception has occurred on the connection.

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.
filteredMessageReceived(ByteBuffer) - Method in class com.sun.sgs.impl.io.SocketConnection
Dispatches a complete message to this connection's ConnectionListener.
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

getAddress() - Method in interface com.sun.sgs.io.Endpoint
Returns the address of type T encapsulated by this Endpoint.
getAddress() - Method in interface com.sun.sgs.io.ServerEndpoint
Returns the address of type T encapsulated by this ServerEndpoint.
getBooleanProperty(String, boolean) - Method in class com.sun.sgs.impl.sharedutil.PropertiesWrapper
Returns the value of a boolean property.
getBoundEndpoint() - Method in interface com.sun.sgs.io.Acceptor
Returns the ServerEndpoint on which this Acceptor is listening.
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.
getEndpoint() - Method in interface com.sun.sgs.io.Acceptor
Returns the ServerEndpoint this Acceptor was created with.
getEndpoint() - Method in interface com.sun.sgs.io.Connector
Returns the Endpoint for this Connector.
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.
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.
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.
HexDumper() - Constructor for class com.sun.sgs.impl.sharedutil.HexDumper
 

I

initCause(T, Throwable) - Static method in class com.sun.sgs.impl.sharedutil.Exceptions
Returns the given exception with its cause initialized.
isConnected() - Method in interface com.sun.sgs.io.Connector
Returns true if this connector is connected, otherwise returns false.
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.
listen(AcceptorListener) - Method in interface com.sun.sgs.io.Acceptor
Passively accepts incoming connections on the associated ServerEndpoint.
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 interface com.sun.sgs.protocol.simple.SimpleSgsProtocol
Login failure.
LOGIN_REDIRECT - Static variable in interface com.sun.sgs.protocol.simple.SimpleSgsProtocol
Login redirect.
LOGIN_REQUEST - Static variable in interface com.sun.sgs.protocol.simple.SimpleSgsProtocol
Login request from a client to a server.
LOGIN_SUCCESS - Static variable in interface com.sun.sgs.protocol.simple.SimpleSgsProtocol
Login success.
LOGOUT_REQUEST - Static variable in interface com.sun.sgs.protocol.simple.SimpleSgsProtocol
Logout request from a client to a server.
LOGOUT_SUCCESS - Static variable in interface 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 interface com.sun.sgs.protocol.simple.SimpleSgsProtocol
The maximum length of a protocol message: 65535 bytes.
MAX_PAYLOAD_LENGTH - Static variable in interface 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.

N

newConnection() - Method in interface com.sun.sgs.io.AcceptorListener
Returns an appropriate ConnectionListener for a newly-accepted connection.

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 interface com.sun.sgs.protocol.simple.SimpleSgsProtocol
Reconnect failure.
RECONNECT_REQUEST - Static variable in interface com.sun.sgs.protocol.simple.SimpleSgsProtocol
Reconnection request.
RECONNECT_SUCCESS - Static variable in interface com.sun.sgs.protocol.simple.SimpleSgsProtocol
Reconnect 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.
REUSE_ADDRESS_PROPERTY - Static variable in class com.sun.sgs.impl.io.ServerSocketEndpoint
The System property for whether to set the reuse-address property.
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.
sendBytes(byte[]) - Method in class com.sun.sgs.impl.io.SocketConnection
Asynchronously sends data on this connection.
sendBytes(byte[]) - Method in interface com.sun.sgs.io.Connection
Asynchronously sends data on this connection.
sendUnfiltered(ByteBuffer) - Method in class com.sun.sgs.impl.io.SocketConnection
Sends the given MINA buffer out on the associated IoSession.
ServerEndpoint<T> - Interface in com.sun.sgs.io
Represents an abstract local communication endpoint.
ServerSocketEndpoint - Class in com.sun.sgs.impl.io
An implementation of ServerEndpoint that wraps a local SocketAddress.
ServerSocketEndpoint(SocketAddress, TransportType) - Constructor for class com.sun.sgs.impl.io.ServerSocketEndpoint
Constructs a ServerSocketEndpoint with the given TransportType.
ServerSocketEndpoint(SocketAddress, TransportType, Executor) - Constructor for class com.sun.sgs.impl.io.ServerSocketEndpoint
Constructs a ServerSocketEndpoint with the given TransportType using the given Executor for thread management.
ServerSocketEndpoint(SocketAddress, TransportType, Executor, int) - Constructor for class com.sun.sgs.impl.io.ServerSocketEndpoint
Constructs a ServerSocketEndpoint with the given TransportType using the given Executor for thread management.
SESSION_MESSAGE - Static variable in interface com.sun.sgs.protocol.simple.SimpleSgsProtocol
Session message.
shutdown() - Method in interface com.sun.sgs.io.Acceptor
Shuts down this Acceptor, releasing any resources in use.
shutdown() - Method in interface com.sun.sgs.io.Connector
Shuts down this Connector.
SimpleSgsProtocol - Interface in com.sun.sgs.protocol.simple
SGS Protocol constants.
SocketConnection - Class in com.sun.sgs.impl.io
This is a socket implementation of an Connection using the Apache MINA framework.
SocketEndpoint - Class in com.sun.sgs.impl.io
An implementation of Endpoint that wraps a SocketAddress.
SocketEndpoint(SocketAddress, TransportType) - Constructor for class com.sun.sgs.impl.io.SocketEndpoint
Constructs a SocketEndpoint with the given TransportType.
SocketEndpoint(SocketAddress, TransportType, Executor) - Constructor for class com.sun.sgs.impl.io.SocketEndpoint
Constructs a SocketEndpoint with the given TransportType using the given Executor for thread management.
SocketEndpoint(SocketAddress, TransportType, Executor, int) - Constructor for class com.sun.sgs.impl.io.SocketEndpoint
Constructs a SocketEndpoint with the given TransportType using the given Executor for thread management.

T

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.
TransportType - Enum in com.sun.sgs.impl.io
The type of IO transport: reliable (e.g., TCP), or unreliable (e.g., UDP).

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

valueOf(String) - Static method in enum com.sun.sgs.impl.io.TransportType
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.sun.sgs.impl.io.TransportType
Returns an array containing the constants of this enum type, in the order they are declared.
VERSION - Static variable in interface com.sun.sgs.protocol.simple.SimpleSgsProtocol
The version number, currently 0x04.

W

waitForConnect(long) - Method in interface com.sun.sgs.io.Connector
Waits for the connect attempt, initiated by invoking the connect method, to complete with the given timeout (specified in milliseconds), and returns true if the connect attempt completed.
A B C D E F G H I L M N O P R S T U V W 

Copyright © 2007-2013. All Rights Reserved.