Class SimpleSessionConnector

java.lang.Object
org.ivoa.dm.executionbroker.SimpleSessionConnector
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity @VoDml(id="execbroker:SimpleSessionConnector", role=objectType) public class SimpleSessionConnector extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
A connector to interact with the session. objectType: SimpleSessionConnector
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • kind

      @VoDml(id="execbroker:SimpleSessionConnector.kind", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String kind
      A URI to identify the type of connector. : Attribute kind : multiplicity 1
    • status

      @VoDml(id="execbroker:SimpleSessionConnector.status", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String status
      A flag to indicate the staus of the access method. : Attribute status : multiplicity 1
    • protocol

      @VoDml(id="execbroker:SimpleSessionConnector.protocol", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String protocol
      The access protocol, provided by the server when an offer is made. Typically one of [TCP, HTTP, HTTPS]. : Attribute protocol : multiplicity 1
    • location

      @VoDml(id="execbroker:SimpleSessionConnector.location", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String location
      The access connector URL. : Attribute location : multiplicity 1
  • Constructor Details

    • SimpleSessionConnector

      public SimpleSessionConnector()
      Creates a new SimpleSessionConnector
    • SimpleSessionConnector

      public SimpleSessionConnector(String kind, String status, String protocol, String location)
      full parameter constructor.
      Parameters:
      kind - A URI to identify the type of connector.
      status - A flag to indicate the staus of the access method.
      protocol - The access protocol, provided by the server when an offer is made. Typically one of [TCP, HTTP, HTTPS].
      location - The access connector URL.
    • SimpleSessionConnector

      public SimpleSessionConnector(SimpleSessionConnector other)
      Copy Constructor. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
  • Method Details

    • getId

      public Long getId()
      Specified by:
      getId in interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
      Returns:
      the id
    • updateUsing

      public void updateUsing(SimpleSessionConnector other)
      Update this object with the content of the given object. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
    • getKind

      public String getKind()
      Returns kind Attribute.
      Returns:
      kind Attribute
    • setKind

      public void setKind(String pKind)
      Set kind Attribute.
      Parameters:
      pKind - value to set
    • withKind

      public SimpleSessionConnector withKind(String pKind)
      fluent setter for kind Attribute.
      Parameters:
      pKind - value to set
      Returns:
      SimpleSessionConnector
    • getStatus

      public String getStatus()
      Returns status Attribute.
      Returns:
      status Attribute
    • setStatus

      public void setStatus(String pStatus)
      Set status Attribute.
      Parameters:
      pStatus - value to set
    • withStatus

      public SimpleSessionConnector withStatus(String pStatus)
      fluent setter for status Attribute.
      Parameters:
      pStatus - value to set
      Returns:
      SimpleSessionConnector
    • getProtocol

      public String getProtocol()
      Returns protocol Attribute.
      Returns:
      protocol Attribute
    • setProtocol

      public void setProtocol(String pProtocol)
      Set protocol Attribute.
      Parameters:
      pProtocol - value to set
    • withProtocol

      public SimpleSessionConnector withProtocol(String pProtocol)
      fluent setter for protocol Attribute.
      Parameters:
      pProtocol - value to set
      Returns:
      SimpleSessionConnector
    • getLocation

      public String getLocation()
      Returns location Attribute.
      Returns:
      location Attribute
    • setLocation

      public void setLocation(String pLocation)
      Set location Attribute.
      Parameters:
      pLocation - value to set
    • withLocation

      public SimpleSessionConnector withLocation(String pLocation)
      fluent setter for location Attribute.
      Parameters:
      pLocation - value to set
      Returns:
      SimpleSessionConnector
    • createSimpleSessionConnector

      create a SimpleSessionConnector in functional builder style.
      Parameters:
      f - the functional builder.
      Returns:
      an object initialized from the builder.
    • forceLoad

      public void forceLoad()
      Specified by:
      forceLoad in interface org.ivoa.vodml.jpa.JPAManipulations
    • delete

      public void delete(jakarta.persistence.EntityManager em)
      Specified by:
      delete in interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>