Relay device and relay method
Abstract
A processor receives part data of data group from a transmission source. The processor stores the received part data in a first storage region of a first storage unit in accordance with storing order when there is a free region in the first storage region. The processor stores the received part data in a second storage region of the first storage unit when there is no free region in the first storage region. The processor evacuates the part data stored in the second storage region to a second storage unit in accordance with the storing order. The processor deletes the evacuated part data from the second storage region. The processor restores, when some part data remains in the second storage unit and a free region has been generated in the first storage region, the remaining part data to the generated free region in accordance with the storing order.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1 . A relay device for transmitting a data group received from a transmission source to a transmission destination, the relay device comprising:
a first storage unit including a first storage region and a second storage region; a second storage unit; and a processor to
receive part data of the data group from the transmission source,
store the received part data in the first storage region in accordance with storing order when there is a free region in the first storage region,
store the received part data in the second storage region when there is no free region in the first storage region,
evacuate the part data stored in the second storage region to the second storage unit in accordance with the storing order,
delete the evacuated part data from the second storage region,
transmit the part data stored in the first storage region to the transmission destination,
delete the transmitted part data from the first storage region to generate a free region in the first storage region,
determine whether any part data remains in the second storage unit,
determine whether a free region has been generated in the first storage region,
restore, when it is determined that some part data remains in the second storage unit and that a free region has been generated in the first storage region, the remaining part data to the generated free region in accordance with the storing order, and
delete the restored part data from the second storage unit.
2 . The relay device according to claim 1 , wherein
the processor stores part data subsequently received from the transmission source in the second storage region when it is determined that some part data remains in the second storage unit.
3 . The relay device according to claim 1 , further comprising:
a third storage unit,
wherein
the processor stores, in the third storage unit, first part data stored in the first storage region in accordance with the storing order.
4 . The relay device according to claim 3 , wherein
the processor transmits, when the first part data has been transmitted and stored in the third storage unit, information that indicates processing completion of the first part data to the transmission source.
5 . The relay device according to claim 1 , wherein
the processor transmits, when the evacuated data has been deleted from the second storage region, information that indicates deletion completion of the evacuated data to the transmission source.
6 . A relay method executed by a relay device for transmitting a data group received from a transmission source to a transmission destination, the method comprising:
receiving, by the relay device, part data of the data group from the transmission source; storing the received part data in a first storage region in accordance with storing order when there is a free region in the first storage region, the first storage region being included in a first storage unit; storing the received part data in a second storage region when there is no free region in the first storage region, the second storage region being included in the first storage unit; evacuating the part data stored in the second storage region to a second storage unit in accordance with the storing order; deleting the evacuated part data from the second storage region; transmitting the part data stored in the first storage region to the transmission destination; deleting the transmitted part data from the first storage region to generate a free region in the first storage region; determining whether any part data remains in the second storage unit; determining whether a free region has been generated in the first storage region; restoring, when it is determined that some part data remains in the second storage unit and that a free region has been generated in the first storage region, the remaining part data to the generated free region in accordance with the storing order; and deleting the restored part data from the second storage unit.
7 . A computer-readable recording medium storing a program that causes a computer to execute a procedure, the procedure comprising:
receiving part data of a data group from a transmission source; storing the received part data in a first storage region in accordance with storing order when there is a free region in the first storage region, the first storage region being included in a first storage unit; storing the received part data in a second storage region when there is no free region in the first storage region, the second storage region being included in the first storage unit; evacuating the part data stored in the second storage region to a second storage unit in accordance with the storing order; deleting the evacuated part data from the second storage region; transmitting the part data stored in the first storage region to a transmission destination; deleting the transmitted part data from the first storage region to generate a free region in the first storage region; determining whether any part data remains in the second storage unit; determining whether a free region has been generated in the first storage region; restoring, when it is determined that some part data remains in the second storage unit and that a free region has been generated in the first storage region, the remaining part data to the generated free region in accordance with the storing order; and deleting the restored part data from the second storage unit.Join the waitlist — get patent alerts
Track US2014006709A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.