Record Class ObjectStorageConnectionState
java.lang.Object
java.lang.Record
com.priint.pubserverapi.infra.objectstorage.ObjectStorageConnectionState
- Record Components:
objectStorageName- a configured name of the storage solution used. May distinguish Minio, GCS and AWS S3 object stores.url- an address used for object sotre accessversion- a configured description of a storage solution versionconnected- true if the object storage server seems reachable for the PubServer
public record ObjectStorageConnectionState(String objectStorageName, String url, String version, boolean connected)
extends Record
This class describes object storage system the Pubserver connects to.
-
Constructor Summary
ConstructorsConstructorDescriptionObjectStorageConnectionState(String objectStorageName, String url, String version, boolean connected) Creates an instance of aObjectStorageConnectionStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theconnectedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theobjectStorageNamerecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.version()Returns the value of theversionrecord component.
-
Constructor Details
-
ObjectStorageConnectionState
public ObjectStorageConnectionState(String objectStorageName, String url, String version, boolean connected) Creates an instance of aObjectStorageConnectionStaterecord class.- Parameters:
objectStorageName- the value for theobjectStorageNamerecord componenturl- the value for theurlrecord componentversion- the value for theversionrecord componentconnected- the value for theconnectedrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
objectStorageName
Returns the value of theobjectStorageNamerecord component.- Returns:
- the value of the
objectStorageNamerecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
connected
public boolean connected()Returns the value of theconnectedrecord component.- Returns:
- the value of the
connectedrecord component
-