Class ClientTracker.ClientOperation

  • Enclosing class:
    ClientTracker

    private abstract static class ClientTracker.ClientOperation
    extends java.lang.Object
    Describes an operation to be performed on a TrackedClient object which is already part of this tracker's model.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private long birthday_  
      private java.lang.String id_  
      private java.lang.String mtype_  
    • Constructor Summary

      Constructors 
      Constructor Description
      ClientOperation​(java.lang.String id, java.lang.String mtype)
      Constructor.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      long getBirthday()
      Returns the creation time of this object.
      java.lang.String getId()
      Returns the client ID for the client this operation applies to.
      java.lang.String getMType()
      Returns the MType of the message which triggered this operation.
      abstract void perform​(ClientTracker.TrackedClient client)
      Performs the instance-specific operation on a given client.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • id_

        private final java.lang.String id_
      • mtype_

        private final java.lang.String mtype_
      • birthday_

        private final long birthday_
    • Constructor Detail

      • ClientOperation

        ClientOperation​(java.lang.String id,
                        java.lang.String mtype)
        Constructor.
        Parameters:
        id - client public ID
        mtype - MType of the message which triggered this operation
    • Method Detail

      • perform

        public abstract void perform​(ClientTracker.TrackedClient client)
        Performs the instance-specific operation on a given client.
        Parameters:
        client - client
      • getId

        public java.lang.String getId()
        Returns the client ID for the client this operation applies to.
        Returns:
        client public ID
      • getMType

        public java.lang.String getMType()
        Returns the MType of the message which triggered this operation.
        Returns:
        message MType
      • getBirthday

        public long getBirthday()
        Returns the creation time of this object.
        Returns:
        System.currentTimeMillis() at construction
      • toString

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