public class DefaultLink extends AbstractProjectableModel implements Link
Modifier and Type | Class and Description |
---|---|
static class |
DefaultLink.Builder
Builder for DefaultLink objects.
|
AbstractProjectableModel.AnnotationDriverData
Link.State, Link.Type
NO_DRIVER, NO_DRIVER_SERVICE
Modifier | Constructor and Description |
---|---|
protected |
DefaultLink(ProviderId providerId,
ConnectPoint src,
ConnectPoint dst,
Link.Type type,
Link.State state,
Annotations... annotations)
Creates an infrastructure link using the supplied information.
|
Modifier and Type | Method and Description |
---|---|
static DefaultLink.Builder |
builder()
Creates a new default link builder.
|
ConnectPoint |
dst()
Returns the link destination connection point.
|
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isExpected()
Indicates if the link was created from a predefined configuration.
|
ConnectPoint |
src()
Returns the link source connection point.
|
Link.State |
state()
Returns the link state.
|
String |
toString() |
Link.Type |
type()
Returns the link type.
|
as, asData, bindAndCheckDriver, bindDriver, driver, driverService, is, locateDriver, setDriverService
providerId
annotations
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
annotations
providerId
as, is, project
protected DefaultLink(ProviderId providerId, ConnectPoint src, ConnectPoint dst, Link.Type type, Link.State state, Annotations... annotations)
providerId
- provider identitysrc
- link sourcedst
- link destinationtype
- link typestate
- link stateannotations
- optional key/value annotationspublic ConnectPoint src()
Link
public ConnectPoint dst()
Link
public Link.State state()
Link
public boolean isExpected()
Link
isExpected
in interface Link
public static DefaultLink.Builder builder()