|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
This class defines the base interface, or behavior, which all ABLE platform agents must support, especially if they are to be created and managed through Able's Agent Lifecycle Service.
| Method Summary | |
|---|---|
java.io.Serializable |
getAboutDataBean()
Gets the data bean from which a console can obtain the information that is displayed on this agent's 'About' panel. |
int |
getAgentAutonomyLevel()
Gets the agent's autonomy level. |
javax.agent.service.directory.AgentDescription |
getAgentDescription()
Retrieves the agent's AgentDescription. |
java.util.Date |
getAgentLastUpdate()
Gets the date and time when the agent's description was last updated with the Agent Directory Service. |
java.lang.String |
getAgentStatus()
Gets the agent's current real time status (state). |
AbleMessageContainer |
getAgentSummary()
Gets the agent's current summary text. |
java.lang.String |
getAgentType()
Gets the agent's type description. |
java.lang.String |
getAgentVendor()
Gets the agent's vendor. |
java.lang.String |
getAgentVersion()
Gets the agent's version. |
java.util.Map |
getCapabilities()
Gets a Map of this agent's AgentCapability objects. |
AbleAgentCapability |
getCapability(java.lang.Object theCapabilityIdentifier)
Gets a specific AgentCapability of this agent. |
java.util.Map |
getCapabilityAutonomyLevels()
Gets, based on the agent's current AutonomyLevel setting, the appropriate set of capability autonomy levels. |
java.util.Vector |
getCapabilityOrder()
The order of an agent's AgentCapabilities may be important. |
java.util.Map[] |
getCapabilityPresets()
Returns an array of four Maps. |
AbleMessageContainer |
getCapabilitySummaryByAgentAutonomyLevel(int theAgentAutonomyLevel)
Gets an NLS text summary of the agent's capabilities based on the specified agent AutonomyLevel. |
AbleMessageContainer |
getCapabilitySummaryByCapabilityAutonomyLevels(java.util.Map theCapabilityAutonomyLevels)
Gets an NLS text summary of the agent's capabilities based on the specified capability autonomy levels. |
java.lang.String |
getComment()
Gets the agent's current comment. |
java.io.Serializable |
getCustomizerDataBean()
Gets the data bean from which a console can obtain this agent's customizable data so that the data can be displayed on this agent's 'Customize' panel. |
java.lang.String[] |
getCustomizerInfo()
Gets information about this agent's 'Customize' and 'About' GUIs. |
java.util.Hashtable |
getJasAgentAttributes()
Gets the agent's JAS attributes. |
java.lang.String |
getJasAgentName()
Gets the agent's globally unique ID (GUID or AgentName) in text form. |
javax.agent.AgentName |
getPlatformAgentName()
Gets the agent's AgentName object. |
void |
handleAnsweredRequest(AbleAgentSituationReport theAgentSituationReport,
AbleSecureKey theSecureKey)
This method is called to answer a request that this agent had previously logged to the AgentLoggingService. |
void |
initializeAgent(AbleSecureKey theSecureKey)
Initializes and configures the agent. |
void |
initializeAgent(java.lang.Object theInitArg,
AbleSecureKey theSecureKey)
Initializes and configures the agent using the specified parameter, which is typically an Object[], but may be anything that the agent is coded to expect. |
boolean |
isAgentMovable()
Specifies whether the agent is movable from one agent pool to another. |
boolean |
isAgentToAutoRegister()
Specifies whether the agent is to register with an RMI Registry at initialization time. |
boolean |
isAgentToBindToRmi()
Specifies whether the agent is to bind to RMI Naming at initialization time. |
void |
preInit()
Pre-initializes the agent immediately after creation, causing the agent to find the Service Root, extract references to various services, obtain a unique AgentName from the Agent Naming Service, and, when security is on, a VerifiableAgentName (VAN). |
void |
preInit(java.lang.String theAgentNameUniqueID)
This version of preInit should be called when this agent is being restarted from persistence. |
void |
quitAgent(AbleSecureKey theSecureKey)
Quits the agent, which typically quits all contained beans and agents. |
void |
resetAgent(AbleSecureKey theSecureKey)
Resets the agent to its "initialized" state. |
void |
resumeAgent(AbleSecureKey theSecureKey)
Resumes all asynchronous threads of control, typically including those in any contained beans and agents. |
void |
setAgentAutonomyLevel(int theAgentAutonomyLevel,
AbleSecureKey theSecureKey)
Sets the agent's autonomy level. |
void |
setCapabilityAutonomyLevel(java.lang.Object theCapabilityIdentifier,
int theAutonomyLevel,
AbleSecureKey theSecureKey)
Sets the autonomy level of the specified AgentCapability. |
void |
setCapabilityAutonomyLevels(java.util.Map theCapabilityAutonomyLevels,
AbleSecureKey theSecureKey)
Updates the autonomy level of each of this agent's capabilities according to the autonomy levels in the specified Map. |
void |
setCustomizerDataBean(java.io.Serializable theDataBean,
AbleSecureKey theSecureKey)
Sets the data bean from which this agent can retrieve it's updated customizable data. |
void |
suspendAgent(AbleSecureKey theSecureKey)
Temporarily suspends all asynchronous threads of control, typically including those in any contained beans and agents. |
| Methods inherited from interface com.ibm.able.AbleRemoteAgent |
|---|
addEventConnection, getAgentAddr, getAgentHost, getAgentName, getDataSource, isActiveDataSource, removeEventConnection, setActiveDataSource |
| Methods inherited from interface com.ibm.able.AbleRemoteBean |
|---|
getName, getProperties, getProperty, getState, init, init, process, process, quitAll, removeProperty, reset, resumeAll, setProperties, setProperty, suspendAll |
| Methods inherited from interface com.ibm.able.AbleRemoteEventListener |
|---|
handleAbleEvent |
| Methods inherited from interface com.ibm.able.AbleEventListenerRemoteManager |
|---|
addAbleEventListener, notifyAbleEventListeners, removeAbleEventListener |
| Methods inherited from interface com.ibm.able.AbleBeanRemoteContainer |
|---|
addBean, containsBean, containsBean, getBean, getBeans, removeAllBeans, removeBean, removeBean |
| Methods inherited from interface com.ibm.able.AbleUserDefinedFunctionRemoteManager |
|---|
addUserDefinedFunction, containsUserDefinedFunction, getUserDefinedFunction, getUserDefinedFunctions, invokeUserDefinedFunction, removeUserDefinedFunction, setUserDefinedFunctions |
| Method Detail |
public void preInit()
throws java.rmi.RemoteException
java.rmi.RemoteException - On any remote error.
public void preInit(java.lang.String theAgentNameUniqueID)
throws java.rmi.RemoteException
theAgentNameUniqueID when
requesting the AgentName for this agent. This method will then
also remove all previously persisted AgentDescriptions from the
Directory Service since this agent is being restarted from
persistence.
theAgentNameUniqueID - When an agent is being restarted from persistence, it
will want to have an AgentName that matches the one it
had in it's previous life. This way the recreated
agent can still get at logs and it's agent
description. So instead of having the NamingService
create a new unique identifier for the AgentName of
this recreated agent, this old uniqueID will be used.
java.rmi.RemoteException - On any remote error.
public void initializeAgent(AbleSecureKey theSecureKey)
throws java.rmi.RemoteException,
javax.agent.service.naming.NamingException
theSecureKey - When security if off, this may be null as the
parameter is ignored; when security is on the security
key must be from an object with equal or greater
authority in order for the operation to proceed.
java.rmi.RemoteException - On any remote error.
javax.agent.service.naming.NamingException - On any naming error.
public void initializeAgent(java.lang.Object theInitArg,
AbleSecureKey theSecureKey)
throws java.rmi.RemoteException,
javax.agent.service.naming.NamingException
theInitArg - Argument to the initialization method.theSecureKey - When security if off, this may be null as the
parameter is ignored; when security is on the security
key must be from an object with equal or greater
authority in order for the operation to proceed.
java.rmi.RemoteException - On any remote error.
javax.agent.service.naming.NamingException - On any naming error.
public void quitAgent(AbleSecureKey theSecureKey)
throws java.rmi.RemoteException,
javax.agent.service.naming.NamingException
theSecureKey - When security if off, this may be null as the
parameter is ignored; when security is on the security
key must be from an object with equal or greater
authority in order for the operation to proceed.
java.rmi.RemoteException - On any remote error.
javax.agent.service.naming.NamingException - On any naming error.
public void suspendAgent(AbleSecureKey theSecureKey)
throws java.rmi.RemoteException,
javax.agent.service.naming.NamingException
theSecureKey - When security if off, this may be null as the
parameter is ignored; when security is on the security
key must be from an object with equal or greater
authority in order for the operation to proceed.
java.rmi.RemoteException - On any remote error.
javax.agent.service.naming.NamingException - On any naming error.
public void resumeAgent(AbleSecureKey theSecureKey)
throws java.rmi.RemoteException,
javax.agent.service.naming.NamingException
theSecureKey - When security if off, this may be null as the
parameter is ignored; when security is on the security
key must be from an object with equal or greater
authority in order for the operation to proceed.
java.rmi.RemoteException - On any remote error.
javax.agent.service.naming.NamingException - On any naming error.
public void resetAgent(AbleSecureKey theSecureKey)
throws java.rmi.RemoteException,
javax.agent.service.naming.NamingException
theSecureKey - When security if off, this may be null as the
parameter is ignored; when security is on the security
key must be from an object with equal or greater
authority in order for the operation to proceed.
java.rmi.RemoteException - On any remote error.
javax.agent.service.naming.NamingException - On any naming error.
public javax.agent.service.directory.AgentDescription getAgentDescription()
throws java.rmi.RemoteException
java.rmi.RemoteException - On any remote error.
public int getAgentAutonomyLevel()
throws java.rmi.RemoteException
AblePlatform.
java.rmi.RemoteException - On any RMI error.
public void setAgentAutonomyLevel(int theAgentAutonomyLevel,
AbleSecureKey theSecureKey)
throws java.rmi.RemoteException,
javax.agent.service.naming.NamingException
theAgentAutonomyLevel - An autonomy level as defined in AblePlatform.theSecureKey - When security if off, this may be null as the
parameter is ignored; when security is on the security
key must be from an object with equal or greater
authority in order for the operation to proceed.
java.rmi.RemoteException - On any RMI error.
AbleException - If the specified autonomy level isn't a level defined in
AblePlatform or if the caller is not authorized.
javax.agent.service.naming.NamingException - If the caller is not authenticated.
public java.util.Date getAgentLastUpdate()
throws java.rmi.RemoteException
java.rmi.RemoteException - On any RMI error.
public java.lang.String getAgentStatus()
throws java.rmi.RemoteException
java.rmi.RemoteException - On any RMI error.
public AbleMessageContainer getAgentSummary()
throws java.rmi.RemoteException
java.rmi.RemoteException - On any RMI error.
public java.lang.String getAgentType()
throws java.rmi.RemoteException
java.rmi.RemoteException - On any RMI error.
public java.lang.String getAgentVendor()
throws java.rmi.RemoteException
java.rmi.RemoteException - On any RMI error.
public java.lang.String getAgentVersion()
throws java.rmi.RemoteException
java.rmi.RemoteException - On any RMI error.
public boolean isAgentToAutoRegister()
throws java.rmi.RemoteException
java.rmi.RemoteException - On any RMI error.
public boolean isAgentToBindToRmi()
throws java.rmi.RemoteException
java.rmi.RemoteException - On any RMI error.
public boolean isAgentMovable()
throws java.rmi.RemoteException
java.rmi.RemoteException - On any RMI error.
public java.util.Hashtable getJasAgentAttributes()
throws java.rmi.RemoteException
java.rmi.RemoteException - On any RMI error.
public java.lang.String getJasAgentName()
throws java.rmi.RemoteException
toString() version of the agent's
unique AgentName.
java.rmi.RemoteException - On any RMI error.
public javax.agent.AgentName getPlatformAgentName()
throws java.rmi.RemoteException
java.rmi.RemoteException - On any RMI error.
public java.lang.String getComment()
throws java.rmi.RemoteException
java.rmi.RemoteException - On any RMI error.
public AbleAgentCapability getCapability(java.lang.Object theCapabilityIdentifier)
throws java.rmi.RemoteException
theCapabilityIdentifier - The identifier of the AgentCapability to return.
java.rmi.RemoteException - On all remote errors.
public java.util.Map getCapabilities()
throws java.rmi.RemoteException
Key: ((Object) aCapabilityIdentifier) Value: ((AbleAgentCapability) anAgentCapability )
java.rmi.RemoteException - On all remote errors.
public void setCapabilityAutonomyLevel(java.lang.Object theCapabilityIdentifier,
int theAutonomyLevel,
AbleSecureKey theSecureKey)
throws AbleException,
java.rmi.RemoteException
theCapabilityIdentifier - The identifier of the AgentCapability whose autonomy
level is to be set.theAutonomyLevel - The new autonomy level for the specified
AgentCapability.theSecureKey - When security if off, this may be null as the
parameter is ignored; when security is on the security
key must be from an object with equal or greater
authority in order for the operation to proceed.
AbleException - If the caller cannot be verified by the VerifiableAgentNamingService.
If authorization failed.
If unable to update the capabilities of this agent.
java.rmi.RemoteException - On all remote errors.
public void setCapabilityAutonomyLevels(java.util.Map theCapabilityAutonomyLevels,
AbleSecureKey theSecureKey)
throws AbleException,
java.rmi.RemoteException
Key: ((Object) anExistingCapabilityIdentifier) Value: ((Integer) aNewAutonomyLevel )
theCapabilityAutonomyLevels - Map of capabilityID/autonomyLevel pairs.
Each entry of the Map is:
Key: ((Object) anExistingCapabilityIdentifier)
Value: ((Integer) aNewAutonomyLevel )
theSecureKey - When security if off, this may be null as the
parameter is ignored; when security is on the security
key must be from an object with equal or greater
authority in order for the operation to proceed.
AbleException - If the caller cannot be verified by the VerifiableAgentNamingService.
If authorization failed.
If unable to update the capabilities of this agent.
java.rmi.RemoteException - On all remote errors.
public java.util.Map getCapabilityAutonomyLevels()
throws java.rmi.RemoteException
Key: ((Object) aCapabilityIdentifier) Value: ((Integer) anAutonomyLevel )
java.rmi.RemoteException - On all remote errors.
public AbleMessageContainer getCapabilitySummaryByAgentAutonomyLevel(int theAgentAutonomyLevel)
throws AbleException,
java.rmi.RemoteException
Returns a MessageContainer that describes the overall agent
autonomy summary if the agent's AutonomyLevel is set to
theAutonomyLevel.
theAgentAutonomyLevel - The agent AutonomyLevel that the summary is to
represent. Must be one of:
AbleException - If unable to create the capability autonomy level
summary.
java.rmi.RemoteException - On all remote exceptions.
public AbleMessageContainer getCapabilitySummaryByCapabilityAutonomyLevels(java.util.Map theCapabilityAutonomyLevels)
throws AbleException,
java.rmi.RemoteException
theCapabilityAutonomyLevels - The capability autonomy levels that the summary is to
represent.
Each entry of the Map is:
Key: ((Object) aCapabilityIdentifier)
Value: ((Integer) anAutonomyLevel )
If null, then the summary is created using the
current agent AutonomyLevel of this agent.
theCapabilityAutonomyLevels.
AbleException - If unable to create the autonomy levels summary.
java.rmi.RemoteException - On all remote exceptions.
public java.util.Map[] getCapabilityPresets()
throws java.rmi.RemoteException
java.rmi.RemoteException - On all remote errors.
public java.util.Vector getCapabilityOrder()
throws java.rmi.RemoteException
java.rmi.RemoteException - On all remote exceptions.
public void handleAnsweredRequest(AbleAgentSituationReport theAgentSituationReport,
AbleSecureKey theSecureKey)
throws AbleException,
java.rmi.RemoteException
The process of handling an answered request is done in several steps:
validateRequest(AbleAgentSituationReport) is
called to determine if the request is still valid.
theSecureKey is checked to make sure that the
caller is trusted by the platform, and using a valid
AbleSecureKey.
authenticateAndAuthorizeCaller(AbleAgentSituationReport,AbleSecureKey)
is called to perform steps 2 and 3.
Note that the Thread that is spawned to do the actual
processing of the answer calls the method
processAnsweredRequest.
theAgentSituationReport - The original AgentSituationReport containing an
answer to an outstanding (prevously logged) request.theSecureKey - When security if off, this may be null as the
parameter is ignored; when security is on the security
key must be from an object with equal or greater
authority in order for the operation to proceed.
AbleException - If the caller is not verified by the Naming Service.
If the request is no longer valid.
If authorization failed.
If unable to update the capabilities of this agent.
java.rmi.RemoteException - On all remote errors.
public java.io.Serializable getAboutDataBean()
throws AbleException,
java.rmi.RemoteException
AbleException - On all errors getting the 'About' dataBean.
java.rmi.RemoteException - On all remote errors.
public void setCustomizerDataBean(java.io.Serializable theDataBean,
AbleSecureKey theSecureKey)
throws AbleException,
java.rmi.RemoteException
theDataBean - Contains data from the agent's 'Customize' panel.theSecureKey - When security if off, this may be null as the
parameter is ignored; when security is on the security
key must be from an object with equal or greater
authority in order for the operation to proceed.
AbleException - If the caller is not verified by the Naming Service.
On all errors setting the customizer data bean.
java.rmi.RemoteException - On all remote errors.
public java.io.Serializable getCustomizerDataBean()
throws AbleException,
java.rmi.RemoteException
AbleException - On all errors getting the 'Customize' data bean.
java.rmi.RemoteException - On all remote errors.
public java.lang.String[] getCustomizerInfo()
throws AbleException,
java.rmi.RemoteException
String[0] is the fully qualified name of the customizer class.
String[1] is the fully qualified name of the about class.
Returns null if there is no customizer info for this agent; null is returned by the AblePlatformDefaultAgent implementation.
AbleException - On all errors getting the customizer info.
java.rmi.RemoteException - On all remote errors.
|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||