com.ebmwebsourcing.easyviper.core.impl.engine
Class EngineImpl

Package class diagram package EngineImpl
java.lang.Object
  extended by com.ebmwebsourcing.easyviper.core.impl.engine.EngineImpl
All Implemented Interfaces:
com.ebmwebsourcing.easyviper.core.api.engine.Element, com.ebmwebsourcing.easyviper.core.api.engine.Engine, com.ebmwebsourcing.easyviper.core.api.engine.FractalComponent, java.io.Serializable

public class EngineImpl
extends java.lang.Object
implements com.ebmwebsourcing.easyviper.core.api.engine.Engine

Author:
Nicolas Salatge - eBM WebSourcing
See Also:
Serialized Form

Field Summary
protected  com.ebmwebsourcing.easyviper.core.api.env.ExternalEnvironment externalEnvironment
           
 
Constructor Summary
EngineImpl()
          Creates a new instance
 
Method Summary
 void accept(com.ebmwebsourcing.easyviper.core.api.soa.message.InternalMessage<?> internalMessage, com.ebmwebsourcing.easyviper.core.api.env.ExternalContext context)
           
 void create()
          Create the scope behaviour
 com.ebmwebsourcing.easyviper.core.api.engine.Process createNewEmptyProcessInstance(javax.xml.namespace.QName uniqueProcessName, com.ebmwebsourcing.easyviper.core.api.model.registry.definition.ProcessDefinition processDefinition)
           
 void deleteProcess(com.ebmwebsourcing.easyviper.core.api.engine.Process process)
           
 void destroy()
          Destroy the NodeImpl behaviour
 void flushMessagesInRegistry()
           
 java.lang.ClassLoader getClassLoader()
           
 org.objectweb.fractal.api.Component getComponent()
           
 com.ebmwebsourcing.easyviper.core.api.Core getCore()
           
 java.lang.Class getInternalMessageType()
           
 java.lang.String getName()
           
 com.ebmwebsourcing.easyviper.core.api.tools.PoolOfProcessForkers getPoolOfProcessForkers()
           
 com.ebmwebsourcing.easyviper.core.api.engine.registry.ProcessInstanceRegistry getProcessInstanceRegistry()
           
 com.ebmwebsourcing.easyviper.core.api.engine.thread.service.ServiceManager getServiceManager()
           
 void init(org.objectweb.fractal.api.Component fractalNode)
           
 com.ebmwebsourcing.easyviper.core.api.soa.message.InternalMessage<?> sendSyncTo(com.ebmwebsourcing.easyviper.core.api.soa.message.InternalMessage<?> request, com.ebmwebsourcing.easyviper.core.api.soa.Endpoint providerEndpoint, com.ebmwebsourcing.easyviper.core.api.env.ExternalContext context)
           
 void sendTo(com.ebmwebsourcing.easyviper.core.api.soa.message.InternalMessage<?> message, com.ebmwebsourcing.easyviper.core.api.soa.Endpoint providerEndpoint, com.ebmwebsourcing.easyviper.core.api.env.ExternalContext context)
           
 void setInternalMessageType(java.lang.Class clazz)
           
 void setLog(java.util.logging.Logger logger)
           
 void setName(java.lang.String name)
           
 void start()
          Start the NodeImpl behaviour
 void stop()
          Stop the NodeImpl behaviour
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

externalEnvironment

protected com.ebmwebsourcing.easyviper.core.api.env.ExternalEnvironment externalEnvironment
Constructor Detail

EngineImpl

public EngineImpl()
           throws com.ebmwebsourcing.easyviper.core.api.CoreException
Creates a new instance

Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException
Method Detail

getComponent

public org.objectweb.fractal.api.Component getComponent()
Specified by:
getComponent in interface com.ebmwebsourcing.easyviper.core.api.engine.FractalComponent

create

public void create()
            throws com.ebmwebsourcing.easyviper.core.api.CoreException
Create the scope behaviour

Specified by:
create in interface com.ebmwebsourcing.easyviper.core.api.engine.FractalComponent
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException

init

public void init(org.objectweb.fractal.api.Component fractalNode)
          throws com.ebmwebsourcing.easyviper.core.api.CoreException
Specified by:
init in interface com.ebmwebsourcing.easyviper.core.api.engine.FractalComponent
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException

start

public void start()
           throws com.ebmwebsourcing.easyviper.core.api.CoreException
Start the NodeImpl behaviour

Specified by:
start in interface com.ebmwebsourcing.easyviper.core.api.engine.FractalComponent
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException

stop

public void stop()
          throws com.ebmwebsourcing.easyviper.core.api.CoreException
Stop the NodeImpl behaviour

Specified by:
stop in interface com.ebmwebsourcing.easyviper.core.api.engine.FractalComponent
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException

destroy

public void destroy()
             throws com.ebmwebsourcing.easyviper.core.api.CoreException
Destroy the NodeImpl behaviour

Specified by:
destroy in interface com.ebmwebsourcing.easyviper.core.api.engine.FractalComponent
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException

getName

public java.lang.String getName()
                         throws com.ebmwebsourcing.easyviper.core.api.CoreException
Specified by:
getName in interface com.ebmwebsourcing.easyviper.core.api.engine.FractalComponent
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException

setName

public void setName(java.lang.String name)
             throws com.ebmwebsourcing.easyviper.core.api.CoreException
Specified by:
setName in interface com.ebmwebsourcing.easyviper.core.api.engine.FractalComponent
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException

createNewEmptyProcessInstance

public com.ebmwebsourcing.easyviper.core.api.engine.Process createNewEmptyProcessInstance(javax.xml.namespace.QName uniqueProcessName,
                                                                                          com.ebmwebsourcing.easyviper.core.api.model.registry.definition.ProcessDefinition processDefinition)
                                                                                   throws com.ebmwebsourcing.easyviper.core.api.CoreException
Specified by:
createNewEmptyProcessInstance in interface com.ebmwebsourcing.easyviper.core.api.engine.Engine
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException

accept

public void accept(com.ebmwebsourcing.easyviper.core.api.soa.message.InternalMessage<?> internalMessage,
                   com.ebmwebsourcing.easyviper.core.api.env.ExternalContext context)
            throws com.ebmwebsourcing.easyviper.core.api.CoreException
Specified by:
accept in interface com.ebmwebsourcing.easyviper.core.api.engine.Engine
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException

flushMessagesInRegistry

public void flushMessagesInRegistry()
                             throws com.ebmwebsourcing.easyviper.core.api.CoreException
Specified by:
flushMessagesInRegistry in interface com.ebmwebsourcing.easyviper.core.api.engine.Engine
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException

setInternalMessageType

public void setInternalMessageType(java.lang.Class clazz)
Specified by:
setInternalMessageType in interface com.ebmwebsourcing.easyviper.core.api.engine.Engine

getInternalMessageType

public java.lang.Class getInternalMessageType()
Specified by:
getInternalMessageType in interface com.ebmwebsourcing.easyviper.core.api.engine.Engine

sendTo

public void sendTo(com.ebmwebsourcing.easyviper.core.api.soa.message.InternalMessage<?> message,
                   com.ebmwebsourcing.easyviper.core.api.soa.Endpoint providerEndpoint,
                   com.ebmwebsourcing.easyviper.core.api.env.ExternalContext context)
            throws com.ebmwebsourcing.easyviper.core.api.CoreException
Specified by:
sendTo in interface com.ebmwebsourcing.easyviper.core.api.engine.Engine
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException

sendSyncTo

public com.ebmwebsourcing.easyviper.core.api.soa.message.InternalMessage<?> sendSyncTo(com.ebmwebsourcing.easyviper.core.api.soa.message.InternalMessage<?> request,
                                                                                       com.ebmwebsourcing.easyviper.core.api.soa.Endpoint providerEndpoint,
                                                                                       com.ebmwebsourcing.easyviper.core.api.env.ExternalContext context)
                                                                                throws com.ebmwebsourcing.easyviper.core.api.CoreException
Specified by:
sendSyncTo in interface com.ebmwebsourcing.easyviper.core.api.engine.Engine
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException

getProcessInstanceRegistry

public com.ebmwebsourcing.easyviper.core.api.engine.registry.ProcessInstanceRegistry getProcessInstanceRegistry()
Specified by:
getProcessInstanceRegistry in interface com.ebmwebsourcing.easyviper.core.api.engine.Engine

setLog

public void setLog(java.util.logging.Logger logger)
Specified by:
setLog in interface com.ebmwebsourcing.easyviper.core.api.engine.Element

deleteProcess

public void deleteProcess(com.ebmwebsourcing.easyviper.core.api.engine.Process process)
                   throws com.ebmwebsourcing.easyviper.core.api.CoreException
Specified by:
deleteProcess in interface com.ebmwebsourcing.easyviper.core.api.engine.Engine
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException

getCore

public com.ebmwebsourcing.easyviper.core.api.Core getCore()
                                                   throws com.ebmwebsourcing.easyviper.core.api.CoreException
Specified by:
getCore in interface com.ebmwebsourcing.easyviper.core.api.engine.Engine
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException

getServiceManager

public com.ebmwebsourcing.easyviper.core.api.engine.thread.service.ServiceManager getServiceManager()
Specified by:
getServiceManager in interface com.ebmwebsourcing.easyviper.core.api.engine.Engine

getClassLoader

public java.lang.ClassLoader getClassLoader()
Specified by:
getClassLoader in interface com.ebmwebsourcing.easyviper.core.api.engine.Engine

getPoolOfProcessForkers

public com.ebmwebsourcing.easyviper.core.api.tools.PoolOfProcessForkers getPoolOfProcessForkers()
Specified by:
getPoolOfProcessForkers in interface com.ebmwebsourcing.easyviper.core.api.engine.Engine


Copyright © 2009-2010 eBM WebSourcing. All Rights Reserved.