public class DnsUtilActivator
extends java.lang.Object
implements org.osgi.framework.BundleActivator, org.osgi.framework.ServiceListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_BACKUP_RESOLVER
The address of the backup resolver we would use by default.
|
static boolean |
PDEFAULT_BACKUP_RESOLVER_ENABLED
The default of the property that users may use to disable
our backup DNS resolver.
|
static java.lang.String |
PNAME_BACKUP_RESOLVER
The name of the property that users may use to override the
address of our backup DNS resolver.
|
static java.lang.String |
PNAME_BACKUP_RESOLVER_ENABLED
The name of the property that users may use to disable
our backup DNS resolver.
|
static java.lang.String |
PNAME_BACKUP_RESOLVER_FALLBACK_IP
The name of the property that users may use to override the
IP address of our backup DNS resolver.
|
static java.lang.String |
PNAME_BACKUP_RESOLVER_PORT
The name of the property that users may use to override the port
of our backup DNS resolver.
|
static java.lang.String |
PNAME_DNSSEC_NAMESERVERS
The name of the property that sets custom nameservers to use for all DNS
lookups when DNSSEC is enabled.
|
Constructor and Description |
---|
DnsUtilActivator() |
Modifier and Type | Method and Description |
---|---|
static org.jitsi.service.configuration.ConfigurationService |
getConfigurationService()
Returns the ConfigurationService obtained from the bundle
context.
|
static NotificationService |
getNotificationService()
Returns the NotificationService obtained from the bundle context.
|
static org.jitsi.service.resources.ResourceManagementService |
getResources()
Returns the service giving access to all application resources.
|
static void |
reloadDnsResolverConfig()
Reloads dns server configuration in the resolver.
|
void |
serviceChanged(org.osgi.framework.ServiceEvent event)
Listens on OSGi service changes and registers a listener for network
changes as soon as the change-notification service is available
|
void |
start(org.osgi.framework.BundleContext context)
Calls Thread.setUncaughtExceptionHandler()
|
void |
stop(org.osgi.framework.BundleContext context)
Doesn't do anything.
|
public static final java.lang.String PNAME_DNSSEC_NAMESERVERS
public static final java.lang.String DEFAULT_BACKUP_RESOLVER
public static final java.lang.String PNAME_BACKUP_RESOLVER_PORT
public static final java.lang.String PNAME_BACKUP_RESOLVER_FALLBACK_IP
public static final boolean PDEFAULT_BACKUP_RESOLVER_ENABLED
public static final java.lang.String PNAME_BACKUP_RESOLVER_ENABLED
public static final java.lang.String PNAME_BACKUP_RESOLVER
public void start(org.osgi.framework.BundleContext context) throws java.lang.Exception
start
in interface org.osgi.framework.BundleActivator
context
- The execution context of the bundle being started
(unused).java.lang.Exception
- If this method throws an exception, this bundle is
marked as stopped and the Framework will remove this bundle's
listeners, unregister all services registered by this bundle, and
release all services used by this bundle.public static void reloadDnsResolverConfig()
public void stop(org.osgi.framework.BundleContext context) throws java.lang.Exception
stop
in interface org.osgi.framework.BundleActivator
context
- The execution context of the bundle being stopped.java.lang.Exception
- If this method throws an exception, the bundle is
still marked as stopped, and the Framework will remove the bundle's
listeners, unregister all services registered by the bundle, and
release all services used by the bundle.public static org.jitsi.service.configuration.ConfigurationService getConfigurationService()
public static NotificationService getNotificationService()
public static org.jitsi.service.resources.ResourceManagementService getResources()
public void serviceChanged(org.osgi.framework.ServiceEvent event)
serviceChanged
in interface org.osgi.framework.ServiceListener
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.