|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ConnectorLocation>
org.eclipse.net4j.connector.ConnectorLocation
public enum ConnectorLocation
Enumerates the roles that an IConnector
can play during the establishment of a physical connection.
An active connector that is created by a client application plays a CLIENT
role and a passive connector that
is created by an IAcceptor
in response to a call to one of the active
connector's connect methods plays a SERVER
role.
Note however that the role of a connector is only meaningful to determine how a physical connection has been
established. Once it has been established actual communication (opening IChannel
s, sending and
receiving IBuffer
s) can occur in both directions without limitation. Values of this enumeration do not
necessarily permit general assumption about whether a connector is located in a typical client or server environment.
IConnector.connect(long)
,
IConnector.connectAsync()
,
IConnector.openChannel()
,
IConnector.openChannel(IProtocol)
,
IConnector.openChannel(String, Object)
,
IChannel.sendBuffer(IBuffer)
,
IChannel.setReceiveHandler(IBufferHandler)
Enum Constant Summary | |
---|---|
CLIENT
|
|
SERVER
|
Method Summary | |
---|---|
static ConnectorLocation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ConnectorLocation[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ConnectorLocation CLIENT
public static final ConnectorLocation SERVER
Method Detail |
---|
public static final ConnectorLocation[] values()
for(ConnectorLocation c : ConnectorLocation.values()) System.out.println(c);
public static ConnectorLocation valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
|
Copyright (c) 2004 - 2008 Eike Stepper, Germany. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |