public abstract class Module
extends java.lang.Object
implements org.da.protoframework.com.netty.ProtocolListener
Modifier and Type | Field and Description |
---|---|
protected Application |
appli
The Application definition.
|
protected java.lang.reflect.Method |
attachMethod
The Module attach method.
|
protected ModuleDefinition |
def
The Module definition.
|
protected java.lang.reflect.Method |
endMethod
The Module end method.
|
protected java.lang.reflect.Method |
finishInvokeMethod
The Module finishInvoke method.
|
protected java.lang.reflect.Method |
initMethod
The Module init method.
|
protected java.lang.reflect.Method |
preConfigureMethod
The Module preConfigure method.
|
protected java.util.Map<NamespaceKey,ServiceInstance<?,?>> |
providerServices
The Maps of provider Services.
|
protected java.lang.reflect.Method |
receiveMethod
The Module receive method.
|
protected java.lang.reflect.Method |
sendMethod
The Module send method.
|
protected int |
startDelay
The Module start delay in ms.
|
protected java.lang.reflect.Method |
startMethod
The Module start method.
|
protected java.util.Map<NamespaceKey,ServiceInstance<?,?>> |
subscriberServices
The Maps of subscriber Services.
|
protected java.lang.reflect.Method |
triggerMethod
The Module trigger method.
|
Constructor and Description |
---|
Module(Application appli,
java.lang.String name)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addPropertyType(java.lang.String key,
java.lang.Class<?> type,
java.lang.String defaultValue,
boolean isMandatory)
Add a new property type.
|
boolean |
addPropertyType(java.lang.String key,
java.lang.Class<?> type,
java.lang.String defaultValue,
boolean isMandatory,
boolean inArray)
Add a new property type.
|
boolean |
addPropertyType(java.lang.String key,
java.lang.Class<?> type,
java.lang.String defaultValue,
short unit,
boolean isMandatory)
Add a new property type.
|
boolean |
addPropertyType(java.lang.String key,
java.lang.Class<?> type,
java.lang.String defaultValue,
short unit,
boolean isMandatory,
boolean inArray)
Add a new property type.
|
void |
complete(org.da.protoframework.com.netty.Protocol protocol,
boolean doStart)
Called when the Protocol setUp has completed.
|
abstract void |
create()
Create the Module instance.
|
Application |
getApplication()
Return the parent Application.
|
long |
getApplicationID()
Return the application ID.
|
protected java.lang.reflect.Method |
getAttachMethod(java.lang.String methodName)
Return the Method with a specified name and the ServiceInstance and a message type character as argument.
|
java.lang.ClassLoader |
getClassLoader()
Return the ClassLoader used for the Module.
|
ModuleDefinition |
getDefinition()
Return the Module definition.
|
long |
getElapsedTime(long currentTime)
Return the elapsed time since the start of the framework.
|
java.util.concurrent.ExecutorService |
getExecutorService()
Return the ExecutorService.
|
long |
getID()
Return the module ID.
|
protected java.lang.reflect.Method |
getInitPreConfMethod(java.lang.String methodName)
Return the Method with a specified name and the Module as argument.
|
protected java.lang.reflect.Method |
getMethod(java.lang.String methodName)
Return the Method with a specified name and the ServiceInstance as argument.
|
protected java.lang.reflect.Method |
getMethodImpl(java.lang.String entryPoint,
java.lang.Class<?>[] args)
Return a method with a specified name and arguments.
|
protected abstract java.lang.Class<?> |
getModuleClass()
Return the Module class.
|
ModuleIDKey |
getModuleIDKey()
Return this Module ID key.
|
abstract java.lang.Object |
getModuleInstance()
Return the Module instance.
|
ModuleKey |
getModuleKey()
Return this Module key.
|
java.lang.String |
getName()
Return the module name.
|
org.da.protoframework.model.def.NamedProperty |
getNamedProperty(java.lang.String key)
Return a named property.
|
java.lang.String |
getNotNullPropertyStringValue(java.lang.String key)
Return the value of a property as a String.
|
org.da.protoframework.model.def.PropertyArray |
getPropertyArray(java.lang.String key)
Return a property array.
|
java.util.List<java.lang.Object> |
getPropertyArrayValue(java.lang.String key)
Return the value of a property as an array.
|
java.util.List<java.lang.Boolean> |
getPropertyBooleanArrayValue(java.lang.String key)
Return the value of a property as a boolean array.
|
boolean |
getPropertyBooleanValue(java.lang.String key)
Return the value of a property as a boolean.
|
java.util.List<java.time.Duration> |
getPropertyDurationArrayValue(java.lang.String key)
Return the value of a property as a Duration array.
|
java.time.Duration |
getPropertyDurationValue(java.lang.String key)
Return the value of a property as a Duration.
|
java.util.List<java.io.File> |
getPropertyFileArrayValue(java.lang.String key)
Return the value of a property as a File array.
|
java.io.File |
getPropertyFileValue(java.lang.String key)
Return the value of a property as a File.
|
java.util.List<java.lang.Float> |
getPropertyFloatArrayValue(java.lang.String key)
Return the value of a property as a float array.
|
float |
getPropertyFloatValue(java.lang.String key)
Return the value of a property as a float.
|
float |
getPropertyFloatValue(java.lang.String key,
short unit)
Return the value of a property as a float.
|
java.util.List<java.lang.Integer> |
getPropertyIntArrayValue(java.lang.String key)
Return the value of a property as an int array.
|
int |
getPropertyIntValue(java.lang.String key)
Return the value of a property as an int.
|
int |
getPropertyIntValue(java.lang.String key,
short unit)
Return the value of a property as an int.
|
java.util.Map<java.lang.String,java.lang.String> |
getPropertyMapValue(java.lang.String key)
Return the value of a property as a Map.
|
ScreenPosition |
getPropertyPositionValue(java.lang.String key)
Return the value of a property as a ScreenPosition.
|
java.util.List<java.lang.String> |
getPropertyStringArrayValue(java.lang.String key)
Return the value of a property as a String array.
|
java.lang.String |
getPropertyStringValue(java.lang.String key)
Return the value of a property as a String.
|
java.net.URI |
getPropertyURIValue(java.lang.String key)
Return the value of a property as an URI.
|
java.net.URI |
getPropertyURIValue(java.lang.String key,
boolean exists)
Return the value of a property as an URI.
|
java.util.List<java.net.URL> |
getPropertyURLArrayValue(java.lang.String key)
Return the value of a property as an URL array.
|
java.util.List<java.net.URL> |
getPropertyURLArrayValue(java.lang.String key,
boolean exists)
Return the value of a property as an URL array.
|
java.net.URL |
getPropertyURLValue(java.lang.String key)
Return the value of a property as an URL.
|
java.net.URL |
getPropertyURLValue(java.lang.String key,
boolean exists)
Return the value of a property as an URL.
|
java.lang.Object |
getPropertyValue(java.lang.String key)
Return the value of a property.
|
ServiceInstance<?,?> |
getProviderService(long id)
Return the Service provider instance with a specified ID.
|
ServiceInstance<?,?> |
getProviderService(NamespaceKey key)
Return the Service provider instance with a specified key.
|
ServiceInstance<?,?> |
getProviderService(java.lang.String name)
Return the Service provider instance with a specified name.
|
ServiceInstance<?,?> |
getProviderService(java.lang.String uri,
java.lang.String name)
Return true if there is a Service provider instance with a specified key.
|
java.util.Map<NamespaceKey,ServiceInstance<?,?>> |
getProviderServices()
Return the provider Services instances.
|
protected java.lang.reflect.Method |
getReceiveMethod(ServiceInstance<?,?> service)
Return the Method used for the notification of a Service.
|
ServiceInstance<?,?> |
getService(long id)
Return the Service instance with a specified ID.
|
ServiceInstance<?,?> |
getService(NamespaceKey key)
Return the Service instance with a specified key.
|
ServiceInstance<?,?> |
getService(NamespaceKey key,
boolean isSilent)
Return the Service instance with a specified key.
|
ServiceInstance<?,?> |
getService(java.lang.String name)
Return the Service instance with a specified name.
|
ServiceInstance<?,?> |
getService(java.lang.String name,
boolean isSilent)
Return the Service instance with a specified name.
|
ServiceInstance<?,?> |
getService(java.lang.String uri,
java.lang.String name)
Return the Service instance with a specified key.
|
ServiceInstance<?,?> |
getService(java.lang.String uri,
java.lang.String name,
boolean isSilent)
Return the Service instance with a specified key.
|
ServiceDefinition |
getServiceDefinition(NamespaceKey key)
Return the Service definition with a specified key.
|
ServiceDefinition |
getServiceDefinition(java.lang.String name)
Return the Service definition with a specified name.
|
ServiceDefinition |
getServiceDefinition(java.lang.String name,
boolean isSilent)
Return the Service definition with a specified name.
|
ServiceDefinition |
getServiceDefinition(java.lang.String uri,
java.lang.String name)
Return the Service definition with a specified key.
|
java.util.Map<NamespaceKey,ServiceInstance<?,?>> |
getServices()
Return the Services instances.
|
protected java.lang.reflect.Method |
getStartEndMethod(java.lang.String methodName)
Return the Method with a specified name and no argument.
|
long |
getStartTimeStamp()
Return the time stamp at the start of the framework.
|
ServiceInstance<?,?> |
getSubscriberService(long id)
Return the Service subscriber instance with a specified ID.
|
ServiceInstance<?,?> |
getSubscriberService(NamespaceKey key)
Return the Service subscriber instance with a specified key.
|
ServiceInstance<?,?> |
getSubscriberService(java.lang.String name)
Return the Service subscriber instance with a specified name.
|
ServiceInstance<?,?> |
getSubscriberService(java.lang.String uri,
java.lang.String name)
Return true if there is a Service subscriber instance with a specified key.
|
java.util.Map<NamespaceKey,ServiceInstance<?,?>> |
getSubscriberServices()
Return the subscriber Services instances.
|
java.util.Timer |
getTimer()
Return the general modules Timer.
|
protected java.lang.reflect.Method |
getTwoArgsMethod(java.lang.String methodName)
Return the Method with a specified name and two ServiceInstance as argument.
|
Type |
getType(NamespaceKey key)
Return the type of a specified key.
|
Type |
getType(java.lang.String name)
Return the type of a specified name.
|
Type |
getType(java.lang.String uri,
java.lang.String name)
Return the type of a specified key.
|
int |
getUpdateCap()
Return the update cap value in ms.
|
boolean |
hasAllUpdateCap()
Return true if the Module has an update cap for all output services.
|
protected boolean |
hasCyclicTasks()
Return true if there are cyclic tasks.
|
boolean |
hasDefinedProperty(java.lang.String key)
Return true if there is a property for a specified key.
|
boolean |
hasProviderService(long id)
Return true if there is a Service provider instance with a specified ID.
|
boolean |
hasProviderService(NamespaceKey key)
Return true if there is a Service provider instance with a specified key.
|
boolean |
hasProviderService(java.lang.String name)
Return true if there is a Service provider instance with a specified name.
|
boolean |
hasPublishUpdateCap()
Return true if the Module has an update cap for publish output services.
|
boolean |
hasService(long id)
Return true if there is a Service instance with a specified ID.
|
boolean |
hasService(NamespaceKey key)
Return true if there is a Service instance with a specified key.
|
boolean |
hasService(java.lang.String name)
Return true if there is a Service instance with a specified name.
|
boolean |
hasService(java.lang.String uri,
java.lang.String name)
Return true if there is a Service instance with a specified key.
|
boolean |
hasSubscriberForService(NamespaceKey key)
Return true if there is at least one subscriber for a service.
|
boolean |
hasSubscriberService(long id)
Return true if there is a Service subscriber instance with a specified ID.
|
boolean |
hasSubscriberService(NamespaceKey key)
Return true if there is a Service subscriber instance with a specified key.
|
boolean |
hasSubscriberService(java.lang.String name)
Return true if there is a Service subscriber instance with a specified name.
|
boolean |
hasSubscriberService(java.lang.String uri,
java.lang.String name)
Return true if there is a Service subscriber instance with a specified key.
|
void |
init()
Initialize the Module.
|
boolean |
isEnabled()
Return if the module is enabled.
|
boolean |
isInstance()
Return true if the module is an instance of a template module.
|
boolean |
isMaster()
Return true if the module is a master module.
|
boolean |
isPreStarted()
Return true if the Module is pre-started.
|
boolean |
isReified()
Return true if the Module is instanciated (reified).
|
boolean |
isStarted()
Return true if the Module is started.
|
void |
lockInvoke()
Lock the invocation of the Services on the Module.
|
void |
preConfigure()
Pre-configure the Module.
|
static void |
purge()
Purge the currently active list of tasks in the cyclic timers.
|
protected void |
receiveImpl(ServiceInstance<?,?> service)
Invoke the Method used for the notification of a Service.
|
void |
schedule(java.util.TimerTask task,
long delay)
Schedules the specified task for execution after the specified delay.
|
void |
schedule(java.util.TimerTask task,
long delay,
long period)
Schedules the specified task for repeated fixed-delay execution, beginning after the specified delay.
|
boolean |
setEnabled(ModuleIDKey key,
boolean enable)
Enable or disable a module.
|
boolean |
setEnabled(ModuleKey key,
boolean enable)
Enable or disable a module.
|
void |
setExecutorService(java.util.concurrent.ExecutorService exeService)
Set the ExecutorService.
|
void |
setUp()
Setup the Module.
|
protected void |
setupServices()
Setup the Module Services.
|
void |
shutdown()
Shutdown the module.
|
void |
start()
Start the Module.
|
protected void |
startCustomTasks()
Start custom code tasks when starting the Module.
|
java.lang.String |
toString() |
protected final ModuleDefinition def
protected final Application appli
protected java.lang.reflect.Method preConfigureMethod
protected java.lang.reflect.Method initMethod
protected java.lang.reflect.Method startMethod
protected int startDelay
protected java.lang.reflect.Method finishInvokeMethod
protected java.lang.reflect.Method receiveMethod
protected java.lang.reflect.Method attachMethod
protected java.lang.reflect.Method sendMethod
protected java.lang.reflect.Method triggerMethod
protected java.lang.reflect.Method endMethod
protected final java.util.Map<NamespaceKey,ServiceInstance<?,?>> providerServices
protected final java.util.Map<NamespaceKey,ServiceInstance<?,?>> subscriberServices
public Module(Application appli, java.lang.String name)
appli
- the parent Applicationname
- the Module namepublic boolean isMaster()
public boolean setEnabled(ModuleKey key, boolean enable)
key
- the key of the module to enable or disableenable
- true to enable to module, false to disable itpublic boolean setEnabled(ModuleIDKey key, boolean enable)
key
- the key of the module to enable or disableenable
- true to enable to module, false to disable itpublic boolean isEnabled()
public boolean isInstance()
public static void purge()
public boolean addPropertyType(java.lang.String key, java.lang.Class<?> type, java.lang.String defaultValue, boolean isMandatory)
key
- the property keytype
- the property typedefaultValue
- the property default valueisMandatory
- true if the property is mandatorypublic boolean addPropertyType(java.lang.String key, java.lang.Class<?> type, java.lang.String defaultValue, boolean isMandatory, boolean inArray)
key
- the property keytype
- the property typedefaultValue
- the property default valueisMandatory
- true if the property is mandatoryinArray
- true if the property is in in arraypublic boolean addPropertyType(java.lang.String key, java.lang.Class<?> type, java.lang.String defaultValue, short unit, boolean isMandatory)
key
- the property keytype
- the property typedefaultValue
- the property default valueunit
- the property unitisMandatory
- true if the property is mandatorypublic boolean addPropertyType(java.lang.String key, java.lang.Class<?> type, java.lang.String defaultValue, short unit, boolean isMandatory, boolean inArray)
key
- the property keytype
- the property typedefaultValue
- the property default valueunit
- the property unitisMandatory
- true if the property is mandatoryinArray
- true if the property is in in arraypublic ModuleKey getModuleKey()
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Timer getTimer()
public void schedule(java.util.TimerTask task, long delay)
task
- task to be scheduled.delay
- delay in milliseconds before task is to be executed.public void schedule(java.util.TimerTask task, long delay, long period)
task
- task to be scheduled.delay
- delay in milliseconds before task is to be executed.period
- time in milliseconds between successive task executions.public void setExecutorService(java.util.concurrent.ExecutorService exeService)
exeService
- the ExecutorServicepublic java.util.concurrent.ExecutorService getExecutorService()
public boolean isReified()
Application.isReified()
.public java.lang.String getName()
public long getID()
public long getApplicationID()
public Application getApplication()
public java.util.Map<NamespaceKey,ServiceInstance<?,?>> getProviderServices()
public java.util.Map<NamespaceKey,ServiceInstance<?,?>> getSubscriberServices()
public java.util.Map<NamespaceKey,ServiceInstance<?,?>> getServices()
public Type getType(java.lang.String name)
name
- the type namepublic Type getType(NamespaceKey key)
key
- the type keypublic Type getType(java.lang.String uri, java.lang.String name)
uri
- the service namespace uri as a String keyname
- the service namepublic boolean hasProviderService(java.lang.String name)
name
- the Service namepublic boolean hasProviderService(NamespaceKey key)
key
- the Service keypublic ServiceInstance<?,?> getProviderService(java.lang.String name)
name
- the Service namepublic ServiceInstance<?,?> getProviderService(NamespaceKey key)
key
- the Service keypublic ServiceInstance<?,?> getProviderService(java.lang.String uri, java.lang.String name)
uri
- the service namespace uri as a String keyname
- the service namepublic boolean hasProviderService(long id)
id
- the Service IDpublic ServiceInstance<?,?> getProviderService(long id)
id
- the Service IDpublic boolean hasSubscriberService(java.lang.String name)
name
- the Service namepublic boolean hasSubscriberService(NamespaceKey key)
key
- the Service keypublic boolean hasSubscriberService(java.lang.String uri, java.lang.String name)
uri
- the service namespace uri as a String keyname
- the service namepublic boolean hasService(java.lang.String name)
name
- the Service namepublic boolean hasSubscriberForService(NamespaceKey key)
key
- the service keypublic boolean hasService(NamespaceKey key)
key
- the Service keypublic boolean hasService(java.lang.String uri, java.lang.String name)
uri
- the service namespace uri as a String keyname
- the service namepublic ServiceInstance<?,?> getSubscriberService(java.lang.String name)
name
- the Service namepublic ServiceInstance<?,?> getSubscriberService(NamespaceKey key)
key
- the Service keypublic ServiceInstance<?,?> getSubscriberService(java.lang.String uri, java.lang.String name)
uri
- the service namespace uri as a String keyname
- the service namepublic ServiceInstance<?,?> getService(NamespaceKey key)
key
- the Service keypublic ServiceDefinition getServiceDefinition(NamespaceKey key)
key
- the service keypublic ServiceDefinition getServiceDefinition(java.lang.String uri, java.lang.String name)
uri
- the service namespace uri as a String keyname
- the service namepublic ServiceDefinition getServiceDefinition(java.lang.String name)
name
- the service namepublic ServiceDefinition getServiceDefinition(java.lang.String name, boolean isSilent)
name
- the service nameisSilent
- true if no message should be logged if the service is not foundpublic ServiceInstance<?,?> getService(java.lang.String uri, java.lang.String name, boolean isSilent)
uri
- the service namespace uri as a String keyname
- the service nameisSilent
- true if no message should be logged if the service is not foundpublic ServiceInstance<?,?> getService(NamespaceKey key, boolean isSilent)
key
- the service namespace eyisSilent
- true if no message should be logged if the service is not foundpublic ServiceInstance<?,?> getService(java.lang.String uri, java.lang.String name)
uri
- the service namespace uri as a String keyname
- the service namepublic ServiceInstance<?,?> getService(java.lang.String name, boolean isSilent)
name
- the Service nameisSilent
- true if no message should be logged if the service is not foundpublic ServiceInstance<?,?> getService(java.lang.String name)
name
- the Service namepublic boolean hasSubscriberService(long id)
id
- the Service IDpublic boolean hasService(long id)
id
- the Service IDpublic ServiceInstance<?,?> getSubscriberService(long id)
id
- the Service IDpublic ServiceInstance<?,?> getService(long id)
id
- the Service IDpublic ModuleDefinition getDefinition()
public long getStartTimeStamp()
public long getElapsedTime(long currentTime)
currentTime
- the current timepublic java.lang.Object getPropertyValue(java.lang.String key)
key
- the property keypublic org.da.protoframework.model.def.NamedProperty getNamedProperty(java.lang.String key)
key
- the property keypublic org.da.protoframework.model.def.PropertyArray getPropertyArray(java.lang.String key)
key
- the property keypublic boolean hasPublishUpdateCap()
public boolean hasAllUpdateCap()
public int getUpdateCap()
public boolean hasDefinedProperty(java.lang.String key)
key
- the the property keypublic int getPropertyIntValue(java.lang.String key)
key
- the property keypublic int getPropertyIntValue(java.lang.String key, short unit)
key
- the property keyunit
- the unitpublic java.util.List<java.lang.Integer> getPropertyIntArrayValue(java.lang.String key)
key
- the property keypublic boolean getPropertyBooleanValue(java.lang.String key)
key
- the property keypublic java.util.List<java.lang.Boolean> getPropertyBooleanArrayValue(java.lang.String key)
key
- the property keypublic float getPropertyFloatValue(java.lang.String key)
key
- the property keypublic float getPropertyFloatValue(java.lang.String key, short unit)
key
- the property keyunit
- the unitpublic java.util.List<java.lang.Float> getPropertyFloatArrayValue(java.lang.String key)
key
- the property keypublic java.lang.String getNotNullPropertyStringValue(java.lang.String key)
key
- the property keypublic java.lang.String getPropertyStringValue(java.lang.String key)
key
- the property keypublic java.util.List<java.lang.String> getPropertyStringArrayValue(java.lang.String key)
key
- the property keypublic java.util.List<java.lang.Object> getPropertyArrayValue(java.lang.String key)
key
- the property keypublic java.net.URL getPropertyURLValue(java.lang.String key)
key
- the property keypublic java.net.URL getPropertyURLValue(java.lang.String key, boolean exists)
key
- the property keyexists
- true if the URL must existpublic java.net.URI getPropertyURIValue(java.lang.String key)
key
- the property keypublic java.net.URI getPropertyURIValue(java.lang.String key, boolean exists)
key
- the property keyexists
- true if the URL must existpublic java.util.List<java.net.URL> getPropertyURLArrayValue(java.lang.String key)
key
- the property keypublic java.util.List<java.net.URL> getPropertyURLArrayValue(java.lang.String key, boolean exists)
key
- the property keyexists
- true if the URLs will be put in the list only if they existpublic java.io.File getPropertyFileValue(java.lang.String key)
key
- the property keypublic java.util.List<java.io.File> getPropertyFileArrayValue(java.lang.String key)
key
- the property keypublic java.time.Duration getPropertyDurationValue(java.lang.String key)
key
- the property keypublic java.util.List<java.time.Duration> getPropertyDurationArrayValue(java.lang.String key)
key
- the property keypublic ScreenPosition getPropertyPositionValue(java.lang.String key)
key
- the property keypublic java.util.Map<java.lang.String,java.lang.String> getPropertyMapValue(java.lang.String key)
key
- the property keypublic boolean isPreStarted()
public boolean isStarted()
protected abstract java.lang.Class<?> getModuleClass()
public abstract java.lang.Object getModuleInstance()
public java.lang.ClassLoader getClassLoader()
public ModuleIDKey getModuleIDKey()
protected void setupServices()
public abstract void create() throws FrameworkException
FrameworkException
public void preConfigure() throws FrameworkException
ModuleDefinition.getPreConfigureEntryPoint()
)FrameworkException
public void init() throws FrameworkException
ModuleDefinition.getInitEntryPoint()
)FrameworkException
public void setUp()
public void complete(org.da.protoframework.com.netty.Protocol protocol, boolean doStart)
complete
in interface org.da.protoframework.com.netty.ProtocolListener
protocol
- the ProtocoldoStart
- true if the "start" method must be called immediatelyprotected boolean hasCyclicTasks()
public void start() throws FrameworkException
ModuleDefinition.getStartEntryPoint()
)FrameworkException
public void shutdown() throws FrameworkException
ModuleDefinition.getEndEntryPoint()
)FrameworkException
protected java.lang.reflect.Method getInitPreConfMethod(java.lang.String methodName) throws org.da.protoframework.model.core.EntryPointNotFoundException
methodName
- the Method nameEntryPointNotFoundException
- if the Method does not existprotected java.lang.reflect.Method getStartEndMethod(java.lang.String methodName) throws org.da.protoframework.model.core.EntryPointNotFoundException
methodName
- the Method nameEntryPointNotFoundException
- if the Method does not existprotected java.lang.reflect.Method getAttachMethod(java.lang.String methodName) throws org.da.protoframework.model.core.EntryPointNotFoundException
methodName
- the Method nameEntryPointNotFoundException
- if the Method does not existprotected java.lang.reflect.Method getMethod(java.lang.String methodName) throws org.da.protoframework.model.core.EntryPointNotFoundException
methodName
- the Method nameEntryPointNotFoundException
- if the Method does not existprotected java.lang.reflect.Method getTwoArgsMethod(java.lang.String methodName) throws org.da.protoframework.model.core.EntryPointNotFoundException
methodName
- the Method nameEntryPointNotFoundException
- if the Method does not existprotected java.lang.reflect.Method getReceiveMethod(ServiceInstance<?,?> service)
service
- the Serviceprotected void receiveImpl(ServiceInstance<?,?> service)
service
- the Serviceprotected java.lang.reflect.Method getMethodImpl(java.lang.String entryPoint, java.lang.Class<?>[] args) throws java.lang.NoSuchMethodException
entryPoint
- the method nameargs
- the method argumentsjava.lang.NoSuchMethodException
- if the Method was not foundprotected void startCustomTasks()
public void lockInvoke()
Copyright ©2017-2023 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence