Class BwHosts
java.lang.Object
org.bedework.util.jmx.ConfBase
org.bedework.calsvc.scheduling.hosts.BwHosts
- All Implemented Interfaces:
BwHostsMBean,org.bedework.util.jmx.BaseMBean,org.bedework.util.jmx.ConfBaseMBean,org.bedework.util.logging.Logged
- Author:
- douglm
-
Field Summary
Fields inherited from class org.bedework.util.jmx.ConfBase
cfg, statusDone, statusFailed, statusInterrupted, statusRunning, statusStopped, statusTimedout, statusUnknown -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a host.addIscheduleHost(String hostname, int port, boolean secure, String url, String principal, String pw) Add an ischedule host.voidDelete a host.static HostInfoReturn host information for the given parameter which might be a url or an email address.static HostInfogetHostInfo(String name) static org.apache.james.jdkim.api.JDKIMgetJDKIM()(Re)load the configurationsstatic voidShould be called by BwHost instances on key updatevoidUpdate a host.Methods inherited from class org.bedework.util.jmx.ConfBase
createObjectName, ensureDir, getConfig, getConfigDirectory, getConfigInfo, getConfigInfo, getConfigInfo, getConfigName, getLogger, getManagementContext, getPathSuffix, getRegisteredMBeans, getServiceName, getServiceObjectName, getStatus, getStore, isRunning, loadConfig, makeObject, register, register, saveConfig, setStatus, setStore, start, stop, unregister, unregisterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bedework.util.jmx.BaseMBean
getServiceName, isRunning, start, stopMethods inherited from interface org.bedework.util.jmx.ConfBaseMBean
getConfigName, getStatus, saveConfig, setStatusMethods inherited from interface org.bedework.util.logging.Logged
audit, debug, debug, debug, enableAuditLogger, enableErrorLogger, enableMetricsLogger, error, error, error, getLogLevel, info, isAuditLoggerEnabled, isErrorLoggerEnabled, isMetricsDebugEnabled, isMetricsLoggerEnabled, metrics, setLoggerClass, setLoggerClass, trace, trace, trace, warn
-
Constructor Details
-
BwHosts
public BwHosts()
-
-
Method Details
-
loadConfig
- Specified by:
loadConfigin classorg.bedework.util.jmx.ConfBase
-
getHost
- Specified by:
getHostin interfaceBwHostsMBean
-
addIscheduleHost
public String addIscheduleHost(String hostname, int port, boolean secure, String url, String principal, String pw) Description copied from interface:BwHostsMBeanAdd an ischedule host.- Specified by:
addIscheduleHostin interfaceBwHostsMBean- Returns:
- status message
-
listHosts
- Specified by:
listHostsin interfaceBwHostsMBean- Returns:
- all hosts
-
loadConfigs
Description copied from interface:BwHostsMBean(Re)load the configurations- Specified by:
loadConfigsin interfaceBwHostsMBean- Returns:
- status
-
get
- Parameters:
name- of host- Returns:
- corresponding host info or null
-
find
- Parameters:
name- of host- Returns:
- BwHost object for name
-
add
Add a host.- Parameters:
val- host info
-
update
Update a host.- Parameters:
val- host info
-
delete
Delete a host.- Parameters:
val- host info
-
getHostForRecipient
Return host information for the given parameter which might be a url or an email address. This information may be obtained through discovery of the service.The key to the object is the calculated closest domain of the given recipient.
- Parameters:
val- - a url or an email address- Returns:
- HostInfo - null if no service available.
-
getHostInfo
- Parameters:
name- of host- Returns:
- host info or null
-
getJDKIM
public static org.apache.james.jdkim.api.JDKIM getJDKIM() -
refreshStoredKeys
public static void refreshStoredKeys()Should be called by BwHost instances on key update
-