|
ADK CVS | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objecttryllian.afc.task.AbstractTask
tryllian.afc.task.DefaultTask
tryllian.afc.task.interaction.SendAndReceiveTask
tryllian.afc.task.interaction.QueryTask
tryllian.afc.task.find.JNDIResolveTask
Resolves a jndi context-name as if a call to Context.listBindings() was done by asking it locally to a (remote) habitat system agent. The result is always returned as a List. The type depends on the getter method used to retrieve the results.
getResult() returns the results uninterpreted.
getAgentAddresses() returns agent addresses, which
are of type AddressURI.
getContextNames() returns the bindings as Strings.
NOTE: only the bound objects are returned, not their names.
tryllian.are.fipa.constants.LanguageConstants#JNDI_RESOLVE,
SendAndReceiveTask.getResult(),
Serialized Form| Field Summary |
| Fields inherited from class tryllian.afc.task.AbstractTask |
NL |
| Fields inherited from interface tryllian.afc.task.Task |
EMPTY_FINISH_VALUE, FORCED_FINISH_FAILURE, NO_TIME_OUT, TASK_TIMED_OUT |
| Constructor Summary | |
JNDIResolveTask()
Default constructor sets subject, the contextName should be set before starting the task. |
|
| Method Summary | |
java.util.List |
getAgentAddresses()
Returns a list containing only the AddressURIes in the result list. |
java.lang.String |
getContextName()
Get the context name to be resolved. |
java.util.List |
getContextNames()
Return list with only contextnames (not agentaddresses) as strings. |
java.lang.String |
getHabitat()
Get the name of the habitat where to do the lookup. |
java.util.List |
getResult()
Get the result: a list of strings that represent the Objects of the bindings that are in the context. |
void |
setContextName(java.lang.String contextName)
Set the context name to be resolved. |
void |
setHabitat(java.lang.String habitatName)
Get the name of the habitat where to do the lookup. |
void |
taskStarted()
Sets arguments of the message, contextName should have been set before this method is called - that is, before the task is started. |
| Methods inherited from class tryllian.afc.task.interaction.SendAndReceiveTask |
getArguments, getConversation, getLanguage, getReceivePerformative, getReceiver, getSendPerformative, getSubject, handleMessage, processResult, setArguments, setLanguage, setReceivePerformative, setReceiver, setSendPerformative, setSubject |
| Methods inherited from class tryllian.afc.task.DefaultTask |
addFinishingTask, addTask, getSubtasks, handleHeartbeat, propagateHeartbeat |
| Methods inherited from class tryllian.afc.task.AbstractTask |
addTaskListener, fail, fail, finish, finish, finish, forceFinish, forceFinish, getAgentContext, getFinishValue, getState, getSupertask, getTimeOut, heartbeatReceived, logException, messageReceived, removeTaskListener, setAgentContext, setFinishValue, setTimeOut, succeed, succeed, taskAdded, taskEnded, taskRemoved |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JNDIResolveTask()
| Method Detail |
public void taskStarted()
taskStarted in class AbstractTaskpublic java.util.List getResult()
getResult in class SendAndReceiveTaskjava.lang.IllegalStateException - if the task did not succeed (yet).public java.util.List getAgentAddresses()
java.lang.IllegalStateException - if the task did not succeed (yet).public java.util.List getContextNames()
java.lang.IllegalStateException - if the task did not succeed (yet).public void setContextName(java.lang.String contextName)
contextName - the name of the context to be resolvedpublic java.lang.String getContextName()
public java.lang.String getHabitat()
public void setHabitat(java.lang.String habitatName)
|
Copyright 2005, Tryllian Solutions B.V. | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||