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

A

AbstractSocketEndpoint - Class in com.sun.sgs.impl.io
 
AbstractSocketEndpoint(SocketAddress, TransportType) - Constructor for class com.sun.sgs.impl.io.AbstractSocketEndpoint
Constructs an AbstractSocketEndpoint with the given TransportType.
AbstractSocketEndpoint(SocketAddress, TransportType, Executor, int) - Constructor for class com.sun.sgs.impl.io.AbstractSocketEndpoint
Constructs an AbstractSocketEndpoint with the given TransportType using the given Executor for thread management.
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.
address - Variable in class com.sun.sgs.impl.io.AbstractSocketEndpoint
The socket address this endpoint encapsulates.
authentication - Variable in class com.sun.sgs.client.simple.SimpleClient
The password authentication used for the initial client login attempt.

B

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

C

cancel() - Method in class com.sun.sgs.impl.client.comm.ClientConnector
Cancels a pending connect operation on this ClientConnecton.
cancel() - Method in class com.sun.sgs.impl.client.simple.SimpleClientConnector
Cancels a pending connect operation on this ClientConnecton.
cancel() - Method in class com.sun.sgs.impl.io.SocketConnector.ConnectorConnListner
If a connection is in progress, but not yet connected, cancel the pending connection.
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.
ClientChannel - Interface in com.sun.sgs.client
Represents a client's view of a channel.
ClientChannelListener - Interface in com.sun.sgs.client
Listener for events relating to a ClientChannel.
ClientConnection - Interface in com.sun.sgs.impl.client.comm
Represents an abstract network connection with the Project Darkstar Server.
ClientConnectionListener - Interface in com.sun.sgs.impl.client.comm
Listener for communications events that occur on an associated ClientConnection.
ClientConnector - Class in com.sun.sgs.impl.client.comm
An abstract mechanism for actively initiating a ClientConnection.
ClientConnector() - Constructor for class com.sun.sgs.impl.client.comm.ClientConnector
Only allow construction by subclasses.
ClientConnectorFactory - Interface in com.sun.sgs.impl.client.comm
Factory for concrete implementations of ClientConnector.
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.client - package com.sun.sgs.client
Defines a standard interface for a J2SE(TM) client framework that communicates with the Project Darkstar Server.
com.sun.sgs.client.simple - package com.sun.sgs.client.simple
Defines the interface to a simple, concrete implementation of a J2SE(TM) client framework that communicates with the Project Darkstar Server.
com.sun.sgs.impl.client.comm - package com.sun.sgs.impl.client.comm
Defines the interfaces for client communication with the Project Darkstar Server.
com.sun.sgs.impl.client.simple - package com.sun.sgs.impl.client.simple
Provides a simple, concrete implementation for client communication with the Project Darkstar Server.
com.sun.sgs.impl.io - package com.sun.sgs.impl.io
Provides a concrete implementation for network endpoint abstraction, connection initiation, and reactive event processing.
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.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
Protocol specification classes.
CompleteMessageFilter - Class in com.sun.sgs.impl.io
This filter guarantees that only complete messages are delivered to its FilterListener.
CompleteMessageFilter() - Constructor for class com.sun.sgs.impl.io.CompleteMessageFilter
Default constructor.
CONFIG_FILE_PROPERTY - Static variable in class com.sun.sgs.impl.sharedutil.logging.ResamplingUrlLogConfiguration
The property that specifies the configuration file.
connect(ClientConnectionListener) - Method in class com.sun.sgs.impl.client.comm.ClientConnector
Actively initates a connection to the target remote address.
connect(ClientConnectionListener) - Method in class com.sun.sgs.impl.client.simple.SimpleClientConnector
Actively initates a connection to the target remote address.
connect(ConnectionListener) - Method in class com.sun.sgs.impl.io.SocketConnector
Actively initiates a connection to the associated Endpoint.
connect(ConnectionListener) - Method in interface com.sun.sgs.io.Connector
Actively initiates a connection to the associated Endpoint.
connected(ClientConnection) - Method in class com.sun.sgs.client.simple.SimpleClient.SimpleClientConnectionListener
Notifies this listener that a transport connection has been established.
connected(ClientConnection) - Method in interface com.sun.sgs.impl.client.comm.ClientConnectionListener
Notifies this listener that a transport connection has been established.
connected(Connection) - Method in class com.sun.sgs.impl.client.simple.SimpleClientConnection
Notifies this listener that the connection is established, either actively from a Connector or passively by an Acceptor.
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.
create(Properties) - Static method in class com.sun.sgs.impl.client.comm.ClientConnector
Creates a ClientConnector according to the given properties.
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(Properties) - Method in interface com.sun.sgs.impl.client.comm.ClientConnectorFactory
Creates a new instance of ClientConnector based on the given properties.
createConnector(Properties) - Method in class com.sun.sgs.impl.client.simple.SimpleConnectorFactory
Creates a new instance of SimpleClientConnector based on the given properties.
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

DaemonThreadFactory - Class in com.sun.sgs.impl.io
A ThreadFactory that creates with setDaemon(true).
DaemonThreadFactory() - Constructor for class com.sun.sgs.impl.io.DaemonThreadFactory
Default constructor.
DEFAULT_CONNECT_FAILURE_MESSAGE - Static variable in class com.sun.sgs.impl.client.simple.SimpleClientConnector
The default connect failure message: "Unable to connect to server"
DEFAULT_CONNECT_TIMEOUT - Static variable in class com.sun.sgs.impl.client.simple.SimpleClientConnector
The default timeout for connect operations: 5000L ms
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.
disconnect() - Method in interface com.sun.sgs.impl.client.comm.ClientConnection
Asynchronously closes the connection, freeing any resources in use.
disconnect() - Method in class com.sun.sgs.impl.client.simple.SimpleClientConnection
Asynchronously closes the connection, freeing any resources in use.
disconnected(boolean, String) - Method in interface com.sun.sgs.client.ServerSessionListener
Notifies this listener that the associated server session is disconnected.
disconnected(boolean, byte[]) - Method in class com.sun.sgs.client.simple.SimpleClient.SimpleClientConnectionListener
Notifies this listener that the associated server connection is disconnected.
disconnected(boolean, byte[]) - Method in interface com.sun.sgs.impl.client.comm.ClientConnectionListener
Notifies this listener that the associated server connection is disconnected.
disconnected(Connection) - Method in class com.sun.sgs.impl.client.simple.SimpleClientConnection
Notifies this listener that the connection has been closed, or that it could not be initiated (e.g., when a Connector fails to connect).
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.
exceptionCaught(IoSession, Throwable) - Method in class com.sun.sgs.impl.io.SocketConnectionListener
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 class com.sun.sgs.impl.client.simple.SimpleClientConnection
Notifies this listener that a network exception has occurred on the connection.
exceptionThrown(Connection, Throwable) - Method in interface com.sun.sgs.io.ConnectionListener
Notifies this listener that a network exception has occurred on the connection.
executor - Variable in class com.sun.sgs.impl.io.AbstractSocketEndpoint
The Executor used by this endpoint's connector or acceptor.

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 interface com.sun.sgs.impl.io.FilterListener
Notifies this listener that a complete, filtered message has been received and should be dispatched to the final recipient.
filteredMessageReceived(ByteBuffer) - Method in class com.sun.sgs.impl.io.SocketConnection
Dispatches a complete message to this connection's ConnectionListener.
FilterListener - Interface in com.sun.sgs.impl.io
Receives the messages resulting from processing by a CompleteMessageFilter.
filterReceive(FilterListener, ByteBuffer) - Method in class com.sun.sgs.impl.io.CompleteMessageFilter
Processes network data of arbitrary length and dispatches zero or more complete messages to the given listener.
filterSend(FilterListener, byte[]) - Method in class com.sun.sgs.impl.io.CompleteMessageFilter
Prepends the length of the given byte array as a 2-byte short in network byte-order, and passes the result to the sendUnfiltered method of the given listener.
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 class com.sun.sgs.impl.io.AbstractSocketEndpoint
Returns the SocketAddress encapsulated by this endpoint.
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 class com.sun.sgs.impl.io.SocketAcceptor
Returns the ServerEndpoint on which this Acceptor is listening.
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.
getConnectionListener() - Method in class com.sun.sgs.impl.io.SocketConnection
Returns the ConnectionListener for this connection.
getEndpoint() - Method in class com.sun.sgs.impl.io.SocketAcceptor
Returns the ServerEndpoint this Acceptor was created with.
getEndpoint() - Method in class com.sun.sgs.impl.io.SocketConnector
Returns the Endpoint for this Connector.
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.
getExecutor() - Method in class com.sun.sgs.impl.io.AbstractSocketEndpoint
Returns the Executor encapsulated by this endpoint.
getFilter() - Method in class com.sun.sgs.impl.io.SocketConnection
Returns the IOFilter associated with this connection.
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.
getName() - Method in interface com.sun.sgs.client.ClientChannel
Returns the name of this channel.
getName() - Method in class com.sun.sgs.client.simple.SimpleClient.SimpleClientChannel
Returns the name of this channel.
getNumProcessors() - Method in class com.sun.sgs.impl.io.AbstractSocketEndpoint
Returns the number of processors available to the MINA framework.
getPasswordAuthentication() - Method in interface com.sun.sgs.client.simple.SimpleClientListener
Requests a login credential for the client associated with this listener.
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.
getTransportType() - Method in class com.sun.sgs.impl.io.AbstractSocketEndpoint
Returns the TransportType encapsulated by this endpoint.
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.
isConnected() - Method in interface com.sun.sgs.client.ServerSession
Returns true if this session is connected, otherwise returns false.
isConnected() - Method in class com.sun.sgs.client.simple.SimpleClient
Returns true if this session is connected, otherwise returns false.
isConnected() - Method in class com.sun.sgs.impl.io.SocketConnector
Returns true if this connector is connected, otherwise returns false.
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

J

joined() - Method in class com.sun.sgs.client.simple.SimpleClient.SimpleClientChannel
 
joinedChannel(ClientChannel) - Method in interface com.sun.sgs.client.ServerSessionListener
Notifies this listener that its associated client has joined the specified channel, and returns a non-null ClientChannelListener for that channel.

L

left() - Method in class com.sun.sgs.client.simple.SimpleClient.SimpleClientChannel
 
leftChannel(ClientChannel) - Method in interface com.sun.sgs.client.ClientChannelListener
Notifies this listener that the associated client was removed from the specified channel.
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 class com.sun.sgs.impl.io.SocketAcceptor
Passively accepts incoming connections on the associated ServerEndpoint.
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.
loggedIn() - Method in interface com.sun.sgs.client.simple.SimpleClientListener
Notifies this listener that a session has been established with the server as a result of a successful login.
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(Properties) - Method in class com.sun.sgs.client.simple.SimpleClient
Initiates a login session with the server.
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.
loginFailed(String) - Method in interface com.sun.sgs.client.simple.SimpleClientListener
Notifies this listener that a session could not be established with the server due to some failure logging in such as failure to verify a login credential.
logout(boolean) - Method in interface com.sun.sgs.client.ServerSession
Initiates logging out from the server.
logout(boolean) - Method in class com.sun.sgs.client.simple.SimpleClient
Initiates logging out from the server.
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.
messageReceived(IoSession, Object) - Method in class com.sun.sgs.impl.io.SocketConnectionListener

N

newConnection() - Method in interface com.sun.sgs.io.AcceptorListener
Returns an appropriate ConnectionListener for a newly-accepted connection.
newThread(Runnable) - Method in class com.sun.sgs.impl.io.DaemonThreadFactory
numProcessors - Variable in class com.sun.sgs.impl.io.AbstractSocketEndpoint
A MINA configuration parameter whose value may affect performance.

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

receivedMessage(ClientChannel, ByteBuffer) - Method in interface com.sun.sgs.client.ClientChannelListener
Notifies this listener that the specified message was received on the specified channel.
receivedMessage(ByteBuffer) - Method in interface com.sun.sgs.client.ServerSessionListener
Notifies this listener that the specified message was sent by the server.
receivedMessage(ByteBuffer) - Method in class com.sun.sgs.client.simple.SimpleClient.SimpleClientChannel
 
receivedMessage(byte[]) - Method in class com.sun.sgs.client.simple.SimpleClient.SimpleClientConnectionListener
Notifies this listener that protocol data has arrived from the server.
receivedMessage(byte[]) - Method in interface com.sun.sgs.impl.client.comm.ClientConnectionListener
Notifies this listener that protocol data has arrived from the server.
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.
reconnected() - Method in interface com.sun.sgs.client.ServerSessionListener
Notifies this listener whether the associated server session is successfully reconnected.
reconnected(byte[]) - Method in class com.sun.sgs.client.simple.SimpleClient.SimpleClientConnectionListener
Notifies this listener that a reconnection effort was successful.
reconnected(byte[]) - Method in interface com.sun.sgs.impl.client.comm.ClientConnectionListener
Notifies this listener that a reconnection effort was successful.
reconnecting() - Method in interface com.sun.sgs.client.ServerSessionListener
Notifies this listener that its associated server session is in the process of reconnecting with the server.
reconnecting(byte[]) - Method in class com.sun.sgs.client.simple.SimpleClient.SimpleClientConnectionListener
Notifies this listener that its associated server connection is in the process of reconnecting with the server.
reconnecting(byte[]) - Method in interface com.sun.sgs.impl.client.comm.ClientConnectionListener
Notifies this listener that its associated server connection is in the process of reconnecting with the server.
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.
send(ByteBuffer) - Method in interface com.sun.sgs.client.ClientChannel
Sends the message contained in the specified ByteBuffer to all channel members, including the sender.
send(ByteBuffer) - Method in interface com.sun.sgs.client.ServerSession
Sends the message contained in the specified ByteBuffer to the server.
send(ByteBuffer) - Method in class com.sun.sgs.client.simple.SimpleClient
Sends the message contained in the specified ByteBuffer to the server.
send(ByteBuffer) - Method in class com.sun.sgs.client.simple.SimpleClient.SimpleClientChannel
Sends the message contained in the specified ByteBuffer to all channel members, including the sender.
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.
sendMessage(ByteBuffer) - Method in interface com.sun.sgs.impl.client.comm.ClientConnection
Asynchronously sends data to the server.
sendMessage(ByteBuffer) - Method in class com.sun.sgs.impl.client.simple.SimpleClientConnection
Asynchronously sends data to the server.
sendUnfiltered(ByteBuffer) - Method in interface com.sun.sgs.impl.io.FilterListener
Notifies this listener that an outbound message has been filtered (prepending the message length) and should be sent "raw" on the underlying transport.
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.
ServerSession - Interface in com.sun.sgs.client
Represents a client's view of a login session with the server.
ServerSessionListener - Interface in com.sun.sgs.client
A client's listener for handling messages sent from server to client and for handling other connection-related events.
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 class com.sun.sgs.protocol.simple.SimpleSgsProtocol
Session message.
sessionClosed(IoSession) - Method in class com.sun.sgs.impl.io.SocketConnectionListener
sessionCreated(IoSession) - Method in class com.sun.sgs.impl.io.SocketAcceptor.AcceptHandler
As new MINA IoSessions come in, set up a SocketConnection and notify the associated AcceptorListener.
sessionCreated(IoSession) - Method in class com.sun.sgs.impl.io.SocketConnector.ConnectorConnListner
The connection is starting; set the ConnectionListener for it.
sessionOpened(IoSession) - Method in class com.sun.sgs.impl.io.SocketConnectionListener
sessionStarted(byte[]) - Method in class com.sun.sgs.client.simple.SimpleClient.SimpleClientConnectionListener
Notifies this listener that a new session has successfully logged in.
sessionStarted(byte[]) - Method in interface com.sun.sgs.impl.client.comm.ClientConnectionListener
Notifies this listener that a new session has successfully logged in.
setConnectorFactory(ClientConnectorFactory) - Static method in class com.sun.sgs.impl.client.comm.ClientConnector
Sets the ClientConnectorFactory that will be used to create new ClientConnectors.
shutdown() - Method in class com.sun.sgs.impl.io.SocketAcceptor
Shuts down this Acceptor, releasing any resources in use.
shutdown() - Method in class com.sun.sgs.impl.io.SocketConnector
Shuts down this Connector.
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.
SimpleClient - Class in com.sun.sgs.client.simple
An implementation of ServerSession that clients can use to manage logging in and communicating with the server.
SimpleClient(SimpleClientListener) - Constructor for class com.sun.sgs.client.simple.SimpleClient
Creates an instance of this class with the specified listener.
SimpleClient.SimpleClientChannel - Class in com.sun.sgs.client.simple
Simple ClientChannel implementation
SimpleClient.SimpleClientChannel(String, BigInteger) - Constructor for class com.sun.sgs.client.simple.SimpleClient.SimpleClientChannel
 
SimpleClient.SimpleClientConnectionListener - Class in com.sun.sgs.client.simple
Receives callbacks on the associated ClientConnection.
SimpleClient.SimpleClientConnectionListener() - Constructor for class com.sun.sgs.client.simple.SimpleClient.SimpleClientConnectionListener
 
SimpleClientConnection - Class in com.sun.sgs.impl.client.simple
A ClientConnection is the central point of communication with the server.
SimpleClientConnection(ClientConnectionListener) - Constructor for class com.sun.sgs.impl.client.simple.SimpleClientConnection
Creates a new connection implementation.
SimpleClientConnector - Class in com.sun.sgs.impl.client.simple
A basic implementation of a ClientConnector which uses an Connector to establish connections.
SimpleClientConnector(Properties) - Constructor for class com.sun.sgs.impl.client.simple.SimpleClientConnector
Creates a new connector with the given properties.
SimpleClientListener - Interface in com.sun.sgs.client.simple
A listener used in conjunction with a SimpleClient.
SimpleConnectorFactory - Class in com.sun.sgs.impl.client.simple
A trivial ClientConnectorFactory that creates a new SimpleClientConnector each time createConnector is invoked.
SimpleConnectorFactory() - Constructor for class com.sun.sgs.impl.client.simple.SimpleConnectorFactory
 
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.
SocketAcceptor - Class in com.sun.sgs.impl.io
This is an implementation of an Acceptor that uses a MINA IoAcceptor to accept incoming connections.
SocketAcceptor(ServerSocketEndpoint, IoAcceptor) - Constructor for class com.sun.sgs.impl.io.SocketAcceptor
Constructs a SocketAcceptor with the given MINA IoAcceptor.
SocketAcceptor.AcceptHandler - Class in com.sun.sgs.impl.io
Internal adaptor class to handle events from the acceptor itself.
SocketAcceptor.AcceptHandler(AcceptorListener) - Constructor for class com.sun.sgs.impl.io.SocketAcceptor.AcceptHandler
Constructs a new AcceptHandler with an AcceptorListener that will be notified as new connections arrive.
SocketConnection - Class in com.sun.sgs.impl.io
This is a socket implementation of an Connection using the Apache MINA framework.
SocketConnection(ConnectionListener, CompleteMessageFilter, IoSession) - Constructor for class com.sun.sgs.impl.io.SocketConnection
Construct a new SocketConnection with the given listener, filter, and session.
SocketConnectionListener - Class in com.sun.sgs.impl.io
An adapter between an Apache MINA IoHandler and the SGS IO framework ConnectionListener.
SocketConnectionListener() - Constructor for class com.sun.sgs.impl.io.SocketConnectionListener
 
SocketConnector - Class in com.sun.sgs.impl.io
This is a socket-based implementation of an Connector using the Apache MINA framework for the underlying transport.
SocketConnector(SocketEndpoint, IoConnector) - Constructor for class com.sun.sgs.impl.io.SocketConnector
Constructs a SocketConnector using the given IoConnector for the underlying transport.
SocketConnector.ConnectorConnListner - Class in com.sun.sgs.impl.io
Internal adaptor class to handle events from the connector itself.
SocketConnector.ConnectorConnListner(ConnectionListener) - Constructor for class com.sun.sgs.impl.io.SocketConnector.ConnectorConnListner
Constructs a new ConnectionHandler with an ConnectionListener that will handle events for the new connection.
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.
toString() - Method in class com.sun.sgs.impl.io.AbstractSocketEndpoint
transportType - Variable in class com.sun.sgs.impl.io.AbstractSocketEndpoint
The transport type this endpoint encapsulates.
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 class com.sun.sgs.protocol.simple.SimpleSgsProtocol
The version number, currently 0x04.

W

waitForConnect(long) - Method in class com.sun.sgs.impl.io.SocketConnector
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.
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 J L M N O P R S T U V W
Project Darkstar, Version 0.9.8.10
2013-07-29 20:39:31

Copyright © 2007-2013 Sun Microsystems, Inc. All rights reserved