パッケージ com.shimizukenta.secs
インタフェース SecsCommunicator
- すべてのスーパーインタフェース:
java.lang.AutoCloseable
,java.io.Closeable
,OpenAndCloseable
,SecsCommunicateStateDetectable
,SecsCommunicatorConfigValueGettable
,SecsGemAccessor
,SecsLogObservable
,SecsMessagePassThroughObservable
,SecsMessageReceiveObservable
,SecsMessageSendable
- 既知のサブインタフェースのリスト:
HsmsSsCommunicator
,Secs1Communicator
,Secs1OnTcpIpCommunicator
,Secs1OnTcpIpReceiverCommunicator
public interface SecsCommunicator extends OpenAndCloseable, SecsGemAccessor, SecsMessageReceiveObservable, SecsMessagePassThroughObservable, SecsCommunicateStateDetectable, SecsLogObservable
This interface is implementation of SECS-Communicating, open/close communicating, receive/send SECS-Message.
- To create HSMS-SS-Communicator instance,
HsmsSsCommunicator.newInstance(HsmsSsCommunicatorConfig)
- To create SECS-I-on-TCP/IP-Communicator instance,
Secs1OnTcpIpCommunicator.newInstance(Secs1OnTcpIpCommunicatorConfig)
- To open communicating,
OpenAndCloseable.open()
- To close communicating,
Closeable.close()
- To receive Primary-Message,
SecsMessageReceiveObservable.addSecsMessageReceiveListener(SecsMessageReceiveListener)
orSecsMessageReceiveObservable.addSecsMessageReceiveBiListener(SecsMessageReceiveBiListener)
- To get communicate-state-changed,
SecsCommunicateStateDetectable.addSecsCommunicatableStateChangeListener(SecsCommunicatableStateChangeListener)
orSecsCommunicateStateDetectable.addSecsCommunicatableStateChangeBiListener(SecsCommunicatableStateChangeBiListener)
- To wait until communicatable,
SecsCommunicateStateDetectable.waitUntilCommunicatable()
- To wait until not communicatable,
SecsCommunicateStateDetectable.waitUntilNotCommunicatable()
- To access GEM-interface,
SecsGemAccessor.gem()
- To log communicating,
SecsLogObservable.addSecsLogListener(SecsLogListener)
-
メソッドの概要
修飾子とタイプ メソッド 説明 void
openAndWaitUntilCommunicatable()
Open and wait until communicatable.void
openAndWaitUntilCommunicatable(long timeout, java.util.concurrent.TimeUnit unit)
Open and wait until communicatable.インタフェースから継承されたメソッド java.io.Closeable
close
インタフェースから継承されたメソッド com.shimizukenta.secs.OpenAndCloseable
isClosed, isOpen, open
インタフェースから継承されたメソッド com.shimizukenta.secs.SecsCommunicateStateDetectable
addSecsCommunicatableStateChangeBiListener, addSecsCommunicatableStateChangeListener, isCommunicatable, removeSecsCommunicatableStateChangeBiListener, removeSecsCommunicatableStateChangeListener, waitUntilCommunicatable, waitUntilCommunicatable, waitUntilNotCommunicatable, waitUntilNotCommunicatable
インタフェースから継承されたメソッド com.shimizukenta.secs.SecsCommunicatorConfigValueGettable
deviceId, isEquip, sessionId
インタフェースから継承されたメソッド com.shimizukenta.secs.SecsGemAccessor
gem
インタフェースから継承されたメソッド com.shimizukenta.secs.SecsLogObservable
addReceiveSecsMessagePassThroughLogListener, addSecsLogListener, addSecsThrowableLogListener, addSendedSecsMessagePassThroughLogListener, addTrySendSecsMessagePassThroughLogListener, removeReceiveSecsMessagePassThroughLogListener, removeSecsLogListener, removeSecsThrowableLogListener, removeSendedSecsMessagePassThroughLogListener, removeTrySendSecsMessagePassThroughLogListener
インタフェースから継承されたメソッド com.shimizukenta.secs.SecsMessagePassThroughObservable
addReceiveSecsMessagePassThroughListener, addSendedSecsMessagePassThroughListener, addTrySendSecsMessagePassThroughListener, removeReceiveSecsMessagePassThroughListener, removeSendedSecsMessagePassThroughListener, removeTrySendSecsMessagePassThroughListener
インタフェースから継承されたメソッド com.shimizukenta.secs.SecsMessageReceiveObservable
addSecsMessageReceiveBiListener, addSecsMessageReceiveListener, removeSecsMessageReceiveBiListener, removeSecsMessageReceiveListener
-
メソッドの詳細
-
openAndWaitUntilCommunicatable
void openAndWaitUntilCommunicatable() throws java.io.IOException, java.lang.InterruptedExceptionOpen and wait until communicatable.Blocking-method.
If Already opened, do not open.
If Already communicatable, do nothing.
- 例外:
java.io.IOException
- if open failedjava.lang.InterruptedException
- if interrupted
-
openAndWaitUntilCommunicatable
void openAndWaitUntilCommunicatable(long timeout, java.util.concurrent.TimeUnit unit) throws java.io.IOException, java.lang.InterruptedException, java.util.concurrent.TimeoutExceptionOpen and wait until communicatable.Blocking-method.
If Already opened, do not open.
If Already communicatable, do nothing.
- パラメータ:
timeout
- the timeout valueunit
- the timeout unit- 例外:
java.io.IOException
- if open failedjava.lang.InterruptedException
- if interruptedjava.util.concurrent.TimeoutException
- if timeout
-