| Modifier and Type | Class and Description |
|---|---|
static interface |
IOState.Factory<T extends Stoppable> |
static class |
IOState.Type |
| Modifier and Type | Field and Description |
|---|---|
protected String |
detailedMessage |
protected org.joda.time.DateTime |
startedAt |
protected IOState.Type |
state |
protected T |
stoppable |
| Constructor and Description |
|---|
IOState(com.google.common.eventbus.EventBus eventbus,
T stoppable) |
IOState(com.google.common.eventbus.EventBus eventbus,
T stoppable,
IOState.Type state) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeStarted() |
boolean |
equals(Object o) |
String |
getDetailedMessage() |
org.joda.time.DateTime |
getStartedAt() |
IOState.Type |
getState() |
T |
getStoppable() |
int |
hashCode() |
void |
setDetailedMessage(String detailedMessage) |
void |
setStartedAt(org.joda.time.DateTime startedAt) |
void |
setState(IOState.Type state) |
void |
setState(IOState.Type state,
String detailedMessage) |
void |
setStoppable(T stoppable) |
String |
toString() |
protected IOState.Type state
protected org.joda.time.DateTime startedAt
protected String detailedMessage
public IOState(com.google.common.eventbus.EventBus eventbus,
T stoppable)
public IOState(com.google.common.eventbus.EventBus eventbus,
T stoppable,
IOState.Type state)
public T getStoppable()
public void setStoppable(T stoppable)
public IOState.Type getState()
public boolean canBeStarted()
public void setState(IOState.Type state, String detailedMessage)
public void setState(IOState.Type state)
public org.joda.time.DateTime getStartedAt()
public void setStartedAt(org.joda.time.DateTime startedAt)
public String getDetailedMessage()
public void setDetailedMessage(String detailedMessage)
Copyright © 2012–2022 Graylog, Inc.. All rights reserved.