public class DefaultLink extends AbstractModel implements Link
Link.State, Link.Type| Constructor and Description |
|---|
DefaultLink(ProviderId providerId,
ConnectPoint src,
ConnectPoint dst,
Link.Type type,
Annotations... annotations)
Creates an active infrastructure link using the supplied information.
|
DefaultLink(ProviderId providerId,
ConnectPoint src,
ConnectPoint dst,
Link.Type type,
Link.State state,
boolean isDurable,
Annotations... annotations)
Creates an infrastructure link using the supplied information.
|
| Modifier and Type | Method and Description |
|---|---|
ConnectPoint |
dst()
Returns the link destination connection point.
|
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isDurable()
Indicates if the link is to be considered durable.
|
ConnectPoint |
src()
Returns the link source connection point.
|
Link.State |
state()
Returns the link state.
|
String |
toString() |
Link.Type |
type()
Returns the link type.
|
providerIdannotationsclone, finalize, getClass, notify, notifyAll, wait, wait, waitannotationsproviderIdpublic DefaultLink(ProviderId providerId, ConnectPoint src, ConnectPoint dst, Link.Type type, Annotations... annotations)
providerId - provider identitysrc - link sourcedst - link destinationtype - link typeannotations - optional key/value annotationspublic DefaultLink(ProviderId providerId, ConnectPoint src, ConnectPoint dst, Link.Type type, Link.State state, boolean isDurable, Annotations... annotations)
providerId - provider identitysrc - link sourcedst - link destinationtype - link typestate - link stateisDurable - indicates if the link is to be considered durableannotations - optional key/value annotationspublic ConnectPoint src()
Linkpublic ConnectPoint dst()
Linkpublic Link.State state()
Linkpublic boolean isDurable()
LinkCopyright © 2015. All rights reserved.