Class AbstractEnableableConfigurableController<M extends com.google.protobuf.AbstractMessage,MB extends com.google.protobuf.AbstractMessage.Builder<MB>,CONFIG extends com.google.protobuf.Message>
java.lang.Object
org.openbase.jul.communication.controller.AbstractControllerServer<M,MB>
org.openbase.jul.communication.controller.AbstractIdentifiableController<M,MB>
org.openbase.jul.communication.controller.AbstractConfigurableController<M,MB,CONFIG>
org.openbase.jul.communication.controller.AbstractEnableableConfigurableController<M,MB,CONFIG>
- Type Parameters:
M-MB-CONFIG-
- All Implemented Interfaces:
org.openbase.jul.extension.protobuf.iface.DataBuilderProvider<M,,MB> org.openbase.jul.extension.type.iface.ScopeProvider,org.openbase.jul.extension.type.iface.TransactionIdProvider,org.openbase.jul.iface.Activatable,org.openbase.jul.iface.Configurable<String,,CONFIG> org.openbase.jul.iface.Enableable,org.openbase.jul.iface.Identifiable<String>,org.openbase.jul.iface.Initializable<CONFIG>,org.openbase.jul.iface.Manageable<CONFIG>,org.openbase.jul.iface.Pingable,org.openbase.jul.iface.provider.ConfigProvider<CONFIG>,org.openbase.jul.iface.Readyable,org.openbase.jul.iface.Requestable<M>,org.openbase.jul.iface.Shutdownable,org.openbase.jul.pattern.ChangeListener,org.openbase.jul.pattern.controller.ConfigurableController<String,,M, CONFIG> org.openbase.jul.pattern.controller.Controller<M>,org.openbase.jul.pattern.controller.IdentifiableController<String,,M> org.openbase.jul.pattern.controller.MessageController<M,,MB> org.openbase.jul.pattern.provider.DataProvider<M>
public abstract class AbstractEnableableConfigurableController<M extends com.google.protobuf.AbstractMessage,MB extends com.google.protobuf.AbstractMessage.Builder<MB>,CONFIG extends com.google.protobuf.Message>
extends AbstractConfigurableController<M,MB,CONFIG>
implements org.openbase.jul.iface.Enableable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.openbase.jul.iface.Shutdownable
org.openbase.jul.iface.Shutdownable.ShutdownDaemon -
Field Summary
Fields inherited from class org.openbase.jul.communication.controller.AbstractConfigurableController
FIELD_SCOPEFields inherited from class org.openbase.jul.communication.controller.AbstractControllerServer
dataLock, logger, publisher, publisherWatchDog, RPC_REQUEST_STATUS, scope, SCOPE_ELEMENT_SUFFIX_CONTROL, SCOPE_ELEMENT_SUFFIX_STATUS, SCOPE_SUFFIX_CONTROL, SCOPE_SUFFIX_STATUS, server, serverWatchDogFields inherited from interface org.openbase.jul.iface.Identifiable
TYPE_FIELD_IDFields inherited from interface org.openbase.jul.extension.type.iface.TransactionIdProvider
TRANSACTION_ID_FIELD_NAME -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.openbase.jul.communication.controller.AbstractConfigurableController
applyConfigUpdate, getConfig, getConfigField, getConfigField, hasConfigField, init, supportsConfigFieldMethods inherited from class org.openbase.jul.communication.controller.AbstractIdentifiableController
getIdMethods inherited from class org.openbase.jul.communication.controller.AbstractControllerServer
activate, addDataObserver, cloneDataBuilder, deactivate, generateTransactionId, getBuilderSetup, getControllerAvailabilityState, getData, getDataBuilder, getDataBuilder, getDataBuilderInterruptible, getDataBuilderInterruptible, getDataClass, getDataField, getDataFieldDescriptor, getDataFuture, getManageLock, getManageReadLock, getManageReadLockInterruptible, getManageWriteLock, getManageWriteLockInterruptible, getScope, getShutdownDelay, getTransactionId, hasDataField, init, init, init, isActive, isDataAvailable, isDataBuilderWriteLockedByCurrentThread, isReady, isShutdownInProgress, notifyChange, notifyDataUpdate, ping, postInit, registerMethods, removeDataObserver, requestStatus, setDataField, setDataField, shutdown, supportsDataField, toString, updateDataToPublish, updateTransactionId, validateActivation, validateData, validateInitialization, validateMiddleware, waitForAvailabilityState, waitForData, waitForData, waitForMiddlewareMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.openbase.jul.iface.Activatable
activate, deactivate, isActiveMethods inherited from interface org.openbase.jul.pattern.controller.Controller
getControllerAvailabilityState, getData, getDataClass, notifyChange, waitForAvailabilityStateMethods inherited from interface org.openbase.jul.iface.Identifiable
getIdMethods inherited from interface org.openbase.jul.iface.Manageable
shutdownMethods inherited from interface org.openbase.jul.iface.Pingable
pingMethods inherited from interface org.openbase.jul.iface.Requestable
requestStatus
-
Constructor Details
-
AbstractEnableableConfigurableController
public AbstractEnableableConfigurableController(MB builder) throws org.openbase.jul.exception.InstantiationException - Throws:
org.openbase.jul.exception.InstantiationException
-
-
Method Details
-
enable
public void enable() throws org.openbase.jul.exception.CouldNotPerformException, InterruptedException- Specified by:
enablein interfaceorg.openbase.jul.iface.Enableable- Throws:
org.openbase.jul.exception.CouldNotPerformExceptionInterruptedException
-
disable
public void disable() throws org.openbase.jul.exception.CouldNotPerformException, InterruptedException- Specified by:
disablein interfaceorg.openbase.jul.iface.Enableable- Throws:
org.openbase.jul.exception.CouldNotPerformExceptionInterruptedException
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceorg.openbase.jul.iface.Enableable
-