|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object AgentRegistrationHelper edu.uwf.kaos.coabsgrid.KAoSAgentRegistrationHelper
public final class KAoSAgentRegistrationHelper
Extends functionality of AgentRegistrationHelper by adding registration in a KAOS domain. $Revision: 1.12 $
Constructor Summary | |
---|---|
KAoSAgentRegistrationHelper(net.jini.discovery.LookupDiscoveryManager lookupDiscoveryManager,
java.lang.String agentName)
Constructor. |
|
KAoSAgentRegistrationHelper(java.lang.String agentName)
Constructor. |
|
KAoSAgentRegistrationHelper(java.lang.String agentName,
java.lang.String storePass,
java.lang.String keyPass)
Constructor. |
Method Summary | |
---|---|
void |
deregisterAgent()
Deregisters the service without sending a message. |
void |
deregisterAgent(AgentRep msgRecipient,
java.lang.String replyWith)
Deregisters the service and sends a status message. |
void |
deregisterAgent(java.lang.String replyWith)
Deregisters the GridAgent's AgentRep and sends it the status message. |
KAoSAgentDescription |
getAgentDescription()
|
Directory |
getDirectory()
Convenience method to return Directory from KAoSGridAgentHelper. |
boolean |
isRegistered()
This method should be called by the Grid agent requesting Grid/Domain registration. |
protected void |
printDebugString(java.lang.String msg)
Print debug messages - a utility method. |
void |
registerAgent()
Register agent in the LUS and then in the domain, whose name is specified in the KAoSAgentRegistrationHelper's property file. |
void |
registerAgent(AgentRep msgRecipient,
java.lang.String replyWith)
Registers the GridService service with its advertisedCapabilities. |
void |
registerAgent(java.lang.String replyWith)
Domain registration not implemented yet! ******* Agent version of registration method, where the result message is sent to the GridAgent's AgentRep. |
void |
registerAgentInDomains()
Register agent in a KAoS domain. |
protected void |
setRegistered(boolean aValue)
Set the 'registeredInDomain_' variable to true or false. |
void |
setTestMode(boolean testMode)
|
void |
updateRegistration()
Added to support mobility. |
void |
updateRegistration(AgentRep msgRecipient,
java.lang.String replyWith)
Added to support mobility. |
void |
updateRegistration(java.lang.String replyWith)
Added to support mobility. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KAoSAgentRegistrationHelper(java.lang.String agentName) throws java.io.IOException, java.lang.ClassNotFoundException
agentName
- the name of the GridAgentHelper to instantiate
java.io.IOException
- if there is a problem instantiating the
LookupDiscoveryManager
java.lang.ClassNotFoundException
public KAoSAgentRegistrationHelper(java.lang.String agentName, java.lang.String storePass, java.lang.String keyPass) throws java.io.IOException
agentName
- - the name of the agent to be registered with Grid and a KAoS domain
storePass - key store password
keyPass - key password
java.io.IOException
- if there is a problem instantiating the
LookupDiscoveryManagerpublic KAoSAgentRegistrationHelper(net.jini.discovery.LookupDiscoveryManager lookupDiscoveryManager, java.lang.String agentName) throws java.io.IOException
lookupDiscoveryManager
- - the LookupDiscoveryManager to find lookup services to register withagentName
- - the name of the agent to be registered with Grid and a KAoS domain
java.io.IOException
- if there is a problem instantiating the
LookupDiscoveryManagerMethod Detail |
---|
public void registerAgent() throws java.io.IOException
java.io.IOException
public void registerAgent(AgentRep msgRecipient, java.lang.String replyWith) throws java.io.IOException
msgRecipient
- An DefaultAgentRep to send a registration status
message to.replyWith
- A String to put in the replyWith field of the message.
java.io.IOException
- if there is a problem instantiating the JoinManger.
java.lang.IllegalStateException
- if the object has been terminatedpublic void registerAgent(java.lang.String replyWith) throws java.io.IOException
replyWith
- A String to put in the replyWith field of the message.
java.io.IOException
- if there is a problem instantiating the JoinManger.
java.lang.IllegalStateException
- if the object has been terminatedpublic void registerAgentInDomains()
public void setTestMode(boolean testMode)
public void updateRegistration() throws java.io.IOException
java.io.IOException
- if there is a problem with the JoinManger.
java.lang.IllegalStateException
- if the object has been terminatedpublic void updateRegistration(AgentRep msgRecipient, java.lang.String replyWith) throws java.io.IOException
msgRecipient
- An DefaultAgentRep to send a status message to.replyWith
- A String to put in the replyWith field of the message.
java.io.IOException
- if there is a problem with the JoinManger.
java.lang.IllegalStateException
- if the object has been terminatedpublic void updateRegistration(java.lang.String replyWith) throws java.io.IOException
replyWith
- A String to put in the replyWith field of the message.
java.io.IOException
- if there is a problem with the JoinManger.
java.lang.IllegalStateException
- if the object has been terminatedpublic void deregisterAgent(java.lang.String replyWith) throws java.io.IOException
replyWith
- A String to put in the replyWith field of the message.
java.lang.IllegalStateException
- if the object has been terminated
java.io.IOException
public void deregisterAgent()
java.lang.IllegalStateException
- if the object has been terminatedpublic void deregisterAgent(AgentRep msgRecipient, java.lang.String replyWith)
msgRecipient
- An DefaultAgentRep to send a status message to.replyWith
- A String to put in the replyWith field of the message.
java.rmi.RemoteException
- if there is a problem sending the reply
message.public KAoSAgentDescription getAgentDescription()
public Directory getDirectory()
java.lang.ClassCastException
- when the GridAgent isn't a GridAgentHelper
or when GridAgentHelper's logger isn't a MultiLogger
java.lang.IllegalStateException
- if the object has been terminatedprotected final void setRegistered(boolean aValue)
public boolean isRegistered()
protected void printDebugString(java.lang.String msg)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |