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
|
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 |
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
UnknownHostException
public void addApplication(ApplicationInfo info)
public void addApplication(ApplicationDescriptor descriptor)
public String getInstanceName()
getInstanceName
in interface InstanceDescriptor
public void setInstanceName(String instanceName)
public String getMemberUUID()
getMemberUUID
in interface InstanceDescriptor
public List<Integer> getHttpPorts()
getHttpPorts
in interface InstanceDescriptor
public void addHttpPort(int httpPort)
httpPort
- the httpPort to addpublic InetAddress getHostName()
getHostName
in interface InstanceDescriptor
public void setHostName(InetAddress hostName)
hostName
- the hostName to setpublic Collection<ApplicationDescriptor> getDeployedApplications()
getDeployedApplications
in interface InstanceDescriptor
public List<Integer> getHttpsPorts()
getHttpsPorts
in interface InstanceDescriptor
public void addHttpsPort(int httpsPort)
httpsPort
- the httpsPort to addpublic void removeApplication(ApplicationDescriptor applicationInfo)
public boolean equals(Object obj)
equals
in interface InstanceDescriptor
equals
in class Object
obj
- public int hashCode()
public boolean isLiteMember()
isLiteMember
in interface InstanceDescriptor
public void setLiteMember(boolean isLiteMember)
isLiteMember
- true if this descriptor describes a Hazelcast Lite
memberpublic boolean isMicroInstance()
isMicroInstance
in interface InstanceDescriptor
public boolean isPayaraInstance()
isPayaraInstance
in interface InstanceDescriptor
public void setInstanceType(String instanceType)
instanceType
- the instance type that this descriptor should
describepublic String getInstanceType()
getInstanceType
in interface InstanceDescriptor
public void setHazelcastPort(int hazelcastPort)
hazelcastPort
- the port number in use by Hazelcastpublic int getHazelcastPort()
getHazelcastPort
in interface InstanceDescriptor
public void setAdminPort(int adminPort)
adminPort
- the admin port number in use by this instancepublic int getAdminPort()
getAdminPort
in interface InstanceDescriptor
public String toJsonString(boolean verbose)
toJsonString
in interface InstanceDescriptor
verbose
- whether to include servlet mappings in the returned object.public List<URL> getApplicationURLS()
getApplicationURLS
in interface InstanceDescriptor
public String getInstanceGroup()
getInstanceGroup
in interface InstanceDescriptor
public void setInstanceGroup(String instanceGroup)
instanceGroup
- The instance group nameCopyright © 2018. All rights reserved.