@Entity public class Endpoint extends Persistable
Cable.| Modifier and Type | Class and Description |
|---|---|
static class |
Endpoint.Validity
This represents the endpoint data validity.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_LABEL_SIZE
Maximum accepted length for label field.
|
id| Modifier | Constructor and Description |
|---|---|
protected |
Endpoint()
Constructor for JPA entity.
|
|
Endpoint(String device)
Constructs a new instance of cable endpoint.
|
|
Endpoint(String device,
String building,
String rack,
Connector connector,
String label)
Constructs a new instance of cable endpoint.
|
|
Endpoint(String device,
String building,
String rack,
Connector connector,
String label,
String deviceFbsTag,
String rackFbsTag)
Constructs a new instance of cable endpoint.
|
|
Endpoint(String device,
String building,
String rack,
Connector connector,
String label,
String deviceFbsTag,
String rackFbsTag,
boolean checkArgument)
Constructs a new instance of cable endpoint.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getBuilding() |
Connector |
getConnector() |
String |
getDevice() |
String |
getDeviceChessId() |
String |
getDeviceFbsTag() |
String |
getLabel() |
NameStatus |
getNameStatus() |
String |
getRack() |
String |
getRackChessId() |
String |
getRackFbsTag() |
String |
getUuid() |
Endpoint.Validity |
getValidity() |
int |
hashCode() |
boolean |
isValid() |
void |
setBuilding(String building) |
void |
setConnector(Connector connector) |
void |
setDevice(String device) |
void |
setDeviceChessId(String deviceChessId) |
void |
setDeviceFbsTag(String deviceFbsTag) |
void |
setLabel(String label) |
void |
setNameStatus(NameStatus status) |
void |
setRack(String rack) |
void |
setRackChessId(String rackChessId) |
void |
setRackFbsTag(String rackFbsTag) |
void |
setUuid(String uuid) |
void |
setValidity(Endpoint.Validity status) |
void |
update(String device,
String building,
String rack,
Connector connector,
String label)
Updates the attribute information of this endpoint device.
|
void |
update(String device,
String building,
String rack,
Connector connector,
String label,
String deviceFbsTag,
String rackFbsTag)
Updates the attribute information of this endpoint device.
|
void |
update(String device,
String building,
String rack,
Connector connector,
String label,
String deviceFbsTag,
String rackFbsTag,
boolean checkArgument)
Updates the attribute information of this endpoint device.
|
getIdpublic static final int MAX_LABEL_SIZE
protected Endpoint()
public Endpoint(String device)
device - The name of this endpoint device. The name cannot be null.public Endpoint(String device, String building, String rack, Connector connector, String label)
device - the name of this endpoint device. The name cannot be null.building - the building the endpoint is atrack - the rack the endpoint is atconnector - the connector between cable and devicelabel - the labelpublic Endpoint(String device, String building, String rack, Connector connector, String label, String deviceFbsTag, String rackFbsTag)
device - the name of this endpoint device. The name cannot be null.building - the building the endpoint is atrack - the rack the endpoint is atconnector - the connector between cable and devicelabel - the labeldeviceFbsTag - the device fbs tagrackFbsTag - the rack fbs tagpublic Endpoint(String device, String building, String rack, Connector connector, String label, String deviceFbsTag, String rackFbsTag, boolean checkArgument)
device - the name of this endpoint device. The name cannot be null.building - the building the endpoint is atrack - the rack the endpoint is atconnector - the connector between cable and devicelabel - the labeldeviceFbsTag - the device fbs tagrackFbsTag - the rack fbs tagcheckArgument - if arguments to be checked or not (trusted)public void update(String device, String building, String rack, Connector connector, String label)
device - the name of this endpoint device. The name cannot be null.building - the building the endpoint is atrack - the rack the endpoint is atconnector - the connector between cable and device.label - the labelupdate(String, String, String, Connector, String, String, String)public void update(String device, String building, String rack, Connector connector, String label, String deviceFbsTag, String rackFbsTag)
device - the name of this endpoint device. The name cannot be null.building - the building the endpoint is atrack - the rack the endpoint is atconnector - the connector between cable and device.label - the labeldeviceFbsTag - the device fbs tagrackFbsTag - the rack fbs tagpublic void update(String device, String building, String rack, Connector connector, String label, String deviceFbsTag, String rackFbsTag, boolean checkArgument)
device - the name of this endpoint device. The name cannot be null.building - the building the endpoint is atrack - the rack the endpoint is atconnector - the connector between cable and device.label - the labeldeviceFbsTag - the device fbs tagrackFbsTag - the rack fbs tagcheckArgument - if arguments to be checked or not (trusted)public void setValidity(Endpoint.Validity status)
status - the endpoint status to setpublic void setNameStatus(NameStatus status)
status - the endpoint name status to setpublic String getDevice()
public void setDevice(String device)
public String getDeviceFbsTag()
public void setDeviceFbsTag(String deviceFbsTag)
public String getBuilding()
public void setBuilding(String building)
public String getRack()
public void setRack(String rack)
public String getRackFbsTag()
public void setRackFbsTag(String rackFbsTag)
public String getUuid()
public void setUuid(String uuid)
public Connector getConnector()
public void setConnector(Connector connector)
public String getLabel()
public void setLabel(String label)
public Endpoint.Validity getValidity()
public boolean isValid()
public NameStatus getNameStatus()
public String getDeviceChessId()
public void setDeviceChessId(String deviceChessId)
public String getRackChessId()
public void setRackChessId(String rackChessId)
Copyright © 2025 European Spallation Source. All rights reserved.