org.eclipse.net4j
Interface ILocationAware

All Known Subinterfaces:
IChannel, IChannelMultiplexer, IConnector, IHTTPConnector, IJVMChannel, IJVMConnector, InternalChannel, InternalChannelMultiplexer, InternalConnector, IProtocol<INFRA_STRUCTURE>, ISignalProtocol<INFRA_STRUCTURE>, ITCPConnector
All Known Implementing Classes:
Channel, ChannelMultiplexer, Connector, HeartBeatProtocol, HeartBeatProtocol.Server, Protocol, SignalProtocol

public interface ILocationAware

A concept that has a location in a client/server scenario.

Since:
2.0

Nested Class Summary
static class ILocationAware.Location
          A location in a client/server scenario.
 
Method Summary
 ILocationAware.Location getLocation()
          Returns the location of this object in a client/server scenario.
 boolean isClient()
          Same as getLocation() == ILocationAware.Location.CLIENT.
 boolean isServer()
          Same as getLocation() == ILocationAware.Location.SERVER.
 

Method Detail

getLocation

ILocationAware.Location getLocation()
Returns the location of this object in a client/server scenario.


isClient

boolean isClient()
Same as getLocation() == ILocationAware.Location.CLIENT.


isServer

boolean isServer()
Same as getLocation() == ILocationAware.Location.SERVER.



Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.