com.epam.cmemdp.impl
Class Instrument

java.lang.Object
  extended by com.epam.cmemdp.impl.Instrument
All Implemented Interfaces:
OverflowListener

public class Instrument
extends java.lang.Object
implements OverflowListener


Field Summary
 java.util.concurrent.atomic.AtomicBoolean insideRecovery
           
static int SEC_DEF_TAG_ID
           
static int SEC_GROUP_TAG_ID
           
static int SYMBOL_TAG_ID
           
 
Constructor Summary
Instrument(java.lang.String securityDescription, int incrementQueueSize, int corridorQueueSize)
           
Instrument(java.lang.String secDesc, int incrementQueueSize, int corridorQueueSize, RecoveryOptions recoveryOptions)
           
 
Method Summary
 void active()
           
 boolean checkNextRptSecNum83(long rptSeqNum)
           
 MDChannel getChannel()
           
 Corridor getCorridor()
           
 com.epam.mdpadaptor.util.queue.MessageQueue getIncrementalQueue()
           
 InstrumentListener getInstrumentListener()
           
 long getLastProcessedSeqNum34()
           
 long getNextSequenceID83()
           
 long getRecoveryMsgEndSeqNum()
           
 long getRecoveryMsgStartSeqNum()
           
 RecoveryOptions getRecoveryOptions()
           
 long getRevision()
           
 java.lang.String getSecDesc()
           
 long getSecurityID()
           
 int incrementAndGetSnapshotCyclesCounter()
           
 void incrementNextSequenceID83()
           
 boolean isActive()
           
 boolean isFirstRecovery()
           
 boolean isForcedRecovery()
           
 boolean isHistoryRecovery()
           
 boolean isListenForIncrements()
           
 boolean isListenForSnapshots()
           
 boolean isRecovery()
           
 boolean isRecoveryByOverflow()
           
 boolean isThreadRecovery()
           
 void onOverflow()
           
 void resetFirstRecovery()
           
 void resetRecoveryByOverflow()
           
 void resetSnapshotCyclesCounter()
           
 void setActive(boolean active)
           
 void setChannel(MDChannel channel)
           
 void setHistoryRecovery(boolean historyRecovery)
           
 void setInstrumentListener(InstrumentListener instrumentListener)
           
 void setLastProcessedSeqNum34(long lastProcessedSeqNum34)
           
 void setListenForIncrements(boolean listenForIncrements)
           
 void setListenForSnapshots(boolean listenForSnapshots)
           
 void setNextSequenceID83(long nextSequenceID83)
           
 void setRecovery(boolean recovery)
           
 void setRecoveryMsgEndSeqNum(long recoveryMsgEndSeqNum)
           
 void setRecoveryMsgStartSeqNum(long recoveryMsgStartSeqNum)
           
 void setRecoveryOptions(RecoveryOptions recoveryOptions)
           
 void setRevision(long revision)
           
 void setSecurityDescription(java.lang.String secDesc)
           
 void setSecurityID(long securityID)
           
 void setThreadRecovery(boolean recovery)
           
 void switchOnFirstRecovery()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SEC_GROUP_TAG_ID

public static final int SEC_GROUP_TAG_ID
See Also:
Constant Field Values

SEC_DEF_TAG_ID

public static final int SEC_DEF_TAG_ID
See Also:
Constant Field Values

SYMBOL_TAG_ID

public static final int SYMBOL_TAG_ID
See Also:
Constant Field Values

insideRecovery

public java.util.concurrent.atomic.AtomicBoolean insideRecovery
Constructor Detail

Instrument

public Instrument(java.lang.String securityDescription,
                  int incrementQueueSize,
                  int corridorQueueSize)

Instrument

public Instrument(java.lang.String secDesc,
                  int incrementQueueSize,
                  int corridorQueueSize,
                  RecoveryOptions recoveryOptions)
Method Detail

getSecDesc

public java.lang.String getSecDesc()

setSecurityDescription

public void setSecurityDescription(java.lang.String secDesc)

isActive

public boolean isActive()

setActive

public void setActive(boolean active)

active

public void active()

isRecovery

public boolean isRecovery()

setRecovery

public void setRecovery(boolean recovery)

getRecoveryOptions

public RecoveryOptions getRecoveryOptions()

setRecoveryOptions

public void setRecoveryOptions(RecoveryOptions recoveryOptions)

getChannel

public MDChannel getChannel()

setChannel

public void setChannel(MDChannel channel)

getSecurityID

public long getSecurityID()

setSecurityID

public void setSecurityID(long securityID)

isListenForIncrements

public boolean isListenForIncrements()

setListenForIncrements

public void setListenForIncrements(boolean listenForIncrements)

isListenForSnapshots

public boolean isListenForSnapshots()

setListenForSnapshots

public void setListenForSnapshots(boolean listenForSnapshots)

getNextSequenceID83

public long getNextSequenceID83()

setNextSequenceID83

public void setNextSequenceID83(long nextSequenceID83)

incrementNextSequenceID83

public void incrementNextSequenceID83()

getIncrementalQueue

public com.epam.mdpadaptor.util.queue.MessageQueue getIncrementalQueue()

getInstrumentListener

public InstrumentListener getInstrumentListener()

setInstrumentListener

public void setInstrumentListener(InstrumentListener instrumentListener)

getRevision

public long getRevision()

setRevision

public void setRevision(long revision)

getCorridor

public Corridor getCorridor()

resetFirstRecovery

public void resetFirstRecovery()

switchOnFirstRecovery

public void switchOnFirstRecovery()

isFirstRecovery

public boolean isFirstRecovery()

resetRecoveryByOverflow

public void resetRecoveryByOverflow()

isRecoveryByOverflow

public boolean isRecoveryByOverflow()

isForcedRecovery

public boolean isForcedRecovery()

setThreadRecovery

public void setThreadRecovery(boolean recovery)

isThreadRecovery

public boolean isThreadRecovery()

getLastProcessedSeqNum34

public long getLastProcessedSeqNum34()

setLastProcessedSeqNum34

public void setLastProcessedSeqNum34(long lastProcessedSeqNum34)

getRecoveryMsgStartSeqNum

public long getRecoveryMsgStartSeqNum()

setRecoveryMsgStartSeqNum

public void setRecoveryMsgStartSeqNum(long recoveryMsgStartSeqNum)

getRecoveryMsgEndSeqNum

public long getRecoveryMsgEndSeqNum()

setRecoveryMsgEndSeqNum

public void setRecoveryMsgEndSeqNum(long recoveryMsgEndSeqNum)

isHistoryRecovery

public boolean isHistoryRecovery()

setHistoryRecovery

public void setHistoryRecovery(boolean historyRecovery)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

checkNextRptSecNum83

public boolean checkNextRptSecNum83(long rptSeqNum)

onOverflow

public void onOverflow()
Specified by:
onOverflow in interface OverflowListener

incrementAndGetSnapshotCyclesCounter

public int incrementAndGetSnapshotCyclesCounter()

resetSnapshotCyclesCounter

public void resetSnapshotCyclesCounter()


Copyright © 2000-2014 EPAM Systems. All Rights Reserved.