Package fish.payara.micro.data
Interface InstanceDescriptor
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
InstanceDescriptorImpl
public interface InstanceDescriptor extends Serializable
Class describing an instance of Payara- Author:
- Steve Millidge
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanequals(Object obj)Overrides equals purely based on the UUID valueintgetAdminPort()Gets the admin port number for this instance descriptorList<URL>getApplicationURLS()Collection<ApplicationDescriptor>getDeployedApplications()intgetHazelcastPort()Gets the Hazelcast port number of this instance descriptorInetAddressgetHostName()List<Integer>getHttpPorts()List<Integer>getHttpsPorts()StringgetInstanceGroup()Returns the instance group name of the instanceStringgetInstanceName()StringgetInstanceType()Gets the instance type that this descriptor describeslonggetLastHearbeat()UUIDgetMemberUUID()booleanisLiteMember()Checks whether or not this instance is described as a Lite Hazelcast memberbooleanisMicroInstance()Checks whether or not this descriptor describes a Payara Micro instancebooleanisPayaraInstance()Checks whether or not this descriptor describes a Payara Server instance or the DASStringtoJsonString(boolean verbose)
-
-
-
Method Detail
-
equals
boolean equals(Object obj)
Overrides equals purely based on the UUID value
-
getAdminPort
int getAdminPort()
Gets the admin port number for this instance descriptor- Returns:
- the admin port number in use by this instance
-
getDeployedApplications
Collection<ApplicationDescriptor> getDeployedApplications()
- Returns:
- the deployedApplications
-
getHazelcastPort
int getHazelcastPort()
Gets the Hazelcast port number of this instance descriptor- Returns:
- the port number in use by Hazelcast
-
getHostName
InetAddress getHostName()
- Returns:
- the hostName
-
getInstanceName
String getInstanceName()
-
getInstanceType
String getInstanceType()
Gets the instance type that this descriptor describes- Returns:
- the instance type that this descriptor describes
-
getMemberUUID
UUID getMemberUUID()
- Returns:
- the memberUUID
-
isLiteMember
boolean isLiteMember()
Checks whether or not this instance is described as a Lite Hazelcast member- Returns:
- true if this instance describes a Hazelcast Lite member
-
isMicroInstance
boolean isMicroInstance()
Checks whether or not this descriptor describes a Payara Micro instance- Returns:
- true if this descriptor describes a Payara Micro instances
-
isPayaraInstance
boolean isPayaraInstance()
Checks whether or not this descriptor describes a Payara Server instance or the DAS- Returns:
- true if this descriptor describes a Payara Server instance or the DAS
-
getInstanceGroup
String getInstanceGroup()
Returns the instance group name of the instance- Returns:
-
toJsonString
String toJsonString(boolean verbose)
- Parameters:
verbose- whether to include servlet mappings in the returned object.- Returns:
- a JSON formatted string representing the instance.
-
getLastHearbeat
long getLastHearbeat()
- Returns:
- the timestamp of the last heartbeat this instance updated
-
-