public class InstanceDescriptorImpl extends Object implements InstanceDescriptor
| Constructor and Description |
|---|
InstanceDescriptorImpl(String UUID) |
| Modifier and Type | Method and Description |
|---|---|
void |
addApplication(ApplicationDescriptor descriptor) |
void |
addApplication(ApplicationInfo info) |
void |
addHttpPort(int httpPort) |
void |
addHttpsPort(int httpsPort) |
boolean |
equals(Object obj)
Overrides equals purely based on the UUID value
|
int |
getAdminPort()
Gets the admin port number for this instance descriptor
|
List<URL> |
getApplicationURLS() |
Collection<ApplicationDescriptor> |
getDeployedApplications() |
int |
getHazelcastPort()
Gets the Hazelcast port number of this instance descriptor
|
InetAddress |
getHostName() |
List<Integer> |
getHttpPorts() |
List<Integer> |
getHttpsPorts() |
String |
getInstanceGroup()
Gets the instance group name
|
String |
getInstanceName() |
String |
getInstanceType()
Gets the instance type that this descriptor describes
|
long |
getLastHearbeat() |
String |
getMemberUUID() |
int |
hashCode()
Overrides hashcode based purely on the UUID hashcode
|
boolean |
isLiteMember()
Checks whether or not this instance is described as a Lite Hazelcast
member
|
boolean |
isMicroInstance()
Checks whether or not this descriptor describes a Payara Micro instance
|
boolean |
isPayaraInstance()
Checks whether or not this descriptor describes a Payara Server instance
or the DAS
|
void |
removeApplication(ApplicationDescriptor applicationInfo) |
void |
setAdminPort(int adminPort)
Sets the admin port number for this instance descriptor
|
void |
setHazelcastPort(int hazelcastPort)
Sets the Hazelcast port number for this instance descriptor
|
void |
setHostName(InetAddress hostName) |
void |
setInstanceGroup(String instanceGroup)
Sets the instance group name
|
void |
setInstanceName(String instanceName) |
void |
setInstanceType(String instanceType)
Sets what instance type this descriptor describes
|
void |
setLastHeartBeat(long val) |
void |
setLiteMember(boolean isLiteMember)
Sets whether or not this descriptor describes a Hazelcast Lite member
|
String |
toJsonString(boolean verbose) |
String |
toString() |
public InstanceDescriptorImpl(String UUID) throws UnknownHostException
UnknownHostExceptionpublic void addApplication(ApplicationInfo info)
public void addApplication(ApplicationDescriptor descriptor)
public String getInstanceName()
getInstanceName in interface InstanceDescriptorpublic void setInstanceName(String instanceName)
public String getMemberUUID()
getMemberUUID in interface InstanceDescriptorpublic List<Integer> getHttpPorts()
getHttpPorts in interface InstanceDescriptorpublic void addHttpPort(int httpPort)
httpPort - the httpPort to addpublic InetAddress getHostName()
getHostName in interface InstanceDescriptorpublic void setHostName(InetAddress hostName)
hostName - the hostName to setpublic Collection<ApplicationDescriptor> getDeployedApplications()
getDeployedApplications in interface InstanceDescriptorpublic List<Integer> getHttpsPorts()
getHttpsPorts in interface InstanceDescriptorpublic void addHttpsPort(int httpsPort)
httpsPort - the httpsPort to addpublic void removeApplication(ApplicationDescriptor applicationInfo)
public boolean equals(Object obj)
equals in interface InstanceDescriptorequals in class Objectpublic int hashCode()
public boolean isLiteMember()
isLiteMember in interface InstanceDescriptorpublic void setLiteMember(boolean isLiteMember)
isLiteMember - true if this descriptor describes a Hazelcast Lite
memberpublic boolean isMicroInstance()
isMicroInstance in interface InstanceDescriptorpublic boolean isPayaraInstance()
isPayaraInstance in interface InstanceDescriptorpublic void setInstanceType(String instanceType)
instanceType - the instance type that this descriptor should
describepublic String getInstanceType()
getInstanceType in interface InstanceDescriptorpublic void setHazelcastPort(int hazelcastPort)
hazelcastPort - the port number in use by Hazelcastpublic int getHazelcastPort()
getHazelcastPort in interface InstanceDescriptorpublic void setAdminPort(int adminPort)
adminPort - the admin port number in use by this instancepublic int getAdminPort()
getAdminPort in interface InstanceDescriptorpublic String toJsonString(boolean verbose)
toJsonString in interface InstanceDescriptorverbose - whether to include servlet mappings in the returned object.public List<URL> getApplicationURLS()
getApplicationURLS in interface InstanceDescriptorpublic String getInstanceGroup()
getInstanceGroup in interface InstanceDescriptorpublic void setInstanceGroup(String instanceGroup)
instanceGroup - The instance group namepublic void setLastHeartBeat(long val)
public long getLastHearbeat()
getLastHearbeat in interface InstanceDescriptorCopyright © 2019. All rights reserved.