public enum Chassis extends Enum<Chassis>
| Modifier and Type | Method and Description |
|---|---|
static Asset |
acquireAsset(String name)
Get or create an empty asset
|
static <K,V> MapView<K,V,V> |
acquireMap(String uri,
Class<K> kClass,
Class<V> vClass)
Get or create a Map, ConcurrentMap or MapView of an asset.
|
static <E> Publisher<E> |
acquirePublisher(String uri,
Class<E> eClass)
Get or create a Publisher view for a given lement or update type.
|
static <E> Reference<E> |
acquireReference(String uri,
Class<E> eClass)
Obtain a reference to an element or value of Map.
|
static <E> Set<E> |
acquireSet(String uri,
Class<E> eClass)
View an asset as a set.
|
static <T,E> TopicPublisher<T,E> |
acquireTopicPublisher(String uri,
Class<T> tClass,
Class<E> eClass)
Get or create a TopicPublisher.
|
static AssetTree |
assetTree() |
static void |
close()
Shutdown everything in the asset tree.
|
static Asset |
getAsset(String uri)
Get an existing Asset or return null
|
static <E> void |
registerSubscriber(String uri,
Class<E> eClass,
Subscriber<E> subscriber)
Register a Subscriber to events on an Asset.
|
static <T,E> void |
registerTopicSubscriber(String uri,
Class<T> tClass,
Class<E> eClass,
TopicSubscriber<T,E> subscriber)
Register a Topic Subscription to a group.
|
static void |
resetChassis()
Replace the underlying
|
static <E> void |
unregisterSubscriber(String uri,
Subscriber<E> subscriber)
Unregister a subscriber.
|
static <T,E> void |
unregisterTopicSubscriber(String uri,
TopicSubscriber<T,E> subscriber)
Unregister a TopicSubscriber.
|
static Chassis |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Chassis[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static Chassis[] values()
for (Chassis c : Chassis.values()) System.out.println(c);
public static Chassis valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static void resetChassis()
public static AssetTree assetTree()
@NotNull public static <E> Set<E> acquireSet(@NotNull String uri, Class<E> eClass) throws AssetNotFoundException
uri - of the seteClass - of the elements of the setAssetNotFoundException - if not found or could not be created.@NotNull public static <K,V> MapView<K,V,V> acquireMap(@NotNull String uri, Class<K> kClass, Class<V> vClass) throws AssetNotFoundException
uri - of the Map.kClass - key classvClass - value classAssetNotFoundException - if not found or could not be created.@NotNull public static <E> Reference<E> acquireReference(@NotNull String uri, Class<E> eClass) throws AssetNotFoundException
uri - of the resourceeClass - the type of the elementAssetNotFoundException - if not found or could not be created.@NotNull public static <E> Publisher<E> acquirePublisher(@NotNull String uri, Class<E> eClass) throws AssetNotFoundException
uri - to publish to.eClass - of the data to publishAssetNotFoundException - if not found or could not be created.@NotNull public static <T,E> TopicPublisher<T,E> acquireTopicPublisher(@NotNull String uri, Class<T> tClass, Class<E> eClass) throws AssetNotFoundException
uri - of the group to publish to. When you specify a tipuc, in will be immediately under that group.tClass - class of the topic. Typically String.classeClass - class of the messages to publish on that topic.AssetNotFoundException - if not found or could not be created.public static <E> void registerSubscriber(@NotNull
String uri,
Class<E> eClass,
Subscriber<E> subscriber)
throws AssetNotFoundException
uri - of the asset to subscribe to event for.eClass - of the subscriptionsubscriber - to listen to events.AssetNotFoundException - if not found or could not be created.public static <E> void unregisterSubscriber(@NotNull
String uri,
Subscriber<E> subscriber)
uri - of the asset to unsubscribe from.subscriber - to unregisterpublic static <T,E> void registerTopicSubscriber(@NotNull
String uri,
Class<T> tClass,
Class<E> eClass,
TopicSubscriber<T,E> subscriber)
throws AssetNotFoundException
uri - of the group of Assets to listen to.tClass - topic classeClass - element class for messages.subscriber - to listen to events onAssetNotFoundException - if not found or could not be created.public static <T,E> void unregisterTopicSubscriber(@NotNull
String uri,
TopicSubscriber<T,E> subscriber)
uri - of the group of Assets to unregister fromsubscriber - to remove.public static Asset acquireAsset(String name) throws AssetNotFoundException
name - of the assetAssetNotFoundException - if not found or could not be created.@Nullable public static Asset getAsset(String uri)
uri - of the assetpublic static void close()
Copyright © 2015. All rights reserved.