Class: Dcm4chee::Service::MoveScuService

Inherits:
MBean
  • Object
show all
Defined in:
lib/dcm4chee/services/move_scu_service.rb

Constant Summary collapse

MBEAN_NAME =
'dcm4chee.archive:service=MoveScu'

Instance Attribute Summary

Attributes inherited from MBean

#jolokia

Instance Method Summary collapse

Methods inherited from MBean

#initialize

Constructor Details

This class inherits a constructor from Dcm4chee::Service::MBean

Instance Method Details

#schedule_move(retrieve_aet, dest_aet, priority, pid, study_iuids, series_iuids = nil, sop_iuids = nil, scheduled_time = 0) ⇒ Hash

Move data to AE

Parameters:

  • retrieve_aet (String)
  • dest_aet (String)
  • priority (Integer)

    DICOM priority(0: Medium, 1: High, 2: Low)

  • pid (String)
  • study_iuids (Array)
  • series_iuids (Array) (defaults to: nil)
  • sop_iuids (Array) (defaults to: nil)
  • scheduled_time(milliseconds (Integer)

    from 1970-01-01 00:00:00)

Returns:

  • (Hash)

    Result



20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/dcm4chee/services/move_scu_service.rb', line 20

def schedule_move(retrieve_aet,
                  dest_aet,
                  priority,
                  pid,
                  study_iuids,
                  series_iuids = nil,
                  sop_iuids = nil,
                  scheduled_time = 0)
  signatures = [
    'java.lang.String',
    'java.lang.String',
    'int',
    'java.lang.String',
    '[Ljava.lang.String;',
    '[Ljava.lang.String;',
    '[Ljava.lang.String;',
    'long'
  ]

  jolokia.execute(MBEAN_NAME,
                  "scheduleMove(#{signatures.join(',')})",
                  [
                    retrieve_aet,
                    dest_aet,
                    priority || 0,
                    pid,
                    study_iuids,
                    series_iuids,
                    sop_iuids,
                    scheduled_time
                  ])
end