com.sun.sgs.transport
Interface TransportDescriptor


public interface TransportDescriptor

Transport descriptor. Classes that implement TransportDescriptor must also implement Serializable to allow instances to be persisted.


Method Summary
 byte[] getConnectionData()
          Return the transport specific connection data as a byte array.
 boolean supportsTransport(TransportDescriptor descriptor)
          Check if the specified transport is compatible with the transport this descriptor represents.
 

Method Detail

supportsTransport

boolean supportsTransport(TransportDescriptor descriptor)
Check if the specified transport is compatible with the transport this descriptor represents.

Parameters:
descriptor - to compare
Returns:
true if the specified descriptor represents a transport compatible with the transport this descriptor represents, and false otherwise

getConnectionData

byte[] getConnectionData()
Return the transport specific connection data as a byte array. The data can be used by a client to connect to a server. Each transport should document the format of the data returned by this method.

Returns:
the connection data

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