Package com.adaptris.jclouds.blobstore
Class BlobStoreService
- java.lang.Object
-
- com.adaptris.core.ServiceImp
-
- com.adaptris.jclouds.blobstore.BlobStoreService
-
- All Implemented Interfaces:
AdaptrisComponent
,ComponentLifecycle
,ComponentLifecycleExtension
,ConnectedService
,MessageEventGenerator
,Service
,StateManagedComponent
@ComponentProfile(summary="Perform an operation against a remote object using a pluggable cloud storage provider", recommended=BlobStoreConnection.class, tag="blob,s3,azure,backblaze,cloud") public class BlobStoreService extends ServiceImp implements ConnectedService
Perform an operation against a cloud storage provider.In the adapter configuration file this class is aliased as jclouds-blobstore-service which is the preferred alternative to the fully qualified classname when building your configuration.
-
-
Field Summary
-
Fields inherited from class com.adaptris.core.ServiceImp
log
-
-
Constructor Summary
Constructors Constructor Description BlobStoreService()
BlobStoreService(AdaptrisConnection c, Operation o)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
closeService()
void
doService(AdaptrisMessage msg)
@NonNull AdaptrisConnection
getConnection()
The connection to use when connecting to the remote blob storage.@NonNull Operation
getOperation()
The Operation to executeprotected void
initService()
void
prepare()
void
setConnection(@NonNull AdaptrisConnection connection)
The connection to use when connecting to the remote blob storage.void
setOperation(@NonNull Operation operation)
The Operation to executevoid
start()
void
stop()
-
Methods inherited from class com.adaptris.core.ServiceImp
changeState, close, continueOnFailure, createName, createQualifier, getContinueOnFail, getIsTrackingEndpoint, getUniqueId, init, isBranching, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setContinueOnFail, setIsTrackingEndpoint, setUniqueId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.adaptris.core.AdaptrisComponent
getUniqueId
-
Methods inherited from interface com.adaptris.core.ComponentLifecycle
close, init
-
Methods inherited from interface com.adaptris.core.MessageEventGenerator
createName, createQualifier, isTrackingEndpoint
-
Methods inherited from interface com.adaptris.core.Service
continueOnFailure, isBranching, setUniqueId
-
Methods inherited from interface com.adaptris.core.StateManagedComponent
changeState, requestClose, requestInit, requestStart, requestStop, retrieveComponentState
-
-
-
-
Constructor Detail
-
BlobStoreService
public BlobStoreService()
-
BlobStoreService
public BlobStoreService(AdaptrisConnection c, Operation o)
-
-
Method Detail
-
prepare
public void prepare() throws CoreException
- Specified by:
prepare
in interfaceComponentLifecycleExtension
- Throws:
CoreException
-
initService
protected void initService() throws CoreException
- Specified by:
initService
in classServiceImp
- Throws:
CoreException
-
start
public void start() throws CoreException
- Specified by:
start
in interfaceComponentLifecycle
- Overrides:
start
in classServiceImp
- Throws:
CoreException
-
stop
public void stop()
- Specified by:
stop
in interfaceComponentLifecycle
- Overrides:
stop
in classServiceImp
-
closeService
protected void closeService()
- Specified by:
closeService
in classServiceImp
-
doService
public void doService(AdaptrisMessage msg) throws ServiceException
- Specified by:
doService
in interfaceService
- Throws:
ServiceException
-
setConnection
public void setConnection(@NonNull @NonNull AdaptrisConnection connection)
The connection to use when connecting to the remote blob storage.- Specified by:
setConnection
in interfaceConnectedService
-
getConnection
@NonNull public @NonNull AdaptrisConnection getConnection()
The connection to use when connecting to the remote blob storage.- Specified by:
getConnection
in interfaceConnectedService
-
setOperation
public void setOperation(@NonNull @NonNull Operation operation)
The Operation to execute
-
-