Package io.gitea.model
Class NodeInfo
- java.lang.Object
-
- io.gitea.model.NodeInfo
-
public class NodeInfo extends java.lang.ObjectNodeInfo contains standardized way of exposing metadata about a server running one of the distributed social networks
-
-
Constructor Summary
Constructors Constructor Description NodeInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeInfoaddProtocolsItem(java.lang.String protocolsItem)booleanequals(java.lang.Object o)java.lang.ObjectgetMetadata()Get metadatajava.util.List<java.lang.String>getProtocols()Get protocolsNodeInfoServicesgetServices()Get servicesNodeInfoSoftwaregetSoftware()Get softwareNodeInfoUsagegetUsage()Get usagejava.lang.StringgetVersion()Get versioninthashCode()java.lang.BooleanisOpenRegistrations()Get openRegistrationsNodeInfometadata(java.lang.Object metadata)NodeInfoopenRegistrations(java.lang.Boolean openRegistrations)NodeInfoprotocols(java.util.List<java.lang.String> protocols)NodeInfoservices(NodeInfoServices services)voidsetMetadata(java.lang.Object metadata)voidsetOpenRegistrations(java.lang.Boolean openRegistrations)voidsetProtocols(java.util.List<java.lang.String> protocols)voidsetServices(NodeInfoServices services)voidsetSoftware(NodeInfoSoftware software)voidsetUsage(NodeInfoUsage usage)voidsetVersion(java.lang.String version)NodeInfosoftware(NodeInfoSoftware software)java.lang.StringtoString()NodeInfousage(NodeInfoUsage usage)NodeInfoversion(java.lang.String version)
-
-
-
Method Detail
-
metadata
public NodeInfo metadata(java.lang.Object metadata)
-
getMetadata
public java.lang.Object getMetadata()
Get metadata- Returns:
- metadata
-
setMetadata
public void setMetadata(java.lang.Object metadata)
-
openRegistrations
public NodeInfo openRegistrations(java.lang.Boolean openRegistrations)
-
isOpenRegistrations
public java.lang.Boolean isOpenRegistrations()
Get openRegistrations- Returns:
- openRegistrations
-
setOpenRegistrations
public void setOpenRegistrations(java.lang.Boolean openRegistrations)
-
protocols
public NodeInfo protocols(java.util.List<java.lang.String> protocols)
-
addProtocolsItem
public NodeInfo addProtocolsItem(java.lang.String protocolsItem)
-
getProtocols
public java.util.List<java.lang.String> getProtocols()
Get protocols- Returns:
- protocols
-
setProtocols
public void setProtocols(java.util.List<java.lang.String> protocols)
-
services
public NodeInfo services(NodeInfoServices services)
-
getServices
public NodeInfoServices getServices()
Get services- Returns:
- services
-
setServices
public void setServices(NodeInfoServices services)
-
software
public NodeInfo software(NodeInfoSoftware software)
-
getSoftware
public NodeInfoSoftware getSoftware()
Get software- Returns:
- software
-
setSoftware
public void setSoftware(NodeInfoSoftware software)
-
usage
public NodeInfo usage(NodeInfoUsage usage)
-
getUsage
public NodeInfoUsage getUsage()
Get usage- Returns:
- usage
-
setUsage
public void setUsage(NodeInfoUsage usage)
-
version
public NodeInfo version(java.lang.String version)
-
getVersion
public java.lang.String getVersion()
Get version- Returns:
- version
-
setVersion
public void setVersion(java.lang.String version)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-