|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.isam.exehda.services.AbstractService | +--org.isam.exehda.services.primos.ExecutorImpl
Nested Class Summary |
Nested classes inherited from class org.isam.exehda.services.Executor |
Executor.MarshaledOX, Executor.Migrable, Executor.SchedulingHeuristic |
Field Summary |
Fields inherited from interface org.isam.exehda.services.Executor |
SERVICE_NAME |
Constructor Summary | |
ExecutorImpl()
|
Method Summary | |
void |
activateObject(Executor.MarshaledOX oxState)
Describe activateObject method here. |
ObjectSeed.ObjectHandle |
createObject(ApplicationId app,
java.lang.Class cls,
java.lang.Object[] params,
ObjectSeed.Activator a,
java.lang.Object hint)
Describe createObject method here. |
ApplicationId |
currentApplication()
Describe currentApplication method here. |
void |
deactivateObject(ObjectId ox,
Executor.MarshaledOX oxState)
Describe deactivateObject method here. |
void |
exitApplication()
Describe exitApplication method here. |
void |
moveObject(ObjectId ox,
java.lang.Object placementHint)
Describe moveObject method here. |
void |
runAction(ApplicationId aid,
java.lang.Runnable action)
Describe runAction method here. |
void |
setHeuristic(Executor.SchedulingHeuristic h)
This method is deprecated, avoid using it in new code. |
void |
start()
|
void |
startApplication(org.isam.util.xml.XmlElement launchDescriptor)
Describe startApplication method here.
|
void |
stop()
|
Methods inherited from class org.isam.exehda.services.AbstractService |
log, log, log, log, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ExecutorImpl()
Method Detail |
public void start() throws java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.net.UnknownHostException
start
in interface Service
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.net.UnknownHostException
public void stop() throws java.lang.Exception
stop
in interface Service
java.lang.Exception
public void startApplication(org.isam.util.xml.XmlElement launchDescriptor)
Executor
startApplication
method here.
TODO: change parameter type to String
startApplication
in interface Executor
launchDescriptor
- a XmlDocument
valuepublic ObjectSeed.ObjectHandle createObject(ApplicationId app, java.lang.Class cls, java.lang.Object[] params, ObjectSeed.Activator a, java.lang.Object hint)
Executor
createObject
method here.
createObject
in interface Executor
cls
- a Class
valueparams
- an Object[]
valuea
- an Activator
valuehint
- an Object
value
ObjectId
valuepublic void moveObject(ObjectId ox, java.lang.Object placementHint)
Executor
moveObject
method here.
moveObject
in interface Executor
ox
- an ObjectId
valueplacementHint
- an Object
valuepublic void deactivateObject(ObjectId ox, Executor.MarshaledOX oxState)
Executor
deactivateObject
method here.
deactivateObject
in interface Executor
ox
- an ObjectId
valueoxState
- a MarshaledOX
valuepublic void activateObject(Executor.MarshaledOX oxState)
Executor
activateObject
method here.
activateObject
in interface Executor
oxState
- a MarshaledOX
valuepublic void exitApplication()
Executor
exitApplication
method here.
exitApplication
in interface Executor
public void setHeuristic(Executor.SchedulingHeuristic h)
Executor
setHeuristic
in interface Executor
h
- a SchedulingHeuristic
valuepublic ApplicationId currentApplication()
Executor
currentApplication
method here.
currentApplication
in interface Executor
ApplicationId
valuepublic void runAction(ApplicationId aid, java.lang.Runnable action)
Executor
runAction
method here.
runAction
in interface Executor
aid
- an ApplicationId
valueaction
- a Runnable
value
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |