public abstract class Protocol<INFRA_STRUCTURE> extends Lifecycle implements IProtocol2<INFRA_STRUCTURE>, IExecutorServiceProvider
ILocationAware.LocationILifecycle.DeferrableActivationUNSPECIFIED_VERSION| Constructor and Description |
|---|
Protocol(java.lang.String type) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doBeforeActivate() |
protected void |
doDeactivate() |
IBufferProvider |
getBufferProvider() |
IChannel |
getChannel() |
java.util.concurrent.ExecutorService |
getExecutorService() |
INFRA_STRUCTURE |
getInfraStructure() |
ILocationAware.Location |
getLocation()
|
java.lang.String |
getType() |
java.lang.String |
getUserID() |
int |
getVersion() |
protected void |
handleChannelDeactivation() |
boolean |
isClient()
|
boolean |
isServer()
|
void |
setChannel(IChannel newChannel) |
void |
setExecutorService(java.util.concurrent.ExecutorService executorService) |
void |
setInfraStructure(INFRA_STRUCTURE infraStructure) |
protected void |
setUserID(java.lang.String userID) |
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doActivate, doAfterActivate, doBeforeDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toStringaddListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListeners, lastListenerRemoved, removeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waithandleBufferaddListener, getListeners, hasListeners, removeListenerpublic final java.lang.String getType()
getType in interface IProtocol<INFRA_STRUCTURE>public int getVersion()
getVersion in interface IProtocol2<INFRA_STRUCTURE>public java.util.concurrent.ExecutorService getExecutorService()
getExecutorService in interface IProtocol<INFRA_STRUCTURE>getExecutorService in interface IExecutorServiceProviderpublic void setExecutorService(java.util.concurrent.ExecutorService executorService)
setExecutorService in interface IProtocol<INFRA_STRUCTURE>public IBufferProvider getBufferProvider()
getBufferProvider in interface IProtocol<INFRA_STRUCTURE>public INFRA_STRUCTURE getInfraStructure()
getInfraStructure in interface IProtocol<INFRA_STRUCTURE>public void setInfraStructure(INFRA_STRUCTURE infraStructure)
setInfraStructure in interface IProtocol<INFRA_STRUCTURE>public ILocationAware.Location getLocation()
ILocationAwaregetLocation in interface ILocationAwarepublic boolean isClient()
ILocationAwareisClient in interface ILocationAwarepublic boolean isServer()
ILocationAwareisServer in interface ILocationAwarepublic IChannel getChannel()
getChannel in interface IProtocol<INFRA_STRUCTURE>public void setChannel(IChannel newChannel)
setChannel in interface IProtocol<INFRA_STRUCTURE>public java.lang.String getUserID()
getUserID in interface IUserAwareprotected void setUserID(java.lang.String userID)
protected void handleChannelDeactivation()
protected void doBeforeActivate()
throws java.lang.Exception
doBeforeActivate in class Lifecyclejava.lang.Exceptionprotected void doDeactivate()
throws java.lang.Exception
doDeactivate in class Lifecyclejava.lang.ExceptionCopyright (c) 2004-2019 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html