|
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.Objectjava.rmi.server.RemoteObject
org.jagent.service.util.RMIBasicService
com.ibm.able.platform.AbleBasicService
com.ibm.able.platform.RmiPlatformSupportServiceSystem
RmiPlatformSupportServiceSystem is the implementation of a Platform
Support Service; see PlatformSupportService for details.
| Field Summary |
|---|
| Fields inherited from class com.ibm.able.platform.AbleBasicService |
|---|
ANS_PRINCIPAL, LOCAL_PRINCIPAL, myAnsPrincipal, myKeyPair, myMsgLog, myPrincipal, mySecSppt, myServiceEventListeners, myServiceProperties, myTrcLog, myTrustLevel, myVerifiableAgentName, myVerifiableNamingService, Refreshing, REQUESTORS_PORT, Running, SOCKET_FACTORY, Terminated, Unknown |
| Fields inherited from class java.rmi.server.RemoteObject |
|---|
ref |
| Fields inherited from interface org.jagent.service.RMIService |
|---|
RMI, SERVICE_PROTOCOL |
| Fields inherited from interface org.jagent.service.IPService |
|---|
SERVICE_HOST, SERVICE_PORT |
| Constructor Summary | |
|---|---|
RmiPlatformSupportServiceSystem()
Creates an instance of an RMI-based Platform Support Service. |
|
RmiPlatformSupportServiceSystem(javax.agent.service.ServiceProperties theServiceProperties)
Creates an instance of an RMI-based Platform Support Service, using the specified service properties. |
|
| Method Summary | |
|---|---|
void |
addAblePlatformServiceEventListener(AblePlatformServiceEventListener theListener)
Adds a service event listener to this service, and, if persistence is on, adds the listener to persistence store. |
java.lang.String |
getBindingName()
|
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 |
refreshLocalFromPersistence(AblePersistenceSupport thePersistenceSupport,
java.lang.Object[] thePersistedRecords)
Takes the persisted Objects that are read in, and sets them locally. |
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, and, if persistence is on, removes the listener from persistence store. |
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)
When this service is terminated, there will be Verifiable Directory specific cleanup that needs to be done. |
| Methods inherited from class com.ibm.able.platform.AbleBasicService |
|---|
getAblePlatformServiceEventListeners, getState, notifyAblePlatformServiceEventListeners, setState, thenNotifyAblePlatformServiceEventListeners |
| Methods inherited from class org.jagent.service.util.RMIBasicService |
|---|
bindServiceToRegistry, getServiceProperties, setServiceProperties, shutdown |
| Methods inherited from class java.rmi.server.RemoteObject |
|---|
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.ibm.able.platform.RmiAblePlatformService |
|---|
getState |
| Methods inherited from interface com.ibm.able.platform.RmiAblePlatformServiceEventGenerator |
|---|
getAblePlatformServiceEventListeners |
| Constructor Detail |
public RmiPlatformSupportServiceSystem()
throws java.lang.Exception
java.lang.Exception - On any error.
public RmiPlatformSupportServiceSystem(javax.agent.service.ServiceProperties theServiceProperties)
throws java.lang.Exception
theServiceProperties - Service properties on which the service is based.
java.lang.Exception - On any error.| Method Detail |
public java.lang.String getBindingName()
public void addAblePlatformServiceEventListener(AblePlatformServiceEventListener theListener)
throws AbleException
addAblePlatformServiceEventListener in interface RmiAblePlatformServiceEventGeneratoraddAblePlatformServiceEventListener in class AbleBasicServicetheListener - Any object interested in listening for service events
generated by this service.
AbleException - On any error adding the listener.
public void removeAblePlatformServiceEventListener(AblePlatformServiceEventListener theListener)
throws AbleException
removeAblePlatformServiceEventListener in interface RmiAblePlatformServiceEventGeneratorremoveAblePlatformServiceEventListener in class AbleBasicServicetheListener - A previously registered object that is no longer
interested in listening for service events generated
by this service.
AbleException - On any error removing the listener.
public void terminateService(AbleSecureKey theSecureKey)
throws AbleException,
javax.agent.service.naming.NamingException
AbleBasicService's terminateService
method has been overridden to take care of this cleanup.
Since this service is persisting information, it's persistence support Object will do some cleanup when being terminated.
terminateService in interface RmiAblePlatformServiceterminateService in class AbleBasicServicetheSecureKey - If security is on, the key used to secure this
communication; otherwise, null.
AbleException - If the caller is not authorized to make this call.
javax.agent.service.naming.NamingException - On all naming errors.
public void quiesceAgentPool(java.lang.String theAgentPoolAlias,
AbleSecureKey theSecureKey)
throws java.rmi.RemoteException,
PlatformSupportServiceException
RmiPlatformSupportServicequitAgent 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 RmiPlatformSupportServicetheAgentPoolAlias - 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.
java.rmi.RemoteException - On any RMI error.
public void recoverAgentPool(java.lang.String theAgentPoolAlias,
AbleSecureKey theSecureKey)
throws java.rmi.RemoteException,
PlatformSupportServiceException
RmiPlatformSupportServiceAgentLifeCycleService 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 RmiPlatformSupportServicetheAgentPoolAlias - 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.
java.rmi.RemoteException
public void terminateAgentPool(java.lang.String theAgentPoolAlias,
AbleSecureKey theSecureKey)
throws java.rmi.RemoteException,
PlatformSupportServiceException
RmiPlatformSupportService
terminateAgentPool in interface RmiPlatformSupportServicetheAgentPoolAlias - 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.
java.rmi.RemoteException - On any RMI error.
PlatformSupportServiceException - On any platform support error.
public void terminatePlatform(AbleSecureKey theSecureKey)
throws java.rmi.RemoteException,
PlatformSupportServiceException
RmiPlatformSupportService
terminatePlatform in interface RmiPlatformSupportServicetheSecureKey - 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.
java.rmi.RemoteException - On any RMI error.
PlatformSupportServiceException - On any platform support error.
public void refreshAgentPoolPreferences(java.lang.String theAgentPoolAlias,
AbleSecureKey theSecureKey)
throws java.rmi.RemoteException,
PlatformSupportServiceException
RmiPlatformSupportServiceableplatform.preferences
and the file's location is at the place specified by the system
property able.prefdir.
refreshAgentPoolPreferences in interface RmiPlatformSupportServicetheAgentPoolAlias - 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.
java.rmi.RemoteException - On any RMI error.
public void refreshAgentPoolPreferences(java.lang.String theAgentPoolAlias,
AblePlatformPreferences thePlatformPreferences,
AbleSecureKey theSecureKey)
throws java.rmi.RemoteException,
PlatformSupportServiceException
RmiPlatformSupportServiceNote 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 RmiPlatformSupportServicetheAgentPoolAlias - 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.
java.rmi.RemoteException - On any RMI error.
PlatformSupportServiceException - On any platform support error.
public void refreshAgentPoolPreferencesFromFileLocalToAgentPool(java.lang.String theAgentPoolAlias,
java.lang.String theFileName,
AbleSecureKey theSecureKey)
throws java.rmi.RemoteException,
PlatformSupportServiceException
RmiPlatformSupportServiceNote 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 RmiPlatformSupportServicetheAgentPoolAlias - 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.
java.rmi.RemoteException - On any RMI error.
public void refreshAgentPoolPreferencesFromFileLocalToService(java.lang.String theAgentPoolAlias,
java.lang.String theFileName,
AbleSecureKey theSecureKey)
throws java.rmi.RemoteException,
PlatformSupportServiceException
RmiPlatformSupportServiceNote 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 RmiPlatformSupportServicetheAgentPoolAlias - 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.
java.rmi.RemoteException - On any RMI error.
PlatformSupportServiceException - On any platform support error.
public void refreshPlatformPreferences(AbleSecureKey theSecureKey)
throws java.rmi.RemoteException,
PlatformSupportServiceException
RmiPlatformSupportServiceableplatform.preferences and
the file's location is at the place specified by the system
property able.prefdir.
refreshPlatformPreferences in interface RmiPlatformSupportServicetheSecureKey - 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.
java.rmi.RemoteException - On any RMI error.
PlatformSupportServiceException - On any platform support error.
public void refreshPlatformPreferences(AblePlatformPreferences thePlatformPreferences,
AbleSecureKey theSecureKey)
throws java.rmi.RemoteException,
PlatformSupportServiceException
RmiPlatformSupportServiceNote 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 RmiPlatformSupportServicethePlatformPreferences - 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.
java.rmi.RemoteException - On any RMI error.
PlatformSupportServiceException - On any platform support error.
public void refreshPlatformPreferencesFromFileLocalToAgentPool(java.lang.String theFileName,
AbleSecureKey theSecureKey)
throws java.rmi.RemoteException,
PlatformSupportServiceException
RmiPlatformSupportServiceNote 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 RmiPlatformSupportServicetheFileName - 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.
java.rmi.RemoteException - On any RMI error.
public void refreshPlatformPreferencesFromFileLocalToService(java.lang.String theFileName,
AbleSecureKey theSecureKey)
throws java.rmi.RemoteException,
PlatformSupportServiceException
RmiPlatformSupportServiceNote 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 RmiPlatformSupportServicetheFileName - 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.
java.rmi.RemoteException - On any RMI error.
PlatformSupportServiceException - On any platform support error.
public void refreshLocalFromPersistence(AblePersistenceSupport thePersistenceSupport,
java.lang.Object[] thePersistedRecords)
throws java.lang.Exception
AblePersistenceSupportProcessorThis method is called one time during the lifetime of this AblePersistenceSupportProcessor Object. This method will be called the first time a successful connection is made to the PlatformPersistenceService and the persisted Objects are read in.
refreshLocalFromPersistence in interface AblePersistenceSupportProcessorthePersistenceSupport - the object making the callback so that the processor can
tell which AblePersistenceSupport object is making the call.
thePersistedRecords - Object[] containing all of the rows of
the table this Object persists to.
java.lang.Exception - On any error locally restoring the persisted data.
|
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 | |||||||||||