com.sun.sgs.protocol
Class LoginRedirectException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.sun.sgs.protocol.LoginRedirectException
All Implemented Interfaces:
Serializable

public class LoginRedirectException
extends Exception

An exception that indicates a login should be redirected to the node returned by this exception's getNodeId method.

See Also:
Serialized Form

Constructor Summary
LoginRedirectException(long nodeId, Set<ProtocolDescriptor> descriptors)
          Constructs an instance with the specified nodeId and protocol descriptors.
LoginRedirectException(long nodeId, Set<ProtocolDescriptor> descriptors, String message)
          Constructs an instance with the specified nodeId, descriptors and detail message.
LoginRedirectException(long nodeId, Set<ProtocolDescriptor> descriptors, String message, Throwable cause)
          Constructs an instance with the specified nodeId, detail message, and cause.
 
Method Summary
 long getNodeId()
          Returns the ID of the node to which the login should be redirected.
 Set<ProtocolDescriptor> getProtocolDescriptors()
          Returns a collection of protocol descriptors supported by the node whose ID is returned by getNodeId.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LoginRedirectException

public LoginRedirectException(long nodeId,
                              Set<ProtocolDescriptor> descriptors)
Constructs an instance with the specified nodeId and protocol descriptors.

Parameters:
nodeId - a node ID
descriptors - a collection of protocol descriptors supported by the specified node, or null

LoginRedirectException

public LoginRedirectException(long nodeId,
                              Set<ProtocolDescriptor> descriptors,
                              String message)
Constructs an instance with the specified nodeId, descriptors and detail message.

Parameters:
nodeId - a node ID
descriptors - a collection of protocol descriptors supported by the specified node, or null
message - a detail message, or null

LoginRedirectException

public LoginRedirectException(long nodeId,
                              Set<ProtocolDescriptor> descriptors,
                              String message,
                              Throwable cause)
Constructs an instance with the specified nodeId, detail message, and cause.

Parameters:
nodeId - a node ID
descriptors - a collection of protocol descriptors supported by the specified node, or null
message - a detail message, or null
cause - the cause of this exception, or null
Method Detail

getNodeId

public long getNodeId()
Returns the ID of the node to which the login should be redirected.

Returns:
the ID of the node to which the login should be redirected

getProtocolDescriptors

public Set<ProtocolDescriptor> getProtocolDescriptors()
Returns a collection of protocol descriptors supported by the node whose ID is returned by getNodeId.

Returns:
a Set of protocol descriptors

RedDwarf, Version 0.10.1
2010-03-14 10:56:12

Copyright © 2010 The RedDwarf Authors. All rights reserved
Copyright © 2007-2010 Sun Microsystems, Inc. All rights reserved