public class Pipeline extends Object
Pipeline represents a ‘collection’ of server connections (aka
Pipes). The Pipeline contains some simple management APIs to
create or remove Pipes objects.
As a note, you should NOT extend this class for production or application
purposes. This class is made non-final ONLY for testing/mocking/academic
purposes.| Constructor and Description |
|---|
Pipeline(String baseURL)
An initializer method to instantiate the Pipeline,
|
Pipeline(URL baseURL)
An initializer method to instantiate the Pipeline,
|
Pipeline(URL baseURL,
PipeFactory pipeFactory)
An initializer method to instantiate the Pipeline,
|
| Modifier and Type | Method and Description |
|---|---|
Pipe |
get(String name)
Look up for a pipe object.
|
LoaderPipe |
get(String name,
android.app.Activity activity)
Look up for a pipe object.
|
LoaderPipe |
get(String name,
android.support.v4.app.FragmentActivity activity)
Look up for a pipe object.
|
LoaderPipe |
get(String name,
android.app.Fragment fragment,
android.content.Context applicationContext)
Look up for a pipe object.
|
LoaderPipe |
get(String name,
android.support.v4.app.Fragment fragment,
android.content.Context applicationContext)
Look up for a pipe object.
|
Pipe |
pipe(Class klass) |
Pipe |
pipe(Class klass,
PipeConfig config) |
Pipe |
remove(String name)
Removes a pipe from the Pipeline object
|
public Pipeline(URL baseURL)
baseURL - the URL of the serverpublic Pipeline(URL baseURL, PipeFactory pipeFactory)
baseURL - the URL of the serverpipeFactory - a PipeFactorypublic Pipeline(String baseURL)
baseURL - the URL of the serverIllegalArgumentException - if baseURL is not a valid URLpublic Pipe pipe(Class klass, PipeConfig config)
public Pipe remove(String name)
name - the name of the actual pipepublic Pipe get(String name)
name - the name of the actual pipepublic LoaderPipe get(String name, android.app.Activity activity)
name - the name of the actual pipeactivity - the activity whose lifecycle the loader will followpublic LoaderPipe get(String name, android.app.Fragment fragment, android.content.Context applicationContext)
name - the name of the actual pipefragment - the Fragment whose lifecycle the activity will followapplicationContext - the Context of the application.public LoaderPipe get(String name, android.support.v4.app.FragmentActivity activity)
name - the name of the actual pipeactivity - the activity whose lifecycle the loader will followpublic LoaderPipe get(String name, android.support.v4.app.Fragment fragment, android.content.Context applicationContext)
name - the name of the actual pipefragment - the Fragment whose lifecycle the activity will followapplicationContext - the Context of the application.Copyright © 2014 JBoss by Red Hat. All rights reserved.