public class Service
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Service.Builder |
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
Service() |
Service(java.lang.Long serviceID,
java.lang.String serviceType,
java.lang.Long nodeID,
Optional<java.lang.Long> associatedBV,
Optional<java.lang.Long> associatedTS,
Optional<java.lang.Long> associatedVS,
java.lang.Long[] asyncResultIDs,
Optional<java.lang.Long> driveID,
java.lang.Boolean firstTimeStartup,
java.lang.Long ipcPort,
java.lang.Long iscsiPort,
java.lang.String status,
java.lang.Long[] startedDriveIDs,
java.lang.Long[] driveIDs,
Optional<java.lang.Boolean> smartSsdWriteEnabled) |
Modifier and Type | Method and Description |
---|---|
Service.Builder |
asBuilder() |
static Service.Builder |
builder() |
boolean |
equals(java.lang.Object o) |
Optional<java.lang.Long> |
getAssociatedBV()
This service's associated bulk volume service.
|
Optional<java.lang.Long> |
getAssociatedTS()
This service's associated transport service.
|
Optional<java.lang.Long> |
getAssociatedVS()
This service's associated volume service.
|
java.lang.Long[] |
getAsyncResultIDs()
The list of asynchronous jobs currently running for this service.
|
Optional<java.lang.Long> |
getDriveID()
If this service resides on a drive, the ID of that drive.
|
java.lang.Long[] |
getDriveIDs() |
java.lang.Boolean |
getFirstTimeStartup()
Has this service started successfully?
When a new drive is added to the system, the created service will initially have a value of false here.
|
java.lang.Long |
getIpcPort()
The port used for intra-cluster communication.
|
java.lang.Long |
getIscsiPort()
The port used for iSCSI traffic.
|
java.lang.Long |
getNodeID()
The node this service resides on.
|
java.lang.Long |
getServiceID()
Unique identifier for this service.
|
java.lang.String |
getServiceType() |
Optional<java.lang.Boolean> |
getSmartSsdWriteEnabled() |
java.lang.Long[] |
getStartedDriveIDs() |
java.lang.String |
getStatus() |
int |
hashCode() |
void |
setAssociatedBV(Optional<java.lang.Long> associatedBV) |
void |
setAssociatedTS(Optional<java.lang.Long> associatedTS) |
void |
setAssociatedVS(Optional<java.lang.Long> associatedVS) |
void |
setAsyncResultIDs(java.lang.Long[] asyncResultIDs) |
void |
setDriveID(Optional<java.lang.Long> driveID) |
void |
setDriveIDs(java.lang.Long[] driveIDs) |
void |
setFirstTimeStartup(java.lang.Boolean firstTimeStartup) |
void |
setIpcPort(java.lang.Long ipcPort) |
void |
setIscsiPort(java.lang.Long iscsiPort) |
void |
setNodeID(java.lang.Long nodeID) |
void |
setServiceID(java.lang.Long serviceID) |
void |
setServiceType(java.lang.String serviceType) |
void |
setSmartSsdWriteEnabled(Optional<java.lang.Boolean> smartSsdWriteEnabled) |
void |
setStartedDriveIDs(java.lang.Long[] startedDriveIDs) |
void |
setStatus(java.lang.String status) |
java.util.Map<java.lang.String,java.lang.Object> |
toMap() |
java.lang.String |
toString() |
public static final long serialVersionUID
@Since(value="7.0") public Service(java.lang.Long serviceID, java.lang.String serviceType, java.lang.Long nodeID, Optional<java.lang.Long> associatedBV, Optional<java.lang.Long> associatedTS, Optional<java.lang.Long> associatedVS, java.lang.Long[] asyncResultIDs, Optional<java.lang.Long> driveID, java.lang.Boolean firstTimeStartup, java.lang.Long ipcPort, java.lang.Long iscsiPort, java.lang.String status, java.lang.Long[] startedDriveIDs, java.lang.Long[] driveIDs, Optional<java.lang.Boolean> smartSsdWriteEnabled)
public java.lang.Long getServiceID()
public void setServiceID(java.lang.Long serviceID)
public java.lang.String getServiceType()
public void setServiceType(java.lang.String serviceType)
public java.lang.Long getNodeID()
public void setNodeID(java.lang.Long nodeID)
public Optional<java.lang.Long> getAssociatedBV()
public void setAssociatedBV(Optional<java.lang.Long> associatedBV)
public Optional<java.lang.Long> getAssociatedTS()
public void setAssociatedTS(Optional<java.lang.Long> associatedTS)
public Optional<java.lang.Long> getAssociatedVS()
public void setAssociatedVS(Optional<java.lang.Long> associatedVS)
public java.lang.Long[] getAsyncResultIDs()
public void setAsyncResultIDs(java.lang.Long[] asyncResultIDs)
public Optional<java.lang.Long> getDriveID()
public void setDriveID(Optional<java.lang.Long> driveID)
public java.lang.Boolean getFirstTimeStartup()
public void setFirstTimeStartup(java.lang.Boolean firstTimeStartup)
public java.lang.Long getIpcPort()
public void setIpcPort(java.lang.Long ipcPort)
public java.lang.Long getIscsiPort()
public void setIscsiPort(java.lang.Long iscsiPort)
public java.lang.String getStatus()
public void setStatus(java.lang.String status)
public java.lang.Long[] getStartedDriveIDs()
public void setStartedDriveIDs(java.lang.Long[] startedDriveIDs)
public java.lang.Long[] getDriveIDs()
public void setDriveIDs(java.lang.Long[] driveIDs)
public Optional<java.lang.Boolean> getSmartSsdWriteEnabled()
public void setSmartSsdWriteEnabled(Optional<java.lang.Boolean> smartSsdWriteEnabled)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.util.Map<java.lang.String,java.lang.Object> toMap()
public java.lang.String toString()
toString
in class java.lang.Object
public static Service.Builder builder()
public final Service.Builder asBuilder()