Package fish.payara.micro
Interface PayaraInstance
-
- All Known Implementing Classes:
PayaraInstanceImpl
@Contract public interface PayaraInstance
An instance of this class can be Injected into any application that is running on Payara Micro. It provides similar methods as the PayaraMicroRuntime- Author:
- Steve Millidge (Payara Foundation)
-
-
Method Summary
-
-
-
Method Detail
-
addBootstrapListener
void addBootstrapListener(PayaraClusterListener listener)
-
addCDIListener
void addCDIListener(CDIEventListener listener)
-
executeClusteredASAdmin
Map<UUID,Future<ClusterCommandResult>> executeClusteredASAdmin(String command, String... parameters)
-
executeClusteredASAdmin
Map<UUID,Future<ClusterCommandResult>> executeClusteredASAdmin(Collection<UUID> memberGUIDs, String command, String... parameters)
-
executeLocalAsAdmin
ClusterCommandResult executeLocalAsAdmin(String command, String... parameters)
-
getClusteredPayaras
Set<InstanceDescriptor> getClusteredPayaras()
-
getDescriptor
InstanceDescriptor getDescriptor(UUID member)
-
getInstanceName
String getInstanceName()
-
getLocalDescriptor
InstanceDescriptor getLocalDescriptor()
-
isClustered
boolean isClustered()
Checks whether or not this instance is in a Hazelcast cluster- Returns:
- true if this instance is in a Hazelcast cluster
-
publishCDIEvent
void publishCDIEvent(PayaraClusteredCDIEvent event)
-
removeBootstrapListener
void removeBootstrapListener(PayaraClusterListener listener)
-
removeCDIListener
void removeCDIListener(CDIEventListener listener)
-
runCallable
<T extends Serializable> Map<UUID,Future<T>> runCallable(Collection<UUID> memberUUIDS, Callable<T> callable)
-
runCallable
<T extends Serializable> Map<UUID,Future<T>> runCallable(Callable<T> callable)
-
setInstanceName
void setInstanceName(String instanceName)
-
-