Interface DeleteOperationsInterface
-
- All Known Subinterfaces:
EngineClientInterface
- All Known Implementing Classes:
EngineClientBean
public interface DeleteOperationsInterfaceDeleteOperationsInterface is an interface that specifies the standard operations to enable an engine client to remove items from a remote correlator.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeleteAll()Deletes everything from the engine.voiddeleteName(java.lang.String name, boolean force)Delete a name from the engine.voiddeleteNames(java.util.List<java.lang.String> names, boolean force)Delete a number of names.voiddeleteNamesFromFile(java.util.List<java.lang.String> filenames, boolean force)Delete a number of names from a file or stdin.voiddeleteNamesFromFile(java.util.List<java.lang.String> filenames, boolean force, boolean utf8)Delete a number of names from a file or stdin.voidkillName(java.lang.String name)Kill a name from the engine.voidkillNames(java.util.List<java.lang.String> names)Kill a number of names.voidkillNamesFromFile(java.util.List<java.lang.String> filenames)Kill a number of names from a file or stdin.voidkillNamesFromFile(java.util.List<java.lang.String> filenames, boolean utf8)Kill a number of names from a file or stdin.voidsetCancelDeleteFileRead(boolean newCancelFileReadValue)Setter for the cancelFileRead property for the Delete / Kill operations.
-
-
-
Method Detail
-
deleteNames
void deleteNames(java.util.List<java.lang.String> names, boolean force) throws EngineExceptionDelete a number of names. If a connection is not yet established, this method will request a connection.- Parameters:
names- Names to be deleted.force- Set to true to forcably delete the names even if in use.- Throws:
EngineException
-
deleteNamesFromFile
void deleteNamesFromFile(java.util.List<java.lang.String> filenames, boolean force) throws EngineExceptionDelete a number of names from a file or stdin. If a connection is not yet established, this method will request a connection.- Parameters:
filenames- Names of files to read Names from. A file name "-" is taken to be stdin.force- Set to true to forcably delete the names even if in use.- Throws:
EngineException- Thrown if any exceptions occur in the Client SDK.
-
deleteNamesFromFile
void deleteNamesFromFile(java.util.List<java.lang.String> filenames, boolean force, boolean utf8) throws EngineExceptionDelete a number of names from a file or stdin. If a connection is not yet established, this method will request a connection.- Parameters:
filenames- Names of files to read Names from. A file name "-" is taken to be stdin.force- Set to true to forcably delete the names even if in use.utf8- Iftrue, the specified files will be read as UTF-8; otherwise they will be read using the system default encoding unless they begin with a unicode Byte Order Mark (BOM) character.- Throws:
EngineException- Thrown if any exceptions occur in the Client SDK.
-
deleteAll
void deleteAll() throws EngineExceptionDeletes everything from the engine.- Throws:
EngineException
-
deleteName
void deleteName(java.lang.String name, boolean force) throws EngineExceptionDelete a name from the engine. If a connection is not yet established, this method will request a connection.- Parameters:
name- The name to be deleted.force- Set to true to forcably delete the name even if in use.- Throws:
EngineException- Thrown if any exceptions occur in the Client SDK.
-
killNames
void killNames(java.util.List<java.lang.String> names) throws EngineExceptionKill a number of names. Note that this will kill running monitors in such as way as to break the fault tolerance scheme. If a connection is not yet established, this method will request a connection.- Parameters:
names- Names to be deleted.- Throws:
EngineException
-
killNamesFromFile
void killNamesFromFile(java.util.List<java.lang.String> filenames) throws EngineExceptionKill a number of names from a file or stdin. Note that this will kill running monitors in such as way as to break the fault tolerance scheme. If a connection is not yet established, this method will request a connection.- Parameters:
filenames- Names of files to read Names from. A file name "-" is taken to be stdin.- Throws:
EngineException- Thrown if any exceptions occur in the Client SDK.
-
killNamesFromFile
void killNamesFromFile(java.util.List<java.lang.String> filenames, boolean utf8) throws EngineExceptionKill a number of names from a file or stdin. Note that this will kill running monitors in such as way as to break the fault tolerance scheme. If a connection is not yet established, this method will request a connection.- Parameters:
filenames- Names of files to read Names from. A file name "-" is taken to be stdin.utf8- Iftrue, the specified files will be read as UTF-8; otherwise they will be read using the system default encoding unless they begin with a unicode Byte Order Mark (BOM) character.- Throws:
EngineException- Thrown if any exceptions occur in the Client SDK.
-
killName
void killName(java.lang.String name) throws EngineExceptionKill a name from the engine. Note that this will kill running monitors in such as way as to break the fault tolerance scheme. If a connection is not yet established, this method will request a connection.- Parameters:
name- The name to be deleted.- Throws:
EngineException- Thrown if any exceptions occur in the Client SDK.
-
setCancelDeleteFileRead
void setCancelDeleteFileRead(boolean newCancelFileReadValue)
Setter for the cancelFileRead property for the Delete / Kill operations. The purpose of the cancelFileRead property is to provide a mechanism to cleanly terminate the processing of events from file, when the deleteNamesFromFile() or killNamesFromFile() method is in progress. When cancelFileRead is set to true, the Name deleting loop will terminate at the next iteration.- Parameters:
newCancelFileReadValue- New value for the cancelFileRead property.
-
-