public class DeploymentReceiverEngineImpl extends Object implements DeploymentReceiverTransport, DeploymentTargetRegistry, Runnable, org.springframework.context.ApplicationContextAware
| Constructor and Description |
|---|
DeploymentReceiverEngineImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
abort(String ticket)
Signals that the deployment should be aborted and
rolled back.
|
DeploymentToken |
begin(String targetName,
String storeName,
int version,
String user,
char[] password)
Start a deployment.
|
void |
commit(String ticket)
Signals that the deployment should commit.
|
void |
createDirectory(String ticket,
String path,
String guid,
Set<String> aspects,
Map<String,Serializable> props)
Create a new directory.
|
void |
delete(String ticket,
String path)
Delete a file or directory.
|
void |
finishSend(String ticket,
String outputToken)
Tell the deployment receiver that a send is finished.
|
DeploymentReceiverAuthenticator |
getAuthenticator() |
DeploymentCommandQueue |
getCommandQueue() |
Set<Housekeeper> |
getHousekeepers() |
List<FileDescriptor> |
getListing(String ticket,
String path)
Get a listing of a directory.
|
long |
getPollDelay() |
ReaderManagement |
getReaderManagement() |
String |
getSendToken(String ticket,
boolean create,
String path,
String guid,
String encoding,
String mimeType,
Set<String> aspects,
Map<String,Serializable> props)
Get an OutputStream token.
|
Map<String,DeploymentTarget> |
getTargets()
Get the targets for this deployment engine.
|
List<DeploymentTransportInputFilter> |
getTransformers()
Get the content transformers for this transport - if the transport does not support
content transformation then simply return null;
|
void |
init() |
boolean |
isDaemonThread() |
void |
prepare(String ticket)
Signals that the deployment should prepare
|
void |
registerTarget(String name,
DeploymentTarget target)
Register a new deployment target.
|
void |
run()
This is the keep-alive thread of the FSR.
|
OutputStream |
send(String token,
boolean create,
String path,
String guid,
String encoding,
String mimeType,
Set<String> aspects,
Map<String,Serializable> props)
Send a file to a path.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setAuthenticator(DeploymentReceiverAuthenticator authenticator) |
void |
setCommandQueue(DeploymentCommandQueue commandQueue) |
void |
setDaemonThread(boolean isDemonThread) |
void |
setHousekeepers(Set<Housekeeper> housekeepers) |
void |
setPollDelay(long pollDelay) |
void |
setReaderManagement(ReaderManagement readerManagement) |
void |
setTransformers(List<DeploymentTransportInputFilter> transformers) |
void |
shutDown() |
void |
shutDown(String user,
char[] password)
Shut down the Deployment Receiver.
|
void |
unregisterTarget(String name)
Unregister a deployment target
|
void |
updateDirectory(String ticket,
String path,
String guid,
Set<String> aspects,
Map<String,Serializable> properties)
Set the Guid (Version) on a directory.
|
void |
write(String ticket,
String outputToken,
byte[] data,
int offset,
int count)
Write a block of bytes to a file that is being sent.
|
public void init()
public void shutDown()
public void shutDown(String user, char[] password)
DeploymentReceiverTransportshutDown in interface DeploymentReceiverTransportpublic void run()
run in interface RunnableRunnable.run()public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic List<DeploymentTransportInputFilter> getTransformers()
public void setTransformers(List<DeploymentTransportInputFilter> transformers)
public void registerTarget(String name, DeploymentTarget target)
registerTarget in interface DeploymentTargetRegistryname - the name of the targettarget - the implementation of the targetpublic void unregisterTarget(String name)
unregisterTarget in interface DeploymentTargetRegistryname - the name of the targetpublic Map<String,DeploymentTarget> getTargets()
getTargets in interface DeploymentTargetRegistrypublic DeploymentToken begin(String targetName, String storeName, int version, String user, char[] password)
DeploymentReceiverServicebegin in interface DeploymentReceiverServicetargetName - The target to deploy to. A target is simply a key
to a receiver side deployment configuration.storeName - - the name of the store being deployed.version - - the version being deployed.user - The user name for authentication.password - The password for the user.public void abort(String ticket)
DeploymentReceiverServiceabort in interface DeploymentReceiverServicepublic void prepare(String ticket)
DeploymentReceiverServiceprepare in interface DeploymentReceiverServiceticket - The transaction ticket.public void commit(String ticket)
DeploymentReceiverServicecommit in interface DeploymentReceiverServiceticket - The transaction ticket.public void delete(String ticket, String path)
DeploymentReceiverServicedelete in interface DeploymentReceiverServicepublic List<FileDescriptor> getListing(String ticket, String path)
DeploymentReceiverServicegetListing in interface DeploymentReceiverServicepublic void createDirectory(String ticket, String path, String guid, Set<String> aspects, Map<String,Serializable> props)
DeploymentReceiverServicecreateDirectory in interface DeploymentReceiverServiceguid - The GUID (Version) of the directory to be created.public void updateDirectory(String ticket, String path, String guid, Set<String> aspects, Map<String,Serializable> properties)
DeploymentReceiverServiceupdateDirectory in interface DeploymentReceiverServicepublic OutputStream send(String token, boolean create, String path, String guid, String encoding, String mimeType, Set<String> aspects, Map<String,Serializable> props)
DeploymentReceiverServicesend in interface DeploymentReceiverServicecreate - - true new fileaspects - - full qualified names of the aspects that this file is associated with.public String getSendToken(String ticket, boolean create, String path, String guid, String encoding, String mimeType, Set<String> aspects, Map<String,Serializable> props)
DeploymentReceiverTransportgetSendToken in interface DeploymentReceiverTransportpublic void write(String ticket, String outputToken, byte[] data, int offset, int count)
DeploymentReceiverTransportwrite in interface DeploymentReceiverTransportpublic void finishSend(String ticket, String outputToken)
DeploymentReceiverTransportfinishSend in interface DeploymentReceiverTransportpublic void setAuthenticator(DeploymentReceiverAuthenticator authenticator)
public DeploymentReceiverAuthenticator getAuthenticator()
public void setHousekeepers(Set<Housekeeper> housekeepers)
public Set<Housekeeper> getHousekeepers()
public void setPollDelay(long pollDelay)
public long getPollDelay()
public void setCommandQueue(DeploymentCommandQueue commandQueue)
public DeploymentCommandQueue getCommandQueue()
public void setReaderManagement(ReaderManagement readerManagement)
public ReaderManagement getReaderManagement()
public void setDaemonThread(boolean isDemonThread)
public boolean isDaemonThread()
Copyright © 2005–2014 Alfresco Software. All rights reserved.