Interface Cluster
- All Superinterfaces:
org.jvnet.hk2.config.ConfigBeanProxy,org.glassfish.api.admin.config.Named,jakarta.validation.Payload,org.jvnet.hk2.config.types.PropertyBag,RefContainer,org.glassfish.api.admin.config.ReferenceContainer,SystemPropertyBag
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic class -
Method Summary
Modifier and TypeMethodDescriptiondefault voidcreateResourceRef(String enabled, org.glassfish.api.naming.SimpleJndiName refName) default voiddeleteResourceRef(org.glassfish.api.naming.SimpleJndiName refName) default ApplicationRefgetApplicationRef(String appName) @NotNull StringGets the value of thebroadcastproperty.@NotNull @Pattern(regexp="[A-Za-z0-9_][A-Za-z0-9\\-_\\.;]*",message="{config.invalid.name}") StringPoints to a named config.default <T extends ClusterExtension>
List<T> getExtensionsByType(Class<T> type) default <T extends ClusterExtension>
TgetExtensionsByTypeAndName(Class<T> type, String name) Gets the value of thegmsBindInterfaceAddressproperty.@NotNull StringGets the value of thegmsEnabledproperty.Gets the value of thegmsMulticastAddressproperty.@Min(2048L) @Max(49151L) StringGets the value of thegmsMulticastPortproperty.Deprecated.Deprecated.Deprecated.@Pattern(regexp="[A-Za-z0-9_][A-Za-z0-9\\-_\\.;]*",message="{cluster.invalid.name}",payload=Cluster.class) StringgetName()List<org.jvnet.hk2.config.types.Property> Properties as perPropertyBagdefault StringReturns the cluster configuration referencedefault ResourceRefgetResourceRef(org.glassfish.api.naming.SimpleJndiName refName) Gets the value of theserverRefproperty.default ServerRefgetServerRefByRef(String refName) Gets the value of thesystemPropertyproperty.default booleandefault booleanisDas()default booleandefault booleanisResourceRefExists(org.glassfish.api.naming.SimpleJndiName refName) default booleanisServer()default booleanvoidsetBroadcast(String broadcast) Sets the value of thebroadcastproperty.voidsetConfigRef(String configRef) Sets the value of theconfigRefproperty.voidsetGmsBindInterfaceAddress(String bindAddress) Sets the value of thegmsBindInterfaceAddressproperty.voidsetGmsEnabled(String gmsEnabled) Sets the value of thegmsEnabledproperty.voidsetGmsMulticastAddress(String multicastAddress) Sets the value of thegmsMulticastAddressproperty.voidsetGmsMulticastPort(String multicastPort) Sets the value of thegmsMulticastPortproperty.voidsetHeartbeatAddress(String heartbeatAddress) Deprecated.voidsetHeartbeatEnabled(String heartbeatEnabled) Deprecated.voidsetHeartbeatPort(String heartbeatPort) Deprecated.voidSets the clustername.Methods inherited from interface org.jvnet.hk2.config.ConfigBeanProxy
createChild, deepCopy, getParent, getParentMethods inherited from interface org.jvnet.hk2.config.types.PropertyBag
addProperty, getProperty, getPropertyValue, getPropertyValue, lookupProperty, removeProperty, removePropertyMethods inherited from interface com.sun.enterprise.config.serverbeans.RefContainer
getApplicationRef, getApplicationRefNames, getResourceRef, getResourceRefNamesMethods inherited from interface com.sun.enterprise.config.serverbeans.SystemPropertyBag
containsProperty, getSystemProperty, getSystemPropertyValue, getSystemPropertyValue
-
Method Details
-
setName
Sets the clustername.- Specified by:
setNamein interfaceorg.glassfish.api.admin.config.Named- Parameters:
name- cluster name- Throws:
PropertyVetoException- if a listener vetoes the change
-
getName
@Pattern(regexp="[A-Za-z0-9_][A-Za-z0-9\\-_\\.;]*", message="{cluster.invalid.name}", payload=Cluster.class) @Pattern(regexp="[A-Za-z0-9_][A-Za-z0-9\\-_\\.;]*",message="{cluster.invalid.name}",payload=Cluster.class) String getName()- Specified by:
getNamein interfaceorg.glassfish.api.admin.config.Named
-
getConfigRef
@NotNull @Pattern(regexp="[A-Za-z0-9_][A-Za-z0-9\\-_\\.;]*", message="{config.invalid.name}") @RemoteKey(message="{resourceref.invalid.configref}", type=Config.class) @NotNull @Pattern(regexp="[A-Za-z0-9_][A-Za-z0-9\\-_\\.;]*",message="{config.invalid.name}") String getConfigRef()Points to a named config.All server instances in the cluster will share this config.
- Returns:
- a named config name
-
setConfigRef
Sets the value of theconfigRefproperty.- Parameters:
configRef- allowed object isString- Throws:
PropertyVetoException- if a listener vetoes the change
-
getGmsEnabled
Gets the value of thegmsEnabledproperty.When
gms-enabledis set totrue, the GMS services will be started as a lifecycle module in each the application server in the cluster.- Returns:
true|falseas a string,nullmeans false
-
setGmsEnabled
Sets the value of thegmsEnabledproperty.- Parameters:
gmsEnabled- allowed object isString- Throws:
PropertyVetoException- if a listener vetoes the change
-
getBroadcast
Gets the value of thebroadcastproperty.When
broadcastis set to default ofudpmulticastand GmsMulticastPort GMSMulticastAddress are not set, then their values are generated. Whenbroadcastis set to implied unicast using udp or tcp protocol, then theVIRUTAL_MUTLICAST_URI_LISTis generated for virtual broadcast over unicast mode.- Returns:
true|falseas a string,nullmeans false
-
setBroadcast
Sets the value of thebroadcastproperty.- Parameters:
broadcast- allowed object isString- Throws:
PropertyVetoException- if a listener vetoes the change
-
getGmsMulticastPort
Gets the value of thegmsMulticastPortproperty.This is the communication port GMS uses to listen for group events.
This should be a valid port number.
- Returns:
- possible object is
String
-
setGmsMulticastPort
Sets the value of thegmsMulticastPortproperty.- Parameters:
multicastPort- allowed object isString- Throws:
PropertyVetoException- if a listener vetoes the change
-
getGmsMulticastAddress
String getGmsMulticastAddress()Gets the value of thegmsMulticastAddressproperty.This is the address (only multicast supported) at which GMS will listen for group events.
Must be unique for each cluster.
- Returns:
- possible object is
String
-
setGmsMulticastAddress
Sets the value of thegmsMulticastAddressproperty.- Parameters:
multicastAddress- allowed object isString- Throws:
PropertyVetoException- if a listener vetoes the change
-
getGmsBindInterfaceAddress
String getGmsBindInterfaceAddress()Gets the value of thegmsBindInterfaceAddressproperty.- Returns:
- possible object is
String
-
setGmsBindInterfaceAddress
Sets the value of thegmsBindInterfaceAddressproperty.- Parameters:
bindAddress- allowed object isString- Throws:
PropertyVetoException- if a listener vetoes the change
-
getHeartbeatEnabled
Deprecated.Gets the value of theheartbeatEnabledproperty.When
heartbeat-enabledis set totrue, the GMS services will be started as a lifecycle module in each the application server in the cluster. Whenheartbeat-enabledis set tofalse, GMS will not be started and its services will be unavailable. Clusters should function albeit with reduced functionality.- Returns:
true|falseas a string,nullmeans false
-
setHeartbeatEnabled
Deprecated.Sets the value of theheartbeatEnabledproperty.- Parameters:
heartbeatEnabled- allowed object isString- Throws:
PropertyVetoException- if a listener vetoes the change
-
getHeartbeatPort
Deprecated.Gets the value of theheartbeatPortproperty.This is the communication port GMS uses to listen for group events.
This should be a valid port number.
- Returns:
- possible object is
String
-
setHeartbeatPort
Deprecated.Sets the value of theheartbeatPortproperty.- Parameters:
heartbeatPort- allowed object isString- Throws:
PropertyVetoException- if a listener vetoes the change
-
getHeartbeatAddress
Deprecated.Gets the value of theheartbeatAddressproperty.This is the address (only multicast supported) at which GMS will listen for group events.
- Returns:
- possible object is
String
-
setHeartbeatAddress
Deprecated.Sets the value of theheartbeatAddressproperty.- Parameters:
heartbeatAddress- allowed object isString- Throws:
PropertyVetoException- if a listener vetoes the change
-
getServerRef
Gets the value of theserverRefproperty.List of servers in the cluster
- Returns:
- list of configured
ServerRef
-
getSystemProperty
@ToDo(priority=IMPORTANT, details="Provide PropertyDesc for legal system props") List<SystemProperty> getSystemProperty()Gets the value of thesystemPropertyproperty.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for thesystemPropertyproperty.For example, to add a new item, do as follows:
getSystemProperty().add(newItem);
Objects of the following type(s) are allowed in the list
SystemProperty- Specified by:
getSystemPropertyin interfaceSystemPropertyBag
-
getProperty
@ToDo(priority=IMPORTANT, details="Complete PropertyDesc for legal props") @PropertiesDesc(props=@PropertyDesc(name="GMS_LISTENER_PORT",defaultValue="9090",description="GMS listener port")) List<org.jvnet.hk2.config.types.Property> getProperty()Properties as perPropertyBag- Specified by:
getPropertyin interfaceorg.jvnet.hk2.config.types.PropertyBag
-
getExtensions
List<ClusterExtension> getExtensions() -
getReference
Returns the cluster configuration reference- Specified by:
getReferencein interfaceorg.glassfish.api.admin.config.ReferenceContainer- Returns:
- the
config-refattribute
-
getInstances
-
getServerRefByRef
-
isCluster
default boolean isCluster()- Specified by:
isClusterin interfaceorg.glassfish.api.admin.config.ReferenceContainer
-
isServer
default boolean isServer()- Specified by:
isServerin interfaceorg.glassfish.api.admin.config.ReferenceContainer
-
isDas
default boolean isDas()- Specified by:
isDasin interfaceorg.glassfish.api.admin.config.ReferenceContainer
-
isInstance
default boolean isInstance()- Specified by:
isInstancein interfaceorg.glassfish.api.admin.config.ReferenceContainer
-
isVirtual
default boolean isVirtual() -
getApplicationRef
-
getResourceRef
-
isResourceRefExists
default boolean isResourceRefExists(org.glassfish.api.naming.SimpleJndiName refName) -
createResourceRef
default void createResourceRef(String enabled, org.glassfish.api.naming.SimpleJndiName refName) throws org.jvnet.hk2.config.TransactionFailure - Throws:
org.jvnet.hk2.config.TransactionFailure
-
deleteResourceRef
default void deleteResourceRef(org.glassfish.api.naming.SimpleJndiName refName) throws org.jvnet.hk2.config.TransactionFailure - Throws:
org.jvnet.hk2.config.TransactionFailure
-
getExtensionsByType
-
getExtensionsByTypeAndName
-