@ConfigRefConstraint(message="{configref.invalid}", payload=ConfigRefValidator.class) @ReferenceConstraint(skipDuringCreation=true, payload=Cluster.class) public interface Cluster extends org.jvnet.hk2.config.ConfigBeanProxy, org.jvnet.hk2.config.types.PropertyBag, org.glassfish.api.admin.config.Named, SystemPropertyBag, org.glassfish.api.admin.config.ReferenceContainer, RefContainer, javax.validation.Payload
| Modifier and Type | Interface and Description |
|---|---|
static class |
Cluster.Decorator |
static class |
Cluster.DeleteDecorator |
static class |
Cluster.Duck |
| Modifier and Type | Method and Description |
|---|---|
void |
createResourceRef(String enabled,
String refName) |
void |
deleteResourceRef(String refName) |
ApplicationRef |
getApplicationRef(String appName) |
String |
getBroadcast()
Gets the value of the broadcast property.
|
String |
getConfigRef()
points to a named config.
|
List<ClusterExtension> |
getExtensions() |
<T extends ClusterExtension> |
getExtensionsByType(Class<T> type) |
<T extends ClusterExtension> |
getExtensionsByTypeAndName(Class<T> type,
String name) |
String |
getGmsBindInterfaceAddress()
Gets the value of the gmsBindInterfaceAddress property.
|
String |
getGmsEnabled()
Gets the value of the gmsEnabled property.
|
String |
getGmsMulticastAddress()
Gets the value of the gmsMulticastAddress property.
|
String |
getGmsMulticastPort()
Gets the value of the gmsMulticastPort property.
|
String |
getHeartbeatAddress()
Deprecated.
|
String |
getHeartbeatEnabled()
Deprecated.
|
String |
getHeartbeatPort()
Deprecated.
|
List<Server> |
getInstances() |
String |
getName() |
List<org.jvnet.hk2.config.types.Property> |
getProperty()
Properties as per
PropertyBag |
String |
getReference()
Returns the cluster configuration reference
|
ResourceRef |
getResourceRef(String refName) |
List<ServerRef> |
getServerRef()
Gets the value of the serverRef property.
|
ServerRef |
getServerRefByRef(String ref) |
List<SystemProperty> |
getSystemProperty()
Gets the value of the systemProperty property.
|
boolean |
isCluster() |
boolean |
isDas() |
boolean |
isInstance() |
boolean |
isResourceRefExists(String refName) |
boolean |
isServer() |
boolean |
isVirtual() |
void |
setBroadcast(String value)
Sets the value of the broadcast property.
|
void |
setConfigRef(String value)
Sets the value of the configRef property.
|
void |
setGmsBindInterfaceAddress(String value)
Sets the value of the gmsBindInterfaceAddress property.
|
void |
setGmsEnabled(String value)
Sets the value of the gmsEnabled property.
|
void |
setGmsMulticastAddress(String value)
Sets the value of the gmsMulticastAddress property.
|
void |
setGmsMulticastPort(String value)
Sets the value of the gmsMulticastPort property.
|
void |
setHeartbeatAddress(String value)
Deprecated.
|
void |
setHeartbeatEnabled(String value)
Deprecated.
|
void |
setHeartbeatPort(String value)
Deprecated.
|
void |
setName(String value)
Sets the cluster name
|
getProperty, getPropertyValue, getPropertyValuecontainsProperty, getPropertyValue, getSystemProperty, getSystemPropertyValuegetApplicationRef, getResourceRefvoid setName(String value) throws PropertyVetoException
setName in interface org.glassfish.api.admin.config.Namedvalue - cluster namePropertyVetoException - if a listener vetoes the change@Pattern(regexp="[A-Za-z0-9_][A-Za-z0-9\\-_\\.;]*",
message="{cluster.invalid.name}",
payload=Cluster.class)
String getName()
getName in interface org.glassfish.api.admin.config.Named@NotNull @Pattern(regexp="[A-Za-z0-9_][A-Za-z0-9\\-_\\.;]*") @ReferenceConstraint.RemoteKey(message="{resourceref.invalid.configref}", type=Config.class) String getConfigRef()
void setConfigRef(String value) throws PropertyVetoException
value - allowed object is
StringPropertyVetoException - if a listener vetoes the change@NotNull String getGmsEnabled()
void setGmsEnabled(String value) throws PropertyVetoException
value - allowed object is
StringPropertyVetoException - if a listener vetoes the change@NotNull String getBroadcast()
void setBroadcast(String value) throws PropertyVetoException
value - allowed object is
StringPropertyVetoException - if a listener vetoes the change@Min(value=2048L) @Max(value=49151L) String getGmsMulticastPort()
Stringvoid setGmsMulticastPort(String value) throws PropertyVetoException
value - allowed object is
StringPropertyVetoException - if a listener vetoes the changeString getGmsMulticastAddress()
Stringvoid setGmsMulticastAddress(String value) throws PropertyVetoException
value - allowed object is
StringPropertyVetoException - if a listener vetoes the changeString getGmsBindInterfaceAddress()
Stringvoid setGmsBindInterfaceAddress(String value) throws PropertyVetoException
value - allowed object is
StringPropertyVetoException - if a listener vetoes the change@Deprecated String getHeartbeatEnabled()
@Deprecated void setHeartbeatEnabled(String value) throws PropertyVetoException
value - allowed object is
StringPropertyVetoException - if a listener vetoes the change@Deprecated String getHeartbeatPort()
String@Deprecated void setHeartbeatPort(String value) throws PropertyVetoException
value - allowed object is
StringPropertyVetoException - if a listener vetoes the change@Deprecated String getHeartbeatAddress()
String@Deprecated void setHeartbeatAddress(String value) throws PropertyVetoException
value - allowed object is
StringPropertyVetoException - if a listener vetoes the changeList<ServerRef> getServerRef()
ServerRef@ToDo(priority=IMPORTANT,
details="Provide PropertyDesc for legal system props")
List<SystemProperty> getSystemProperty()
set method for the systemProperty property.
For example, to add a new item, do as follows:
getSystemProperty().add(newItem);
Objects of the following type(s) are allowed in the list
SystemPropertygetSystemProperty in interface SystemPropertyBag@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()
PropertyBaggetProperty in interface org.jvnet.hk2.config.types.PropertyBagList<ClusterExtension> getExtensions()
@DuckTyped String getReference()
getReference in interface org.glassfish.api.admin.config.ReferenceContainer@DuckTyped boolean isCluster()
isCluster in interface org.glassfish.api.admin.config.ReferenceContainer@DuckTyped boolean isServer()
isServer in interface org.glassfish.api.admin.config.ReferenceContainer@DuckTyped boolean isDas()
isDas in interface org.glassfish.api.admin.config.ReferenceContainer@DuckTyped boolean isInstance()
isInstance in interface org.glassfish.api.admin.config.ReferenceContainer@DuckTyped boolean isVirtual()
@DuckTyped ApplicationRef getApplicationRef(String appName)
@DuckTyped ResourceRef getResourceRef(String refName)
@DuckTyped boolean isResourceRefExists(String refName)
@DuckTyped void createResourceRef(String enabled, String refName) throws org.jvnet.hk2.config.TransactionFailure
org.jvnet.hk2.config.TransactionFailure@DuckTyped void deleteResourceRef(String refName) throws org.jvnet.hk2.config.TransactionFailure
org.jvnet.hk2.config.TransactionFailure@DuckTyped <T extends ClusterExtension> List<T> getExtensionsByType(Class<T> type)
@DuckTyped <T extends ClusterExtension> T getExtensionsByTypeAndName(Class<T> type, String name)
Copyright © 2013. All Rights Reserved.