public class SamplePlatformListener extends PlatformListenerAbstract
ThePlatformListener and get platform components state change events.
The code below illustrates how to create a listener class which will get invoked on platform components state change events.
The platform components for which notifications would sent are
import com.avaya.collaboration.platformlistener.ClusterDbStateChangeEvent;
import com.avaya.collaboration.platformlistener.DatagridStateChangeEvent;
import com.avaya.collaboration.platformlistener.PlatformListenerAbstract;
import com.avaya.collaboration.platformlistener.ReliableEventingStateChangeEvent;
import com.avaya.collaboration.platformlistener.ThePlatformListener;
@ThePlatformListener
public class SamplePlatformListener extends PlatformListenerAbstract
{
@Override
public void dataGridStateChanged(final DatagridStateChangeEvent datagridStateChangeEvent)
{
}
@Override
public void clusterDbStateChanged(final ClusterDbStateChangeEvent clusterDbStateChangeEvent)
{
}
@Override
public void reliableEventingStateChanged(final ReliableEventingStateChangeEvent reliableEventingStateChangeEvent)
{
}
@Override
public void certificateStoreUpdated()
{
// This method is invoked when either a trust certificate is added/deleted in the trust store
// or the server's identity certificate has been changed.
// If any outbound TLS connection is established invalidate it and create a new connection
// Use the SSLUtilityFactory APIs to create the SSLContext which will use the platform's trust certificates
// and identity certificate
// For instance, if the snap-is is using an Apache HttpClient,
// it can make use of the changed certificate by closing the current connection, httpClient.close(),
// followed by creating a new one, httpClient = HttpClients.custom().setSslContext(SSLUtilityFactory.createSSLContext()).build().
}
@Override
public void securityConfigurationUpdated(final SecurityConfigUpdatedEvent trustMgmtConfigUpdatedEvent)
{
// This method is invoked when any of the security configuration under System Manager Home / Services / Security /
// Configuration / Security Configuration / Global is updated.
// Use the SSLUtilityFactory APIs to create new SSLContext to act on updates in
// Minimum TLS version (global setting), Certificate revocation configuration, etc.
}
}
| Constructor and Description |
|---|
SamplePlatformListener() |
certificateStoreUpdated, clusterDbStateChanged, dataGridStateChanged, reliableEventingStateChanged, securityConfigurationUpdatedCopyright © 2021 Avaya. All rights reserved.