Class RestBean

java.lang.Object
org.openspaces.core.space.RestBean
All Implemented Interfaces:
ClusterInfoAware, ServiceDetailsProvider, ServiceMonitorsProvider, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean

public class RestBean extends Object implements org.springframework.beans.factory.InitializingBean, ClusterInfoAware, org.springframework.beans.factory.DisposableBean, ServiceDetailsProvider, ServiceMonitorsProvider
Since:
10.1.0
Author:
yohana
  • Field Details

    • logger

      protected org.apache.commons.logging.Log logger
  • Constructor Details

    • RestBean

      public RestBean()
  • Method Details

    • destroy

      public void destroy()
      Specified by:
      destroy in interface org.springframework.beans.factory.DisposableBean
    • setPort

      public void setPort(String port)
    • setGigaSpace

      public void setGigaSpace(GigaSpace gigaSpace)
    • setSpaceName

      public void setSpaceName(String spaceName)
    • setGroups

      public void setGroups(String groups)
    • setLocators

      public void setLocators(String locators)
    • setProperties

      public void setProperties(Properties properties)
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • getServicesDetails

      public ServiceDetails[] getServicesDetails()
      Description copied from interface: ServiceDetailsProvider
      Retruns one or more service details that the service exposes.
      Specified by:
      getServicesDetails in interface ServiceDetailsProvider
    • getServicesMonitors

      public ServiceMonitors[] getServicesMonitors()
      Description copied from interface: ServiceMonitorsProvider
      Retruns one or more service details that the service exposes.
      Specified by:
      getServicesMonitors in interface ServiceMonitorsProvider
    • setClusterInfo

      public void setClusterInfo(ClusterInfo clusterInfo)
      Description copied from interface: ClusterInfoAware
      Sets the cluster information.

      Note, the cluster information is obtained externally from the application context which means that this feature need to be supported by specific containers (and is not supported by plain Spring application context). This means that beans that implement ClusterInfoAware should take into account the fact that the cluster info provided might be null.

      Specified by:
      setClusterInfo in interface ClusterInfoAware
      Parameters:
      clusterInfo - The cluster information to be injected