Class BwHost

java.lang.Object
org.bedework.util.jmx.ConfBase<HostInfo>
org.bedework.calsvc.scheduling.hosts.BwHost
All Implemented Interfaces:
BwHostMBean, org.bedework.util.jmx.BaseMBean, org.bedework.util.jmx.ConfBaseMBean, org.bedework.util.logging.Logged

public class BwHost extends org.bedework.util.jmx.ConfBase<HostInfo> implements BwHostMBean
Author:
douglm
  • Field Summary

    Fields inherited from class org.bedework.util.jmx.ConfBase

    cfg, statusDone, statusFailed, statusInterrupted, statusRunning, statusStopped, statusTimedout, statusUnknown
  • Constructor Summary

    Constructors
    Constructor
    Description
    BwHost(org.bedework.util.config.ConfigurationStore configStore, String serviceName, HostInfo info)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addDkimPublicKey(String selector, String val)
    Add a dkim public key
     
    Get a dkim public key
     
    Get the hostname for the current entry.
    Get the iSchedule principal for the current entry.
    Get the iSchedule pw for the current entry.
    Get the iSchedule url for the current entry.
    boolean
    True if we delivered our public key for use for dkim
    int
    Get the port for the current entry.
    boolean
    Get the secure flag for the current entry.
     
    void
    Remove a dkim public key
    void
    setDkimPublicKey(String selector, String val)
    Set a dkim public key
    void
    Set the iSchedule principal for the current entry.
    void
    Set the iSchedule pw for the current entry.
    void
    Set the iSchedule url for the current entry.
    void
     
    void
    setPort(int val)
     
    void
    setSecure(boolean val)
    Set the secure flag for the current entry.

    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, unregister

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.bedework.util.jmx.BaseMBean

    getServiceName, isRunning, start, stop

    Methods inherited from interface org.bedework.calsvc.scheduling.hosts.BwHostMBean

    saveConfig

    Methods inherited from interface org.bedework.util.jmx.ConfBaseMBean

    getConfigName, getStatus, setStatus

    Methods 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

    • BwHost

      public BwHost(org.bedework.util.config.ConfigurationStore configStore, String serviceName, HostInfo info)
      Parameters:
      configStore - the store
      serviceName - name
      info - host info
  • Method Details

    • loadConfig

      public String loadConfig()
      Specified by:
      loadConfig in class org.bedework.util.jmx.ConfBase<HostInfo>
    • getHostname

      public String getHostname()
      Get the hostname for the current entry.
      Specified by:
      getHostname in interface BwHostMBean
      Returns:
      hostname
    • setPort

      public void setPort(int val)
      Specified by:
      setPort in interface BwHostMBean
      Parameters:
      val - the port for the current entry.
    • getPort

      public int getPort()
      Get the port for the current entry.
      Specified by:
      getPort in interface BwHostMBean
      Returns:
      port
    • setSecure

      public void setSecure(boolean val)
      Set the secure flag for the current entry.
      Specified by:
      setSecure in interface BwHostMBean
      Parameters:
      val - secureflag
    • getSecure

      public boolean getSecure()
      Get the secure flag for the current entry.
      Specified by:
      getSecure in interface BwHostMBean
      Returns:
      secure flag
    • setIScheduleUrl

      public void setIScheduleUrl(String val)
      Set the iSchedule url for the current entry.
      Specified by:
      setIScheduleUrl in interface BwHostMBean
      Parameters:
      val - ischedule url
    • getIScheduleUrl

      public String getIScheduleUrl()
      Get the iSchedule url for the current entry.
      Specified by:
      getIScheduleUrl in interface BwHostMBean
      Returns:
      iSchedule url
    • addDkimPublicKey

      public void addDkimPublicKey(String selector, String val)
      Description copied from interface: BwHostMBean
      Add a dkim public key
      Specified by:
      addDkimPublicKey in interface BwHostMBean
    • getDkimPublicKey

      public String getDkimPublicKey(String selector)
      Description copied from interface: BwHostMBean
      Get a dkim public key
      Specified by:
      getDkimPublicKey in interface BwHostMBean
      Returns:
      value or null
    • removeDkimPublicKey

      public void removeDkimPublicKey(String selector)
      Description copied from interface: BwHostMBean
      Remove a dkim public key
      Specified by:
      removeDkimPublicKey in interface BwHostMBean
    • setDkimPublicKey

      public void setDkimPublicKey(String selector, String val)
      Description copied from interface: BwHostMBean
      Set a dkim public key
      Specified by:
      setDkimPublicKey in interface BwHostMBean
    • getDkimPublicKeys

      public List<String> getDkimPublicKeys()
      Specified by:
      getDkimPublicKeys in interface BwHostMBean
      Returns:
      String val
    • setIScheduleUsePublicKey

      public void setIScheduleUsePublicKey(boolean val)
      Specified by:
      setIScheduleUsePublicKey in interface BwHostMBean
      Parameters:
      val - boolean
    • getIScheduleUsePublicKey

      public boolean getIScheduleUsePublicKey()
      Description copied from interface: BwHostMBean
      True if we delivered our public key for use for dkim
      Specified by:
      getIScheduleUsePublicKey in interface BwHostMBean
      Returns:
      String
    • setISchedulePrincipal

      public void setISchedulePrincipal(String val)
      Set the iSchedule principal for the current entry.
      Specified by:
      setISchedulePrincipal in interface BwHostMBean
      Parameters:
      val - ischedule principal
    • getISchedulePrincipal

      public String getISchedulePrincipal()
      Get the iSchedule principal for the current entry.
      Specified by:
      getISchedulePrincipal in interface BwHostMBean
      Returns:
      iSchedule principal
    • setISchedulePw

      public void setISchedulePw(String val)
      Set the iSchedule pw for the current entry.
      Specified by:
      setISchedulePw in interface BwHostMBean
      Parameters:
      val - ischedule pw
    • getISchedulePw

      public String getISchedulePw()
      Get the iSchedule pw for the current entry.
      Specified by:
      getISchedulePw in interface BwHostMBean
      Returns:
      iSchedule pw
    • display

      public String display()
      Specified by:
      display in interface BwHostMBean
      Returns:
      host information