Class RemoteConnection

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    BroadcastRemoteConnection, CORBARemoteCommandConnection, RMIRemoteConnection

    public abstract class RemoteConnection
    extends java.lang.Object
    implements java.io.Serializable

    Purpose: Define an abstract class for the remote object that can execute a remote command using different transport protocols.

    Description: This abstract class represents the remote object that is used by the remote command manager to send remote commands. The underlying transport mechanism is transparently implemented by the transport subclass implementations.

    Since:
    OracleAS TopLink 10g (9.0.4)
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected ServiceId serviceId
      The service on the receiving end of this connection
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      INTERNAL: cleanup whatever is necessary.
      abstract java.lang.Object executeCommand​(byte[] command)
      INTERNAL: Execute the remote command.
      abstract java.lang.Object executeCommand​(Command command)
      INTERNAL: Execute the remote command.
      ServiceId getServiceId()
      INTERNAL: Return the service info of the receiving service
      void setServiceId​(ServiceId newServiceId)
      INTERNAL: Set the service info of the receiving service
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • serviceId

        protected ServiceId serviceId
        The service on the receiving end of this connection
    • Constructor Detail

      • RemoteConnection

        public RemoteConnection()
    • Method Detail

      • executeCommand

        public abstract java.lang.Object executeCommand​(byte[] command)
                                                 throws CommunicationException
        INTERNAL: Execute the remote command. The result of execution is returned.
        Throws:
        CommunicationException
      • getServiceId

        public ServiceId getServiceId()
        INTERNAL: Return the service info of the receiving service
      • setServiceId

        public void setServiceId​(ServiceId newServiceId)
        INTERNAL: Set the service info of the receiving service
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • close

        public void close()
        INTERNAL: cleanup whatever is necessary. Invoked when the TransportManager discard connections.