Class QueueCommandBean<B extends StatusBean>

java.lang.Object
org.eclipse.scanning.api.event.IdBean
org.eclipse.scanning.api.event.queue.QueueCommandBean<B>
Type Parameters:
B - the type of status bean
All Implemented Interfaces:
Serializable

public class QueueCommandBean<B extends StatusBean> extends IdBean
A QueueCommandBean can be used to control an IJobQueue. It can be sent to the IJobQueues command topic (as returned by IJobQueue.getCommandTopicName()). A proxy to the IJobQueue created by calling IEventService.createJobQueueProxy(java.net.URI, String) controls the real job queue on the server by sending QueueCommandBeans.

The action to be taken by the job queue is determined by the command, as set by calling setCommand(Command). The command available can by split into three categories:

The IJobQueue can be identified either by calling setJobQueueId(UUID) with the UUID of the job queue, or by calling setQueueName(String) with the name of the job queue's submission queue.

See Also:
  • Constructor Details

  • Method Details

    • getJobQueueId

      public UUID getJobQueueId()
    • setJobQueueId

      public void setJobQueueId(UUID consumerId)
    • getMessage

      public String getMessage()
    • setMessage

      public void setMessage(String message)
    • getQueueName

      public String getQueueName()
    • setQueueName

      public void setQueueName(String queueName)
    • getCommand

      public QueueCommandBean.Command getCommand()
    • setCommand

      public void setCommand(QueueCommandBean.Command command)
    • getJobBean

      public B getJobBean()
    • setJobBean

      public void setJobBean(B jobBean)
    • getErrorMessage

      public String getErrorMessage()
    • setErrorMessage

      public void setErrorMessage(String errorMessage)
    • getResult

      public Object getResult()
    • setResult

      public void setResult(Object result)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class IdBean
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class IdBean
    • toString

      public String toString()
      Overrides:
      toString in class Object