jetstream-api 0.5.1__tar.gz → 0.5.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {jetstream_api-0.5.1 → jetstream_api-0.5.2}/PKG-INFO +1 -1
- {jetstream_api-0.5.1 → jetstream_api-0.5.2}/ilink/__init__.py +1 -1
- {jetstream_api-0.5.1 → jetstream_api-0.5.2}/ilink/admin.py +14 -6
- {jetstream_api-0.5.1 → jetstream_api-0.5.2}/ilink/properties.py +36 -28
- {jetstream_api-0.5.1 → jetstream_api-0.5.2}/jetstream_api.egg-info/PKG-INFO +1 -1
- {jetstream_api-0.5.1 → jetstream_api-0.5.2}/pyproject.toml +1 -1
- {jetstream_api-0.5.1 → jetstream_api-0.5.2}/LICENSE.txt +0 -0
- {jetstream_api-0.5.1 → jetstream_api-0.5.2}/README.md +0 -0
- {jetstream_api-0.5.1 → jetstream_api-0.5.2}/ilink/admintopic.py +0 -0
- {jetstream_api-0.5.1 → jetstream_api-0.5.2}/ilink/common.py +0 -0
- {jetstream_api-0.5.1 → jetstream_api-0.5.2}/ilink/connectivity.py +0 -0
- {jetstream_api-0.5.1 → jetstream_api-0.5.2}/ilink/exception.py +0 -0
- {jetstream_api-0.5.1 → jetstream_api-0.5.2}/ilink/msg.py +0 -0
- {jetstream_api-0.5.1 → jetstream_api-0.5.2}/ilink/pattern.py +0 -0
- {jetstream_api-0.5.1 → jetstream_api-0.5.2}/ilink/producer.py +0 -0
- {jetstream_api-0.5.1 → jetstream_api-0.5.2}/ilink/py.typed +0 -0
- {jetstream_api-0.5.1 → jetstream_api-0.5.2}/ilink/qmgr.py +0 -0
- {jetstream_api-0.5.1 → jetstream_api-0.5.2}/ilink/topic.py +0 -0
- {jetstream_api-0.5.1 → jetstream_api-0.5.2}/ilink/util.py +0 -0
- {jetstream_api-0.5.1 → jetstream_api-0.5.2}/jetstream_api.egg-info/SOURCES.txt +0 -0
- {jetstream_api-0.5.1 → jetstream_api-0.5.2}/jetstream_api.egg-info/dependency_links.txt +0 -0
- {jetstream_api-0.5.1 → jetstream_api-0.5.2}/jetstream_api.egg-info/requires.txt +0 -0
- {jetstream_api-0.5.1 → jetstream_api-0.5.2}/jetstream_api.egg-info/top_level.txt +0 -0
- {jetstream_api-0.5.1 → jetstream_api-0.5.2}/setup.cfg +0 -0
- {jetstream_api-0.5.1 → jetstream_api-0.5.2}/tests/test_example.py +0 -0
|
@@ -6278,7 +6278,10 @@ class ILLogBrowser:
|
|
|
6278
6278
|
self.service = service
|
|
6279
6279
|
|
|
6280
6280
|
def __del__(self) -> None:
|
|
6281
|
-
|
|
6281
|
+
# 생성자가 중간에 실패하면 속성이 없을 수 있다. __del__ 에서 난 예외는
|
|
6282
|
+
# 파이썬이 삼키고 stderr 로만 찍으므로, 동작에는 문제가 없어도 로그가
|
|
6283
|
+
# 지저분해진다 - getattr 로 방어한다.
|
|
6284
|
+
if getattr(self, "browserId", None) and getattr(self, "service", None):
|
|
6282
6285
|
self.close()
|
|
6283
6286
|
|
|
6284
6287
|
def close(self) -> None:
|
|
@@ -6289,10 +6292,11 @@ class ILLogBrowser:
|
|
|
6289
6292
|
Note:
|
|
6290
6293
|
닫지 않으면 서버에 커서가 남는다. ``try/finally`` 로 반드시 닫아라.
|
|
6291
6294
|
"""
|
|
6292
|
-
|
|
6295
|
+
service = getattr(self, "service", None)
|
|
6296
|
+
if service is None or not service.isOnline():
|
|
6293
6297
|
return
|
|
6294
6298
|
try:
|
|
6295
|
-
|
|
6299
|
+
service.request(
|
|
6296
6300
|
ILC.MIMQ_BROWSER_DELETION,
|
|
6297
6301
|
ILC.MIMQ_SUCCESSFUL_BROWSER_DELETION,
|
|
6298
6302
|
self.browserId,
|
|
@@ -6388,7 +6392,10 @@ class ILQueueBrowser:
|
|
|
6388
6392
|
self.closed = False
|
|
6389
6393
|
|
|
6390
6394
|
def __del__(self) -> None:
|
|
6391
|
-
|
|
6395
|
+
# 생성자가 중간에 실패하면 속성이 없을 수 있다. __del__ 에서 난 예외는
|
|
6396
|
+
# 파이썬이 삼키고 stderr 로만 찍으므로, 동작에는 문제가 없어도 로그가
|
|
6397
|
+
# 지저분해진다 - getattr 로 방어한다.
|
|
6398
|
+
if getattr(self, "browserId", None) and getattr(self, "service", None):
|
|
6392
6399
|
self.close()
|
|
6393
6400
|
|
|
6394
6401
|
def close(self) -> None:
|
|
@@ -6399,10 +6406,11 @@ class ILQueueBrowser:
|
|
|
6399
6406
|
Note:
|
|
6400
6407
|
닫지 않으면 서버에 커서가 남는다. ``try/finally`` 로 반드시 닫아라.
|
|
6401
6408
|
"""
|
|
6402
|
-
|
|
6409
|
+
service = getattr(self, "service", None)
|
|
6410
|
+
if service is None or not service.isOnline() or getattr(self, "closed", True):
|
|
6403
6411
|
return
|
|
6404
6412
|
try:
|
|
6405
|
-
|
|
6413
|
+
service.request(
|
|
6406
6414
|
self.qmgrName,
|
|
6407
6415
|
ILC.MIMQ_BROWSER_DELETION,
|
|
6408
6416
|
ILC.MIMQ_SUCCESSFUL_BROWSER_DELETION,
|
|
@@ -1435,14 +1435,16 @@ class ILChannelProperty(_AutoAccessor):
|
|
|
1435
1435
|
"""연결 타임아웃을 설정한다.
|
|
1436
1436
|
|
|
1437
1437
|
Args:
|
|
1438
|
-
sec (int): 타임아웃(**초**). ``-1`` 이면
|
|
1438
|
+
sec (int): 타임아웃(**초**). ``-1`` 이면 무제한, 그 밖에는 **1 이상**.
|
|
1439
|
+
``0`` 은 거부된다.
|
|
1439
1440
|
|
|
1440
1441
|
Raises:
|
|
1441
|
-
UnsupportedOperationException: ``-1`` 미만일 때.
|
|
1442
|
+
UnsupportedOperationException: ``-1`` 도 아니고 1 미만일 때.
|
|
1442
1443
|
"""
|
|
1443
|
-
if sec
|
|
1444
|
+
if sec != -1 and sec < 1:
|
|
1444
1445
|
raise UnsupportedOperationException(
|
|
1445
|
-
f"[{sec}] is an unacceptable value.
|
|
1446
|
+
f"[{sec}] is an unacceptable value."
|
|
1447
|
+
" (acceptable value range: -1 for infinite, or 1 or greater)"
|
|
1446
1448
|
)
|
|
1447
1449
|
self.timeout = sec
|
|
1448
1450
|
|
|
@@ -2770,14 +2772,16 @@ class ILQmgrProperty(_AutoAccessor):
|
|
|
2770
2772
|
:data:`ILC.MIMQ_LOGGER_TYPE_CLIENT`(1) /
|
|
2771
2773
|
:data:`ILC.MIMQ_LOGGER_TYPE_QUEUE`(2) /
|
|
2772
2774
|
:data:`ILC.MIMQ_LOGGER_TYPE_CHANNEL`(3).
|
|
2773
|
-
value (int): 회전 크기(바이트). **1048576(1MB)
|
|
2775
|
+
value (int): 회전 크기(바이트). **1048576(1MB) ~ 104857600(100MB)**
|
|
2776
|
+
이어야 한다.
|
|
2774
2777
|
|
|
2775
2778
|
Raises:
|
|
2776
|
-
UnsupportedOperationException:
|
|
2779
|
+
UnsupportedOperationException: 범위를 벗어나거나 종류가 잘못됐을 때.
|
|
2777
2780
|
"""
|
|
2778
|
-
if value < 1048576:
|
|
2781
|
+
if value < 1048576 or value > 104857600:
|
|
2779
2782
|
raise UnsupportedOperationException(
|
|
2780
|
-
f"[{value}] is an unacceptable value.
|
|
2783
|
+
f"[{value}] is an unacceptable value."
|
|
2784
|
+
" (acceptable value range: 1048576~104857600)"
|
|
2781
2785
|
)
|
|
2782
2786
|
setattr(self, "logFileSize" + self._log_suffix(logger_type), value)
|
|
2783
2787
|
|
|
@@ -2804,14 +2808,14 @@ class ILQmgrProperty(_AutoAccessor):
|
|
|
2804
2808
|
:data:`ILC.MIMQ_LOGGER_TYPE_CLIENT`(1) /
|
|
2805
2809
|
:data:`ILC.MIMQ_LOGGER_TYPE_QUEUE`(2) /
|
|
2806
2810
|
:data:`ILC.MIMQ_LOGGER_TYPE_CHANNEL`(3).
|
|
2807
|
-
value (int): 보관 개수. **1
|
|
2811
|
+
value (int): 보관 개수. **1~999** 여야 한다.
|
|
2808
2812
|
|
|
2809
2813
|
Raises:
|
|
2810
|
-
UnsupportedOperationException:
|
|
2814
|
+
UnsupportedOperationException: 범위를 벗어나거나 종류가 잘못됐을 때.
|
|
2811
2815
|
"""
|
|
2812
|
-
if value < 1:
|
|
2816
|
+
if value < 1 or value > 999:
|
|
2813
2817
|
raise UnsupportedOperationException(
|
|
2814
|
-
f"[{value}] is an unacceptable value. (acceptable value range: 1~)"
|
|
2818
|
+
f"[{value}] is an unacceptable value. (acceptable value range: 1~999)"
|
|
2815
2819
|
)
|
|
2816
2820
|
setattr(self, "logFileCount" + self._log_suffix(logger_type), value)
|
|
2817
2821
|
|
|
@@ -3622,14 +3626,15 @@ class ILServiceProperty(_AutoAccessor):
|
|
|
3622
3626
|
"""소켓 송신 타임아웃을 설정한다.
|
|
3623
3627
|
|
|
3624
3628
|
Args:
|
|
3625
|
-
sec (int): 타임아웃(**초**).
|
|
3629
|
+
sec (int): 타임아웃(**초**). **1~864000**.
|
|
3630
|
+
엔진 rev 3283(TMOGUARD-1) 부터 ``-1``(무제한)과 ``0`` 은 거부된다.
|
|
3626
3631
|
|
|
3627
3632
|
Raises:
|
|
3628
|
-
UnsupportedOperationException:
|
|
3633
|
+
UnsupportedOperationException: 1~864000 을 벗어날 때.
|
|
3629
3634
|
"""
|
|
3630
|
-
if sec <
|
|
3635
|
+
if sec < 1 or sec > 864000:
|
|
3631
3636
|
raise UnsupportedOperationException(
|
|
3632
|
-
f"[{sec}] is an unacceptable value. (acceptable value range:
|
|
3637
|
+
f"[{sec}] is an unacceptable value. (acceptable value range: 1~864000)"
|
|
3633
3638
|
)
|
|
3634
3639
|
self.timeoutSocketSend = sec
|
|
3635
3640
|
|
|
@@ -3637,14 +3642,15 @@ class ILServiceProperty(_AutoAccessor):
|
|
|
3637
3642
|
"""소켓 수신 타임아웃을 설정한다.
|
|
3638
3643
|
|
|
3639
3644
|
Args:
|
|
3640
|
-
sec (int): 타임아웃(**초**).
|
|
3645
|
+
sec (int): 타임아웃(**초**). **1~864000**.
|
|
3646
|
+
엔진 rev 3283(TMOGUARD-1) 부터 ``-1``(무제한)과 ``0`` 은 거부된다.
|
|
3641
3647
|
|
|
3642
3648
|
Raises:
|
|
3643
|
-
UnsupportedOperationException:
|
|
3649
|
+
UnsupportedOperationException: 1~864000 을 벗어날 때.
|
|
3644
3650
|
"""
|
|
3645
|
-
if sec <
|
|
3651
|
+
if sec < 1 or sec > 864000:
|
|
3646
3652
|
raise UnsupportedOperationException(
|
|
3647
|
-
f"[{sec}] is an unacceptable value. (acceptable value range:
|
|
3653
|
+
f"[{sec}] is an unacceptable value. (acceptable value range: 1~864000)"
|
|
3648
3654
|
)
|
|
3649
3655
|
self.timeoutSocketRecv = sec
|
|
3650
3656
|
|
|
@@ -3709,14 +3715,16 @@ class ILServiceProperty(_AutoAccessor):
|
|
|
3709
3715
|
Args:
|
|
3710
3716
|
logger_type (int): 로거 종류. :data:`ILC.MIMQ_LOGGER_TYPE_SYSTEM`(0) 또는
|
|
3711
3717
|
:data:`ILC.MIMQ_LOGGER_TYPE_CLIENT`(1). 서비스는 이 둘뿐이다.
|
|
3712
|
-
value (int): 회전 크기(바이트). **1048576(1MB)
|
|
3718
|
+
value (int): 회전 크기(바이트). **1048576(1MB) ~ 104857600(100MB)**
|
|
3719
|
+
이어야 한다.
|
|
3713
3720
|
|
|
3714
3721
|
Raises:
|
|
3715
|
-
UnsupportedOperationException:
|
|
3722
|
+
UnsupportedOperationException: 범위를 벗어나거나 종류가 잘못됐을 때.
|
|
3716
3723
|
"""
|
|
3717
|
-
if value < 1048576:
|
|
3724
|
+
if value < 1048576 or value > 104857600:
|
|
3718
3725
|
raise UnsupportedOperationException(
|
|
3719
|
-
f"[{value}] is an unacceptable value.
|
|
3726
|
+
f"[{value}] is an unacceptable value."
|
|
3727
|
+
" (acceptable value range: 1048576~104857600)"
|
|
3720
3728
|
)
|
|
3721
3729
|
setattr(self, "logFileSize" + self._log_suffix(logger_type), value)
|
|
3722
3730
|
|
|
@@ -3739,14 +3747,14 @@ class ILServiceProperty(_AutoAccessor):
|
|
|
3739
3747
|
Args:
|
|
3740
3748
|
logger_type (int): 로거 종류. :data:`ILC.MIMQ_LOGGER_TYPE_SYSTEM`(0) 또는
|
|
3741
3749
|
:data:`ILC.MIMQ_LOGGER_TYPE_CLIENT`(1). 서비스는 이 둘뿐이다.
|
|
3742
|
-
value (int): 보관 개수. **1
|
|
3750
|
+
value (int): 보관 개수. **1~999** 여야 한다.
|
|
3743
3751
|
|
|
3744
3752
|
Raises:
|
|
3745
|
-
UnsupportedOperationException:
|
|
3753
|
+
UnsupportedOperationException: 범위를 벗어나거나 종류가 잘못됐을 때.
|
|
3746
3754
|
"""
|
|
3747
|
-
if value < 1:
|
|
3755
|
+
if value < 1 or value > 999:
|
|
3748
3756
|
raise UnsupportedOperationException(
|
|
3749
|
-
f"[{value}] is an unacceptable value. (acceptable value range: 1~)"
|
|
3757
|
+
f"[{value}] is an unacceptable value. (acceptable value range: 1~999)"
|
|
3750
3758
|
)
|
|
3751
3759
|
setattr(self, "logFileCount" + self._log_suffix(logger_type), value)
|
|
3752
3760
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|