Class AccessServiceConfig
- java.lang.Object
-
- org.odpi.openmetadata.adminservices.configuration.properties.AdminServicesConfigHeader
-
- org.odpi.openmetadata.adminservices.configuration.properties.AccessServiceConfig
-
- All Implemented Interfaces:
Serializable
public class AccessServiceConfig extends AdminServicesConfigHeader
AccessServiceConfig provides the configuration for a single Open Metadata Access Service (OMAS).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AccessServiceConfig()Default constructor for use with Jackson librariesAccessServiceConfig(AccessServiceConfig template)Copy/clone constructorAccessServiceConfig(AccessServiceRegistration accessServiceRegistration)Set up the default values for an access service using an access service description.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Validate that an object is equal depending on their stored values.StringgetAccessServiceAdminClass()Return the Java class name of the admin-services interface for this access service.StringgetAccessServiceDescription()Return the short description of the access service.StringgetAccessServiceFullName()Return the full name of the access service.intgetAccessServiceId()Return the code number (ordinal) for this access service.ConnectiongetAccessServiceInTopic()Return the OCF Connection for the topic used to pass requests to this access service.StringgetAccessServiceName()Return the name of the access service.ServiceOperationalStatusgetAccessServiceOperationalStatus()Return the status of this access service.Map<String,Object>getAccessServiceOptions()Return the options for this access service.ConnectiongetAccessServiceOutTopic()Return the OCF Connection for the topic used by this access service to publish events.StringgetAccessServiceURLMarker()Return the string that appears in the REST API URL that identifies the owning service.StringgetAccessServiceWiki()Return the wiki page link for the access service.inthashCode()Return a hash code based on the values of this object.voidsetAccessServiceAdminClass(String accessServiceAdminClass)Set up the Java class name of the admin services interface for this access service.voidsetAccessServiceDescription(String accessServiceDescription)Set up the short description of the access service.voidsetAccessServiceFullName(String accessServiceFullName)Set up the full name of the access service.voidsetAccessServiceId(int accessServiceId)Set up the code number (ordinal) for this access service.voidsetAccessServiceInTopic(Connection accessServiceInTopic)Set up the OCF Connection for the topic used to pass requests to this access service.voidsetAccessServiceName(String accessServiceName)Set up the name of the access service.voidsetAccessServiceOperationalStatus(ServiceOperationalStatus accessServiceOperationalStatus)Set up the status of the access service.voidsetAccessServiceOptions(Map<String,Object> accessServiceOptions)Set up the options for this access service.voidsetAccessServiceOutTopic(Connection accessServiceOutTopic)Set up the OCF Connection of the topic used by this access service to publish events.voidsetAccessServiceURLMarker(String accessServiceURLMarker)Set up the string that appears in the REST API URL that identifies the owning service.voidsetAccessServiceWiki(String accessServiceWiki)Set up the wiki page link for the access service.StringtoString()Standard toString method.
-
-
-
Constructor Detail
-
AccessServiceConfig
public AccessServiceConfig()
Default constructor for use with Jackson libraries
-
AccessServiceConfig
public AccessServiceConfig(AccessServiceConfig template)
Copy/clone constructor- Parameters:
template- object to copy
-
AccessServiceConfig
public AccessServiceConfig(AccessServiceRegistration accessServiceRegistration)
Set up the default values for an access service using an access service description.- Parameters:
accessServiceRegistration- fixed properties about the access service
-
-
Method Detail
-
getAccessServiceId
public int getAccessServiceId()
Return the code number (ordinal) for this access service.- Returns:
- int ordinal
-
setAccessServiceId
public void setAccessServiceId(int accessServiceId)
Set up the code number (ordinal) for this access service.- Parameters:
accessServiceId- int ordinal
-
getAccessServiceAdminClass
public String getAccessServiceAdminClass()
Return the Java class name of the admin-services interface for this access service.- Returns:
- String class name implementing the AccessServiceAdmin interface.
-
setAccessServiceAdminClass
public void setAccessServiceAdminClass(String accessServiceAdminClass)
Set up the Java class name of the admin services interface for this access service.- Parameters:
accessServiceAdminClass- String class name implementing the AccessServiceAdmin interface.
-
getAccessServiceName
public String getAccessServiceName()
Return the name of the access service.- Returns:
- String name
-
setAccessServiceFullName
public void setAccessServiceFullName(String accessServiceFullName)
Set up the full name of the access service.- Parameters:
accessServiceFullName- String name
-
setAccessServiceName
public void setAccessServiceName(String accessServiceName)
Set up the name of the access service.- Parameters:
accessServiceName- String name
-
getAccessServiceFullName
public String getAccessServiceFullName()
Return the full name of the access service.- Returns:
- String name
-
getAccessServiceURLMarker
public String getAccessServiceURLMarker()
Return the string that appears in the REST API URL that identifies the owning service. Null means no REST APIs supported by this service.- Returns:
- String default name
-
setAccessServiceURLMarker
public void setAccessServiceURLMarker(String accessServiceURLMarker)
Set up the string that appears in the REST API URL that identifies the owning service. Null means no REST APIs supported by this service.- Parameters:
accessServiceURLMarker- url fragment
-
getAccessServiceDescription
public String getAccessServiceDescription()
Return the short description of the access service. The default value is in English but this can be changed.- Returns:
- String description
-
setAccessServiceDescription
public void setAccessServiceDescription(String accessServiceDescription)
Set up the short description of the access service.- Parameters:
accessServiceDescription- String description
-
getAccessServiceWiki
public String getAccessServiceWiki()
Return the wiki page link for the access service.- Returns:
- String url
-
setAccessServiceWiki
public void setAccessServiceWiki(String accessServiceWiki)
Set up the wiki page link for the access service.- Parameters:
accessServiceWiki- String url
-
getAccessServiceOperationalStatus
public ServiceOperationalStatus getAccessServiceOperationalStatus()
Return the status of this access service.- Returns:
- AccessServiceOperationalStatus enum
-
setAccessServiceOperationalStatus
public void setAccessServiceOperationalStatus(ServiceOperationalStatus accessServiceOperationalStatus)
Set up the status of the access service.- Parameters:
accessServiceOperationalStatus- AccessServiceOperationalStatus enum
-
getAccessServiceInTopic
public Connection getAccessServiceInTopic()
Return the OCF Connection for the topic used to pass requests to this access service. The default values are constructed from the access service name. If this value is set to null then the access service ignores incoming events.- Returns:
- Connection for InTopic
-
setAccessServiceInTopic
public void setAccessServiceInTopic(Connection accessServiceInTopic)
Set up the OCF Connection for the topic used to pass requests to this access service. The default values are constructed from the access service name. If this value is set to null then the access service ignores incoming events.- Parameters:
accessServiceInTopic- Connection properties
-
getAccessServiceOutTopic
public Connection getAccessServiceOutTopic()
Return the OCF Connection for the topic used by this access service to publish events. The default values are constructed from the access service name. If this value is set to null then events are not published by this OMAS.- Returns:
- Connection for OutTopic
-
setAccessServiceOutTopic
public void setAccessServiceOutTopic(Connection accessServiceOutTopic)
Set up the OCF Connection of the topic used by this access service to publish events. The default values are constructed from the access service name. If this value is set to null then events are not published by this OMAS.- Parameters:
accessServiceOutTopic- Connection properties
-
getAccessServiceOptions
public Map<String,Object> getAccessServiceOptions()
Return the options for this access service. These are properties that are specific to the access service.- Returns:
- Map from String to String
-
setAccessServiceOptions
public void setAccessServiceOptions(Map<String,Object> accessServiceOptions)
Set up the options for this access service. These are properties that are specific to the access service.- Parameters:
accessServiceOptions- Map from String to String
-
toString
public String toString()
Standard toString method.
-
equals
public boolean equals(Object objectToCompare)
Validate that an object is equal depending on their stored values.
-
-