*/
public class TmfXmlReadWriteStateValue extends TmfXmlStateValue {
+ private static final String ILLEGAL_STATE_EXCEPTION_MESSAGE = "The state system hasn't been initialized yet"; //$NON-NLS-1$
+
/**
* Constructor where the path to the value is a list of state attributes
*
protected void processValue(int quark, long timestamp, ITmfStateValue value) throws AttributeNotFoundException, TimeRangeException, StateValueTypeException {
ITmfStateSystemBuilder ss = getStateSystem();
if (ss == null) {
- throw new IllegalStateException("The state system hasn't been initialized yet"); //$NON-NLS-1$
+ throw new IllegalStateException(ILLEGAL_STATE_EXCEPTION_MESSAGE);
}
switch (getStackType()) {
case POP:
protected void incrementValue(ITmfEvent event, int quark, long timestamp) throws StateValueTypeException, TimeRangeException, AttributeNotFoundException {
ITmfStateSystemBuilder ss = getStateSystem();
if (ss == null) {
- throw new IllegalStateException("The state system hasn't been initialized yet"); //$NON-NLS-1$
+ throw new IllegalStateException(ILLEGAL_STATE_EXCEPTION_MESSAGE);
}
ss.incrementAttribute(timestamp, quark);
}
public void incrementValue(ITmfEvent event, int quark, long timestamp) throws StateValueTypeException, TimeRangeException, AttributeNotFoundException {
ITmfStateSystem ss = getStateSystem();
if (ss == null) {
- throw new IllegalStateException("The state system hasn't been initialized yet"); //$NON-NLS-1$
+ throw new IllegalStateException(ILLEGAL_STATE_EXCEPTION_MESSAGE);
}
ITmfStateValue value = incrementByType(quark, ss, fValue);
if (value != null) {
public void incrementValue(ITmfEvent event, int quark, long timestamp) throws StateValueTypeException, TimeRangeException, AttributeNotFoundException {
ITmfStateSystem ss = getSsContainer().getStateSystem();
if (ss == null) {
- throw new IllegalStateException("The state system hasn't been initialized yet"); //$NON-NLS-1$
+ throw new IllegalStateException(ILLEGAL_STATE_EXCEPTION_MESSAGE);
}
ITmfStateValue incrementValue = getValue(event);
ITmfStateValue value = incrementByType(quark, ss, incrementValue);
int quarkQuery = IXmlStateSystemContainer.ROOT_QUARK;
ITmfStateSystem ss = getStateSystem();
if (ss == null) {
- throw new IllegalStateException("The state system hasn't been initialized yet"); //$NON-NLS-1$
+ throw new IllegalStateException(ILLEGAL_STATE_EXCEPTION_MESSAGE);
}
for (ITmfXmlStateAttribute attribute : fQueryValue) {
public void incrementValue(ITmfEvent event, int quark, long timestamp) throws StateValueTypeException, TimeRangeException, AttributeNotFoundException {
ITmfStateSystem ss = getStateSystem();
if (ss == null) {
- throw new IllegalStateException("The state system hasn't been initialized yet"); //$NON-NLS-1$
+ throw new IllegalStateException(ILLEGAL_STATE_EXCEPTION_MESSAGE);
}
ITmfStateValue incrementValue = getValue(event);