|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Directory edu.uwf.kaos.coabsgrid.KAoSDirectory
public class KAoSDirectory
Wraps returned AgentReps in KAosWrappedAgentReps. $Revision: 1.1.1.1 $
Constructor Summary | |
---|---|
KAoSDirectory()
|
|
KAoSDirectory(KAoSGridHelper kgh)
|
Method Summary | |
---|---|
ServiceItem[] |
forwardMsgToGroup(ServiceTemplate tmpl,
Message msg)
Forwards a message to a group of recepients that match the template parameter. |
ServiceItem[] |
forwardMsgToGroup(ServiceTemplate tmpl,
ServiceItemFilter filter,
Message msg)
Forwards a message to a group of recepients that match the template parameter. |
ServiceItem[] |
lookup(LookupInterface lu,
ServiceTemplate tmpl)
Method that allows a Grid developer to substitute his own lookup algorithm. |
ServiceItem[] |
lookup(ServiceTemplate tmpl)
Pass through to Jini ServiceDiscoveryManager.lookup(). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KAoSDirectory() throws java.io.IOException
java.io.IOException
public KAoSDirectory(KAoSGridHelper kgh) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public ServiceItem[] lookup(ServiceTemplate tmpl) throws java.rmi.RemoteException
tmpl
- The ServiceTemplate to match. Pass in null to get all
services.
java.rmi.RemoteException
- If there is a problem doing the lookup
with the Jini LUS.
java.lang.IllegalStateException
- if the object has been terminatedpublic ServiceItem[] lookup(LookupInterface lu, ServiceTemplate tmpl) throws java.rmi.RemoteException
lu
- The lookup algorithm provided by the grid developer.tmpl
- The template to match.
java.rmi.RemoteException
- If there is a problem doing the lookup
with the Jini LUS.
java.lang.IllegalStateException
- if the object has been terminatedpublic ServiceItem[] forwardMsgToGroup(ServiceTemplate tmpl, ServiceItemFilter filter, Message msg) throws java.rmi.RemoteException
tmpl
- A Jini ServiceTemplate which lets you match on attributes,
service type, or ServiceID. Null matches everything.filter
- The ServiceItemFilter to apply to filter the results
returned. Null means do no filtering.msg
- The message to be delivered.
java.rmi.RemoteException
- If there is a problem looking up matching
AgentReps
java.lang.IllegalStateException
- if the object has been terminatedpublic ServiceItem[] forwardMsgToGroup(ServiceTemplate tmpl, Message msg) throws java.rmi.RemoteException
tmpl
- A Jini ServiceTemplate which lets you match on attributes,
service type, or ServiceID. Null matches everything.msg
- The message to be delivered.
java.rmi.RemoteException
- If there is a problem looking up matching
AgentReps.
java.lang.IllegalStateException
- if the object has been terminated
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |