Package com.netcracker.profiler.client
Class RollingChunkStream
java.lang.Object
java.io.OutputStream
com.netcracker.profiler.client.RollingChunkStream
- All Implemented Interfaces:
com.netcracker.profiler.agent.DumperRemoteControlledStream,Closeable,Flushable,AutoCloseable
public class RollingChunkStream
extends OutputStream
implements com.netcracker.profiler.agent.DumperRemoteControlledStream
-
Constructor Summary
ConstructorsConstructorDescriptionRollingChunkStream(int rollingSequenceId, String streamName, long rotationPeriod, long requiredRotationSize, com.netcracker.profiler.agent.DumperCollectorClient collectorClient) -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
RollingChunkStream
public RollingChunkStream(int rollingSequenceId, String streamName, long rotationPeriod, long requiredRotationSize, com.netcracker.profiler.agent.DumperCollectorClient collectorClient)
-
-
Method Details
-
getStreamName
- Specified by:
getStreamNamein interfacecom.netcracker.profiler.agent.DumperRemoteControlledStream
-
getRotationPeriod
public long getRotationPeriod()- Specified by:
getRotationPeriodin interfacecom.netcracker.profiler.agent.DumperRemoteControlledStream
-
getRequiredRotationSize
public long getRequiredRotationSize()- Specified by:
getRequiredRotationSizein interfacecom.netcracker.profiler.agent.DumperRemoteControlledStream
-
getRollingSequenceId
public int getRollingSequenceId()- Specified by:
getRollingSequenceIdin interfacecom.netcracker.profiler.agent.DumperRemoteControlledStream
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
getOutputStream
- Specified by:
getOutputStreamin interfacecom.netcracker.profiler.agent.DumperRemoteControlledStream
-
getClient
public com.netcracker.profiler.agent.DumperCollectorClient getClient()- Specified by:
getClientin interfacecom.netcracker.profiler.agent.DumperRemoteControlledStream
-