|
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 | |||||||||||
java.lang.Objectcom.ibm.able.platform.RmiAgentLoggingServiceProxy
The RMIAgentLoggingServiceProxy is a proxy for the RMI implementation of the AgentLoggingService.
An RMI Agent Logging Service proxy contains a reference to an RMI version of an Agent Logging Service. The proxy contains methods identical to the methods in the actual service.
When a method is called on the proxy, the proxy forwards the call on to the actual service. However, the proxy:
| Field Summary |
|---|
| Fields inherited from interface com.ibm.able.platform.AgentLoggingService |
|---|
COLUMN_NAMES, COLUMN_TYPES, HISTORY_LOG_MAX, SERVICE_TYPE |
| Constructor Summary | |
|---|---|
RmiAgentLoggingServiceProxy(RmiAgentLoggingService theDelegate,
java.rmi.registry.Registry theRegistry,
java.lang.String theAddress)
Creates a proxy over the specified RMI reference to an Agent Logging Service. |
|
| Method Summary | |
|---|---|
void |
addAblePlatformServiceEventListener(AblePlatformServiceEventListener theListener)
Adds a service event listener to this service. |
void |
answerAgentRequest(AbleAgentSituationReport theAgentSituationReport,
AbleSecureKey theSecureKey)
When an attempt is made to answer an existing problem AgentSituationReport, this method takes the answered AgentSituationReport and contacts the original logger of the request. |
java.util.Vector |
getAblePlatformServiceEventListeners()
Gets a collection of all service event listeners registered with this service event generator. |
java.util.Vector |
getAgentHistory(javax.agent.AgentName theAgentName)
Returns a list of all AgentSituationReports that belong to the specified agent and that are not in the problem state. |
java.util.Vector |
getAgentProblems(javax.agent.AgentName theAgentName)
Returns a list of all AgentSituationReports that belong to the specified agent and that are in the problem state. |
java.util.Vector |
getAllLogs()
Returns a list of all AgentSituationReports. |
java.util.Vector |
getAllProblems()
Returns a list of all AgentSituationReports that are in the problem state. |
javax.agent.service.ServiceProperties |
getServiceProperties()
Retrieve the service properties of the underlying service. |
int |
getState()
Returns the state of this service. |
void |
logAgentSituationReport(AbleAgentSituationReport theAgentSituationReport,
AbleSecureKey theSecureKey)
Logs an AgentSituationReport to the AgentLoggingService, and notifies all interested listeners about the added entry. |
void |
removeAblePlatformServiceEventListener(AblePlatformServiceEventListener theListener)
Removes a service event listener from this service. |
void |
removeAgentLogs(javax.agent.AgentName theAgentName,
AbleSecureKey theSecureKey)
Removes all of the AgentSituationReports that belong to the specified agent. |
void |
removeAgentSituationReports(java.util.Vector theAgentSituationReports,
AbleSecureKey theSecureKey)
Removes AgentSituationReports from the AgentLoggingService, and notifies all interested listeners about these removals. |
java.util.Vector |
search(AbleAgentSituationReport theAgentSituationReport)
Returns a list of all AgentSituationReports that match the criteria supplied in the specified AgentSituationReport. |
void |
setServiceProperties(javax.agent.service.ServiceProperties theServiceProperties)
Set the service properties of the underlying service. |
void |
terminateService(AbleSecureKey theSecureKey)
Terminates this service in a controlled way; the service is removed from the service root and, if necessary, unbound from the RMI registry and unexported as a remote RMI object. |
java.lang.String |
toString()
Retrieve a string describing (the contents of) the object. |
void |
updateAgentSituationReport(AbleAgentSituationReport theOldAgentSituationReport,
AbleAgentSituationReport theReplacementAgentSituationReport,
AbleSecureKey theSecureKey)
Updates an AgentSituationReport in the Logging Service, and notifies all interested listeners about this update. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public RmiAgentLoggingServiceProxy(RmiAgentLoggingService theDelegate,
java.rmi.registry.Registry theRegistry,
java.lang.String theAddress)
theDelegate - A reference to an RMI version of an Agent Logging
Service.theRegistry - The RMI registry at which the above Agent Logging
Service is registered.theAddress - The RMI address at which the above Agent Logging
Service is registered.| Method Detail |
public void addAblePlatformServiceEventListener(AblePlatformServiceEventListener theListener)
throws AbleException
AblePlatformServiceEventGenerator
addAblePlatformServiceEventListener in interface AblePlatformServiceEventGeneratortheListener - Any object interested in listening for service events
generated by this service.
AbleException - If the listener to be added is null, or on any error.
public void removeAblePlatformServiceEventListener(AblePlatformServiceEventListener theListener)
throws AbleException
AblePlatformServiceEventGenerator
removeAblePlatformServiceEventListener in interface AblePlatformServiceEventGeneratortheListener - A previously registered object that is no longer
interested in listening for service events generated
by this service.
AbleException - If the listener to be removed is null, or on any error.
public java.util.Vector getAblePlatformServiceEventListeners()
throws AbleException
AblePlatformServiceEventGenerator
getAblePlatformServiceEventListeners in interface AblePlatformServiceEventGeneratorAbleException - On any error.
public void terminateService(AbleSecureKey theSecureKey)
throws AbleException,
javax.agent.service.naming.NamingException
AblePlatformService
terminateService in interface AblePlatformServicetheSecureKey - 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.
javax.agent.service.naming.NamingException - On any naming error.
AbleException - On any remote error or Able error.
public int getState()
throws AbleException
AblePlatformService
getState in interface AblePlatformServiceAbleException - On any remote error or Able error.
public void logAgentSituationReport(AbleAgentSituationReport theAgentSituationReport,
AbleSecureKey theSecureKey)
throws AgentLoggingException
AgentLoggingServiceIf platform security is enabled, the log request proceeds only if the caller is authenticated.
Logging of duplicate AgentSituationReports will fail.
logAgentSituationReport in interface AgentLoggingServicetheAgentSituationReport - The AgentSituationReport that is to be logged.theSecureKey - The AbleSecureKey that secures communication.
AgentLoggingException -
public void updateAgentSituationReport(AbleAgentSituationReport theOldAgentSituationReport,
AbleAgentSituationReport theReplacementAgentSituationReport,
AbleSecureKey theSecureKey)
throws AgentLoggingException
AgentLoggingServiceAn AgentSituationReport can be updated only if it is in the problem state. History logs may never be changed.
When platform security is enabled, an AgentSituationReport that is in the problem state can be updated only by its own VerifiableAgentName.
This method call cannot be delegated. The VerifiableAgentName of the AgentSituationReport that is to be updated must directly make the call.
updateAgentSituationReport in interface AgentLoggingServicetheOldAgentSituationReport - The AgentSituationReport that is to be updated.theReplacementAgentSituationReport - The AgentSituationReport that is to replace the old
AgentSituationReport.theSecureKey - The AbleSecureKey that secures communication.
AgentLoggingException -
public void removeAgentSituationReports(java.util.Vector theAgentSituationReports,
AbleSecureKey theSecureKey)
throws AgentLoggingException
AgentLoggingServiceWhen platform security is enabled and the AgentSituationReport is verifiable, an AgentSituationReport in the problem state can be removed only by it own VerifiableAgentName; this method call cannot be delegated in such a case.
An AgentSituationReport in the history state can be removed by anyone with equal or greater authority to the VerifiableAgentName of the AgentSituationReport. This call can be delegated in this case.
removeAgentSituationReports in interface AgentLoggingServicetheAgentSituationReports - A list of all AgentSituationReports that should be
removed.theSecureKey - The AbleSecureKey that secures communication.
AgentLoggingException -
public java.util.Vector getAllLogs()
throws AgentLoggingException
AgentLoggingService
getAllLogs in interface AgentLoggingServiceAgentLoggingException - on all remote errors.
public java.util.Vector getAllProblems()
throws AgentLoggingException
AgentLoggingService
getAllProblems in interface AgentLoggingServiceAgentLoggingException - on all remote errors.
public java.util.Vector getAgentHistory(javax.agent.AgentName theAgentName)
throws AgentLoggingException
AgentLoggingService
getAgentHistory in interface AgentLoggingServicetheAgentName - The AgentName of the agent whose history logs are to
be returned.
AgentLoggingException - on all remote errors.
public java.util.Vector getAgentProblems(javax.agent.AgentName theAgentName)
throws AgentLoggingException
AgentLoggingService
getAgentProblems in interface AgentLoggingServicetheAgentName - The AgentName of the agent whose problem logs are to
be returned.
AgentLoggingException - on all remote errors.
public void answerAgentRequest(AbleAgentSituationReport theAgentSituationReport,
AbleSecureKey theSecureKey)
throws AbleException,
AgentLoggingException
AgentLoggingService
answerAgentRequest in interface AgentLoggingServicetheAgentSituationReport - The answered problem AgentSituationReport.theSecureKey - The key that is used to secure this communication.
AgentLoggingException - AbleException - On errors coming back from the agent.
public void removeAgentLogs(javax.agent.AgentName theAgentName,
AbleSecureKey theSecureKey)
throws AgentLoggingException
AgentLoggingServiceWhen platform security is enabed, this method can be called only by the actual agent that logged the reports. This method call cannot be delegated.
removeAgentLogs in interface AgentLoggingServicetheAgentName - The AgentName of the agent that is to have all of it's
AgentSituationReports removed.theSecureKey - The key that is used to secure this communication.
AgentLoggingException - agentName parameter is null.
public java.util.Vector search(AbleAgentSituationReport theAgentSituationReport)
throws AgentLoggingException
AgentLoggingServiceIf fields in the AgentSituationReport are left as null, a match can contain anything in this field. There is no way to wildcard the search for the state and timeSent fields since they are primitive types.
search in interface AgentLoggingServicetheAgentSituationReport - The AgentSituationReport that contains the criteria
for which to search.
AgentLoggingException - If the specified AgentSituationReport is null.public javax.agent.service.ServiceProperties getServiceProperties()
Note: In this implementation, the method call is not forwarded on to the service; null is always returned.
getServiceProperties in interface javax.agent.service.Servicepublic void setServiceProperties(javax.agent.service.ServiceProperties theServiceProperties)
Note: In this implementation, the method call is not forwarded on to the service; the call is simply ignored.
setServiceProperties in interface javax.agent.service.ServicetheServiceProperties - The service properties to be used by the service.
public java.lang.String toString()
|
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 | |||||||||||