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>,- org.eclipse.net4j.util.concurrent.IExecutorServiceProvider,- 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 IProtocol2<INFRA_STRUCTURE>, org.eclipse.net4j.util.concurrent.IExecutorServiceProvider 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 SummaryNested Classes Modifier and Type Class Description classProtocol.InfraStructureChangedEvent- 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycleorg.eclipse.net4j.util.lifecycle.ILifecycle.DeferrableActivation
 - 
Nested classes/interfaces inherited from interface org.eclipse.net4j.ILocationAwareILocationAware.Location
 
- 
 - 
Field Summary- 
Fields inherited from interface org.eclipse.net4j.protocol.IProtocol2UNSPECIFIED_VERSION
 
- 
 - 
Constructor SummaryConstructors Constructor Description Protocol(java.lang.String type)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoBeforeActivate()protected voiddoDeactivate()IBufferProvidergetBufferProvider()IChannelgetChannel()java.util.concurrent.ExecutorServicegetExecutorService()INFRA_STRUCTUREgetInfraStructure()ILocationAware.LocationgetLocation()java.lang.StringgetType()java.lang.StringgetUserID()intgetVersion()protected voidhandleChannelDeactivation()booleanisClient()booleanisServer()voidsetChannel(IChannel newChannel)voidsetExecutorService(java.util.concurrent.ExecutorService executorService)voidsetInfraStructure(INFRA_STRUCTURE infraStructure)protected voidsetUserID(java.lang.String userID)- 
Methods inherited from class org.eclipse.net4j.util.lifecycle.Lifecycleactivate, 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.NotifieraddListener, addUniqueListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListener, hasListeners, lastListenerRemoved, listenerAdded, listenerRemoved, removeListener
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.eclipse.net4j.buffer.IBufferHandlerhandleBuffer
 
- 
 
- 
- 
- 
Method Detail- 
getTypepublic final java.lang.String getType() - Specified by:
- getTypein interface- IProtocol<INFRA_STRUCTURE>
 
 - 
getVersionpublic int getVersion() - Specified by:
- getVersionin interface- IProtocol2<INFRA_STRUCTURE>
- Since:
- 4.2
 
 - 
getExecutorServicepublic java.util.concurrent.ExecutorService getExecutorService() - Specified by:
- getExecutorServicein interface- org.eclipse.net4j.util.concurrent.IExecutorServiceProvider
- Specified by:
- getExecutorServicein interface- IProtocol<INFRA_STRUCTURE>
 
 - 
setExecutorServicepublic void setExecutorService(java.util.concurrent.ExecutorService executorService) - Specified by:
- setExecutorServicein interface- IProtocol<INFRA_STRUCTURE>
 
 - 
getBufferProviderpublic IBufferProvider getBufferProvider() - Specified by:
- getBufferProviderin interface- IProtocol<INFRA_STRUCTURE>
 
 - 
getInfraStructurepublic INFRA_STRUCTURE getInfraStructure() - Specified by:
- getInfraStructurein interface- IProtocol<INFRA_STRUCTURE>
 
 - 
setInfraStructurepublic void setInfraStructure(INFRA_STRUCTURE infraStructure) - Specified by:
- setInfraStructurein interface- IProtocol<INFRA_STRUCTURE>
 
 - 
getLocationpublic ILocationAware.Location getLocation() Description copied from interface:ILocationAware- Specified by:
- getLocationin interface- ILocationAware
- Since:
- 2.0
 
 - 
isClientpublic boolean isClient() Description copied from interface:ILocationAware- Specified by:
- isClientin interface- ILocationAware
- Since:
- 2.0
 
 - 
isServerpublic boolean isServer() Description copied from interface:ILocationAware- Specified by:
- isServerin interface- ILocationAware
- Since:
- 2.0
 
 - 
getChannelpublic IChannel getChannel() - Specified by:
- getChannelin interface- IProtocol<INFRA_STRUCTURE>
 
 - 
setChannelpublic void setChannel(IChannel newChannel) - Specified by:
- setChannelin interface- IProtocol<INFRA_STRUCTURE>
 
 - 
getUserIDpublic java.lang.String getUserID() - Specified by:
- getUserIDin interface- org.eclipse.net4j.util.security.IUserAware
 
 - 
setUserIDprotected void setUserID(java.lang.String userID) 
 - 
handleChannelDeactivationprotected void handleChannelDeactivation() - Since:
- 2.0
 
 - 
doBeforeActivateprotected void doBeforeActivate() throws java.lang.Exception- Overrides:
- doBeforeActivatein class- org.eclipse.net4j.util.lifecycle.Lifecycle
- Throws:
- java.lang.Exception
 
 - 
doDeactivateprotected void doDeactivate() throws java.lang.Exception- Overrides:
- doDeactivatein class- org.eclipse.net4j.util.lifecycle.Lifecycle
- Throws:
- java.lang.Exception
 
 
- 
 
-