|
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.RmiPlatformSupportServiceProxy
An RMI Platform Support Service Proxy contains a reference to an RMI version of a Platform Support Service (known as the delegate); the proxy contains methods identical to the methods in the actual service such that when a method is called on the proxy, the proxy forwards the call on to the actual service, but the proxy:
| Field Summary |
|---|
| Fields inherited from interface com.ibm.able.platform.PlatformSupportService |
|---|
COLUMN_NAMES, COLUMN_TYPES, SERVICE_TYPE, ServiceEventListener |
| Constructor Summary | |
|---|---|
RmiPlatformSupportServiceProxy(RmiPlatformSupportService theDelegate,
java.rmi.registry.Registry theRegistry,
java.lang.String theAddress)
Creates a proxy over the specified RMI reference to a Platform Support Service. |
|
| Method Summary | |
|---|---|
void |
addAblePlatformServiceEventListener(AblePlatformServiceEventListener theListener)
Adds a service event listener to this service. |
java.util.Vector |
getAblePlatformServiceEventListeners()
Gets a collection of all service event listeners registered with this service event generator. |
javax.agent.service.ServiceProperties |
getServiceProperties()
Gets the service properties of the underlying service. |
int |
getState()
Returns the state of this service. |
void |
quiesceAgentPool(java.lang.String theAgentPoolAlias,
AbleSecureKey theSecureKey)
Quiesces the specified agent pool by sending a quitAgent to each agent known to be running in the
pool. |
void |
recoverAgentPool(java.lang.String theAgentPoolAlias,
AbleSecureKey theSecureKey)
Recovers the specified agent pool by recreating agents and services that are to be running there. |
void |
refreshAgentPoolPreferences(java.lang.String theAgentPoolAlias,
AblePlatformPreferences thePlatformPreferences,
AbleSecureKey theSecureKey)
Refreshes the specified agent pool's platform preferences from a specified platform preference object. |
void |
refreshAgentPoolPreferences(java.lang.String theAgentPoolAlias,
AbleSecureKey theSecureKey)
Refreshes the specified agent pool's platform preferences from a file that has first been securely distributed to the system containing that agent pool. |
void |
refreshAgentPoolPreferencesFromFileLocalToAgentPool(java.lang.String theAgentPoolAlias,
java.lang.String theFileName,
AbleSecureKey theSecureKey)
Refreshes the specified agent pool's platform preferences from a file that has first been distributed to the system containing that agent pool. |
void |
refreshAgentPoolPreferencesFromFileLocalToService(java.lang.String theAgentPoolAlias,
java.lang.String theFileName,
AbleSecureKey theSecureKey)
Refreshes the specified agent pool's platform preferences from a file that has first been distributed to the system containing the agent pool running the Platform Support Service. |
void |
refreshPlatformPreferences(AblePlatformPreferences thePlatformPreferences,
AbleSecureKey theSecureKey)
Refreshes every agent pool's platform preferences from a specified platform preference object. |
void |
refreshPlatformPreferences(AbleSecureKey theSecureKey)
Refreshes every agent pool's platform preferences from a file that has first been securely distributed to every system that contains an agent pool. |
void |
refreshPlatformPreferencesFromFileLocalToAgentPool(java.lang.String theFileName,
AbleSecureKey theSecureKey)
Refreshes every agent pool's platform preferences from a file that has first been distributed to each system containing an agent pool. |
void |
refreshPlatformPreferencesFromFileLocalToService(java.lang.String theFileName,
AbleSecureKey theSecureKey)
Refreshes every agent pool's platform preferences from a file that has first been distributed to the system containing the agent pool running the Platform Support Service. |
void |
removeAblePlatformServiceEventListener(AblePlatformServiceEventListener theListener)
Removes a service event listener from this service. |
void |
setServiceProperties(javax.agent.service.ServiceProperties theServiceProperties)
Sets the service properties of the underlying service. |
void |
terminateAgentPool(java.lang.String theAgentPoolAlias,
AbleSecureKey theSecureKey)
Terminates the specified agent pool by killing it's JVM. |
void |
terminatePlatform(AbleSecureKey theSecureKey)
Terminates all known agent pools across the entire platform by killing their JVMs. |
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()
Gets a string describing the contents of the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public RmiPlatformSupportServiceProxy(RmiPlatformSupportService theDelegate,
java.rmi.registry.Registry theRegistry,
java.lang.String theAddress)
theDelegate - A reference to an RMI version of a Platform Support
Service.theRegistry - The RMI registry at which the above Platform Support
Service is registered.theAddress - The RMI address at which the above Platform Support
Service is registered.| Method Detail |
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 void quiesceAgentPool(java.lang.String theAgentPoolAlias,
AbleSecureKey theSecureKey)
throws PlatformSupportServiceException
PlatformSupportServicequitAgent to each agent known to be running in the
pool.
Note that there is nothing that prevents new agents from being created in the pool during the time the pool is being quiesced.
quiesceAgentPool in interface PlatformSupportServicetheAgentPoolAlias - The name of an agent pool defined in the platform
preference file.theSecureKey - Used when security is on to make sure that the caller
is authentic and has the authority to perform the
operation; may be null when security is off.
PlatformSupportServiceException - On any platform support error.
public void recoverAgentPool(java.lang.String theAgentPoolAlias,
AbleSecureKey theSecureKey)
throws PlatformSupportServiceException
PlatformSupportServiceAgentLifeCycleService is used to recreate any agents that it originally created in the pool. AblePlatformSupport is used to recreate any services that were originally running in the pool. If persistence was active for a service, that service should recover itself nicely.
recoverAgentPool in interface PlatformSupportServicetheAgentPoolAlias - The name of an agent pool defined in the platform
preference file.theSecureKey - Used when security is on to make sure that the caller
is authentic and has the authority to perform the
operation; may be null when security is off.
PlatformSupportServiceException - On any platform support error.
public void terminateAgentPool(java.lang.String theAgentPoolAlias,
AbleSecureKey theSecureKey)
throws PlatformSupportServiceException
PlatformSupportService
terminateAgentPool in interface PlatformSupportServicetheAgentPoolAlias - The name of an agent pool defined in the platform
preference file.theSecureKey - Used when security is on to make sure that the caller
is authentic and has the authority to perform the
operation; may be null when security is off.
PlatformSupportServiceException - On any platform support error.
public void terminatePlatform(AbleSecureKey theSecureKey)
throws PlatformSupportServiceException
PlatformSupportService
terminatePlatform in interface PlatformSupportServicetheSecureKey - Used when security is on to make sure that the caller
is authentic and has the authority to perform the
operation; may be null when security is off.
PlatformSupportServiceException - On any platform support error.
public void refreshAgentPoolPreferences(java.lang.String theAgentPoolAlias,
AbleSecureKey theSecureKey)
throws PlatformSupportServiceException
PlatformSupportServiceableplatform.preferences
and the file's location is at the place specified by the system
property able.prefdir.
refreshAgentPoolPreferences in interface PlatformSupportServicetheAgentPoolAlias - The name of an agent pool defined in the platform
preference file.theSecureKey - Used when security is on to make sure that the caller
is authentic and has the authority to perform the
operation; may be null when security is off.
PlatformSupportServiceException - On any platform support error.
public void refreshAgentPoolPreferences(java.lang.String theAgentPoolAlias,
AblePlatformPreferences thePlatformPreferences,
AbleSecureKey theSecureKey)
throws PlatformSupportServiceException
PlatformSupportServiceNote that when security is enabled, this method ultimately has no effect, because the AblePlatformPreference class is not currently able to verify and authorise callers; therefore it ignores calls that can be used to alter the platform in a malicious way.
refreshAgentPoolPreferences in interface PlatformSupportServicetheAgentPoolAlias - The name of an agent pool defined in the platform
preference file.thePlatformPreferences - A platform preference object containing a new set of
preferences.theSecureKey - Used when security is on to make sure that the caller
is authentic and has the authority to perform the
operation; may be null when security is off.
PlatformSupportServiceException - On any platform support error.
public void refreshAgentPoolPreferencesFromFileLocalToAgentPool(java.lang.String theAgentPoolAlias,
java.lang.String theFileName,
AbleSecureKey theSecureKey)
throws PlatformSupportServiceException
PlatformSupportServiceNote that when security is enabled, this method ultimately has no effect, because the AblePlatformPreference class is not currently able to verify and authorise callers; therefore it ignores calls that can be used to alter the platform in a malicious way.
refreshAgentPoolPreferencesFromFileLocalToAgentPool in interface PlatformSupportServicetheAgentPoolAlias - The name of an agent pool defined in the platform
preference file.theFileName - The complete name (including path) of a file that
contains a valid set of ABLE platform preference
specifications.theSecureKey - Used when security is on to make sure that the caller
is authentic and has the authority to perform the
operation; may be null when security is off.
PlatformSupportServiceException - On any platform support error.
public void refreshAgentPoolPreferencesFromFileLocalToService(java.lang.String theAgentPoolAlias,
java.lang.String theFileName,
AbleSecureKey theSecureKey)
throws PlatformSupportServiceException
PlatformSupportServiceNote that when security is enabled, this method ultimately has no effect, because the AblePlatformPreference class is not currently able to verify and authorise callers; therefore it ignores calls that can be used to alter the platform in a malicious way.
refreshAgentPoolPreferencesFromFileLocalToService in interface PlatformSupportServicetheAgentPoolAlias - The name of an agent pool defined in the platform
preference file.theFileName - The complete name (including path) of a file that
contains a valid set of ABLE platform preference
specifications.theSecureKey - Used when security is on to make sure that the caller
is authentic and has the authority to perform the
operation; may be null when security is off.
PlatformSupportServiceException - On any platform support error.
public void refreshPlatformPreferences(AbleSecureKey theSecureKey)
throws PlatformSupportServiceException
PlatformSupportServiceableplatform.preferences and
the file's location is at the place specified by the system
property able.prefdir.
refreshPlatformPreferences in interface PlatformSupportServicetheSecureKey - Used when security is on to make sure that the caller
is authentic and has the authority to perform the
operation; may be null when security is off.
PlatformSupportServiceException - On any platform support error.
public void refreshPlatformPreferences(AblePlatformPreferences thePlatformPreferences,
AbleSecureKey theSecureKey)
throws PlatformSupportServiceException
PlatformSupportServiceNote that when security is enabled, this method ultimately has no effect, because the AblePlatformPreference class is not currently able to verify and authorise callers; therefore it ignores calls that can be used to alter the platform in a malicious way.
refreshPlatformPreferences in interface PlatformSupportServicethePlatformPreferences - A platform preference object containing a new set of
preferences.theSecureKey - Used when security is on to make sure that the caller
is authentic and has the authority to perform the
operation; may be null when security is off.
PlatformSupportServiceException - On any platform support error.
public void refreshPlatformPreferencesFromFileLocalToAgentPool(java.lang.String theFileName,
AbleSecureKey theSecureKey)
throws PlatformSupportServiceException
PlatformSupportServiceNote that when security is enabled, this method ultimately has no effect, because the AblePlatformPreference class is not currently able to verify and authorise callers; therefore it ignores calls that can be used to alter the platform in a malicious way.
refreshPlatformPreferencesFromFileLocalToAgentPool in interface PlatformSupportServicetheFileName - The complete name (including path) of a file that
contains a valid set of ABLE platform preference
specifications.theSecureKey - Used when security is on to make sure that the caller
is authentic and has the authority to perform the
operation; may be null when security is off.
PlatformSupportServiceException - On any platform support error.
public void refreshPlatformPreferencesFromFileLocalToService(java.lang.String theFileName,
AbleSecureKey theSecureKey)
throws PlatformSupportServiceException
PlatformSupportServiceNote that when security is enabled, this method ultimately has no effect, because the AblePlatformPreference class is not currently able to verify and authorise callers; therefore it ignores calls that can be used to alter the platform in a malicious way.
refreshPlatformPreferencesFromFileLocalToService in interface PlatformSupportServicetheFileName - The complete name (including path) of a file that
contains a valid set of ABLE platform preference
specifications.theSecureKey - Used when security is on to make sure that the caller
is authentic and has the authority to perform the
operation; may be null when security is off.
PlatformSupportServiceException - On any platform support 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 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 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 | |||||||||||