Package pl.edu.icm.unity.types.endpoint
Class Endpoint
- java.lang.Object
-
- pl.edu.icm.unity.types.endpoint.Endpoint
-
- All Implemented Interfaces:
NamedObject
public class Endpoint extends Object implements NamedObject
Complete information allowing to create an endpoint- Author:
- K. Benedyczak
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Endpoint.EndpointState
-
Constructor Summary
Constructors Constructor Description Endpoint(com.fasterxml.jackson.databind.node.ObjectNode root)
Endpoint(String name, String typeId, String contextAddress, EndpointConfiguration configuration, long revision)
Endpoint(String name, String typeId, String contextAddress, EndpointConfiguration configuration, long revision, Endpoint.EndpointState state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
EndpointConfiguration
getConfiguration()
String
getContextAddress()
String
getName()
long
getRevision()
Endpoint.EndpointState
getState()
String
getTypeId()
int
hashCode()
com.fasterxml.jackson.databind.node.ObjectNode
toJson()
String
toString()
-
-
-
Constructor Detail
-
Endpoint
public Endpoint(String name, String typeId, String contextAddress, EndpointConfiguration configuration, long revision)
-
Endpoint
public Endpoint(String name, String typeId, String contextAddress, EndpointConfiguration configuration, long revision, Endpoint.EndpointState state)
-
Endpoint
public Endpoint(com.fasterxml.jackson.databind.node.ObjectNode root)
-
-
Method Detail
-
getConfiguration
public EndpointConfiguration getConfiguration()
-
getTypeId
public String getTypeId()
-
getName
public String getName()
- Specified by:
getName
in interfaceNamedObject
- Returns:
- human readable name of the object. Must be unique for the object class.
-
getContextAddress
public String getContextAddress()
-
getRevision
public long getRevision()
-
getState
public Endpoint.EndpointState getState()
-
toJson
public com.fasterxml.jackson.databind.node.ObjectNode toJson()
-
-