Package org.eclipse.spi.net4j
Class Protocol<INFRA_STRUCTURE>
java.lang.Object
org.eclipse.net4j.util.event.Notifier
org.eclipse.net4j.util.lifecycle.Lifecycle
org.eclipse.spi.net4j.Protocol<INFRA_STRUCTURE>
- All Implemented Interfaces:
IBufferHandler
,ILocationAware
,IProtocol<INFRA_STRUCTURE>
,IProtocol2<INFRA_STRUCTURE>
,IProtocol3<INFRA_STRUCTURE>
,org.eclipse.net4j.util.concurrent.IExecutorServiceProvider
,org.eclipse.net4j.util.container.IManagedContainerProvider
,org.eclipse.net4j.util.event.INotifier
,org.eclipse.net4j.util.event.INotifier.INotifier2
,org.eclipse.net4j.util.lifecycle.IDeactivateable
,org.eclipse.net4j.util.lifecycle.ILifecycle
,org.eclipse.net4j.util.lifecycle.ILifecycle.DeferrableActivation
,org.eclipse.net4j.util.security.IUserAware
- Direct Known Subclasses:
SignalProtocol
public abstract class Protocol<INFRA_STRUCTURE>
extends org.eclipse.net4j.util.lifecycle.Lifecycle
implements IProtocol3<INFRA_STRUCTURE>, org.eclipse.net4j.util.concurrent.IExecutorServiceProvider, org.eclipse.net4j.util.container.IManagedContainerProvider
If the meaning of this type isn't clear, there really should be more of a description here...
- Since:
- 2.0
- Author:
- Eike Stepper
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle
org.eclipse.net4j.util.lifecycle.ILifecycle.DeferrableActivation
Nested classes/interfaces inherited from interface org.eclipse.net4j.ILocationAware
ILocationAware.Location
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifier
org.eclipse.net4j.util.event.INotifier.INotifier2
-
Field Summary
Fields inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle
USE_LABEL
Fields inherited from interface org.eclipse.net4j.protocol.IProtocol2
UNSPECIFIED_VERSION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
org.eclipse.net4j.util.container.IManagedContainer
final String
getType()
int
protected void
boolean
isClient()
boolean
isServer()
void
setChannel
(IChannel newChannel) void
setExecutorService
(ExecutorService executorService) void
setInfraStructure
(INFRA_STRUCTURE infraStructure) protected void
Methods inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doActivate, doAfterActivate, doBeforeDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toString
Methods inherited from class org.eclipse.net4j.util.event.Notifier
addListener, addUniqueListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListener, hasListeners, lastListenerRemoved, listenerAdded, listenerRemoved, removeListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.net4j.buffer.IBufferHandler
handleBuffer
Methods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
Methods inherited from interface org.eclipse.net4j.protocol.IProtocol3
doWhenFullyConnected
-
Constructor Details
-
Protocol
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceIProtocol<INFRA_STRUCTURE>
-
getVersion
public int getVersion()- Specified by:
getVersion
in interfaceIProtocol2<INFRA_STRUCTURE>
- Since:
- 4.2
-
getContainer
public org.eclipse.net4j.util.container.IManagedContainer getContainer()- Specified by:
getContainer
in interfaceorg.eclipse.net4j.util.container.IManagedContainerProvider
-
getExecutorService
- Specified by:
getExecutorService
in interfaceorg.eclipse.net4j.util.concurrent.IExecutorServiceProvider
- Specified by:
getExecutorService
in interfaceIProtocol<INFRA_STRUCTURE>
-
setExecutorService
- Specified by:
setExecutorService
in interfaceIProtocol<INFRA_STRUCTURE>
-
getBufferProvider
- Specified by:
getBufferProvider
in interfaceIProtocol<INFRA_STRUCTURE>
-
getInfraStructure
- Specified by:
getInfraStructure
in interfaceIProtocol<INFRA_STRUCTURE>
-
setInfraStructure
- Specified by:
setInfraStructure
in interfaceIProtocol<INFRA_STRUCTURE>
-
getLocation
Description copied from interface:ILocationAware
- Specified by:
getLocation
in interfaceILocationAware
- Since:
- 2.0
-
isClient
public boolean isClient()Description copied from interface:ILocationAware
- Specified by:
isClient
in interfaceILocationAware
- Since:
- 2.0
-
isServer
public boolean isServer()Description copied from interface:ILocationAware
- Specified by:
isServer
in interfaceILocationAware
- Since:
- 2.0
-
getChannel
- Specified by:
getChannel
in interfaceIProtocol<INFRA_STRUCTURE>
-
setChannel
- Specified by:
setChannel
in interfaceIProtocol<INFRA_STRUCTURE>
-
getUserID
- Specified by:
getUserID
in interfaceorg.eclipse.net4j.util.security.IUserAware
-
setUserID
-
handleChannelDeactivation
protected void handleChannelDeactivation()- Since:
- 2.0
-
doBeforeActivate
- Overrides:
doBeforeActivate
in classorg.eclipse.net4j.util.lifecycle.Lifecycle
- Throws:
Exception
-
doDeactivate
- Overrides:
doDeactivate
in classorg.eclipse.net4j.util.lifecycle.Lifecycle
- Throws:
Exception
-