org.eclipse.net4j.protocol
Class Protocol

java.lang.Object
  extended by org.eclipse.net4j.util.event.Notifier
      extended by org.eclipse.net4j.util.lifecycle.Lifecycle
          extended by org.eclipse.net4j.protocol.Protocol
All Implemented Interfaces:
IBufferHandler, IProtocol, INotifier, INotifier.Introspection, ILifecycle, ILifecycle.Introspection
Direct Known Subclasses:
SignalProtocol

public abstract class Protocol
extends Lifecycle
implements IProtocol


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle
ILifecycle.Introspection
 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifier
INotifier.Introspection
 
Field Summary
 
Fields inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle
USE_LABEL
 
Constructor Summary
Protocol()
           
 
Method Summary
protected  void doBeforeActivate()
           
protected  void doDeactivate()
           
 IBufferProvider getBufferProvider()
           
 IChannel getChannel()
           
 java.util.concurrent.ExecutorService getExecutorService()
           
 java.lang.Object getInfraStructure()
           
 void setBufferProvider(IBufferProvider bufferProvider)
           
 void setChannel(IChannel channel)
           
 void setExecutorService(java.util.concurrent.ExecutorService executorService)
           
 void setInfraStructure(java.lang.Object infraStructure)
           
 
Methods inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, deferredDeactivate, doActivate, doBeforeDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, isDeferredDeactivation, toString
 
Methods inherited from class org.eclipse.net4j.util.event.Notifier
addListener, fireEvent, getListeners, hasListeners, 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.protocol.IProtocol
getType
 
Methods inherited from interface org.eclipse.net4j.buffer.IBufferHandler
handleBuffer
 

Constructor Detail

Protocol

public Protocol()
Method Detail

getChannel

public IChannel getChannel()
Specified by:
getChannel in interface IProtocol

setChannel

public void setChannel(IChannel channel)
Specified by:
setChannel in interface IProtocol

getBufferProvider

public IBufferProvider getBufferProvider()
Specified by:
getBufferProvider in interface IProtocol

setBufferProvider

public void setBufferProvider(IBufferProvider bufferProvider)
Specified by:
setBufferProvider in interface IProtocol

getExecutorService

public java.util.concurrent.ExecutorService getExecutorService()
Specified by:
getExecutorService in interface IProtocol

setExecutorService

public void setExecutorService(java.util.concurrent.ExecutorService executorService)
Specified by:
setExecutorService in interface IProtocol

getInfraStructure

public java.lang.Object getInfraStructure()
Specified by:
getInfraStructure in interface IProtocol

setInfraStructure

public void setInfraStructure(java.lang.Object infraStructure)
Specified by:
setInfraStructure in interface IProtocol

doBeforeActivate

protected void doBeforeActivate()
                         throws java.lang.Exception
Overrides:
doBeforeActivate in class Lifecycle
Throws:
java.lang.Exception

doDeactivate

protected void doDeactivate()
                     throws java.lang.Exception
Overrides:
doDeactivate in class Lifecycle
Throws:
java.lang.Exception

Copyright (c) 2004 - 2008 Eike Stepper, Germany.
All Rights Reserved.