- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for TransferEvent (0.15 sec)
-
compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/TransferListenerAdapter.java
listener.transferInitiated(wrap(transferEvent)); } public void transferProgress(TransferEvent transferEvent, byte[] buffer, int length) { Long transferred; synchronized (transfers) { transferred = transfers.get(transferEvent.getResource()); if (transferred == null) { transferred = (long) length; } else {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 5K bytes - Viewed (0) -
compat/maven-embedder/src/test/java/org/apache/maven/cli/transfer/SimplexTransferListenerTest.java
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 4.9K bytes - Viewed (0) -
compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/util/ConsoleTransferListener.java
} public ConsoleTransferListener(PrintStream out) { this.out = (out != null) ? out : System.out; } @Override public void transferInitiated(TransferEvent event) { String message = event.getRequestType() == TransferEvent.RequestType.PUT ? "Uploading" : "Downloading"; println( "transferInitiated", message + ": " + event.getResource().getRepositoryUrl()
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 5.5K bytes - Viewed (0) -
compat/maven-embedder/src/test/java/org/apache/maven/cli/transfer/ConsoleMavenTransferListenerTest.java
TransferListener listener, DefaultRepositorySystemSession session, TransferResource resource, final int bytes) { TransferEvent event = new TransferEvent.Builder(session, resource) .setType(TransferEvent.EventType.PROGRESSED) .setTransferredBytes(bytes) .build(); startLatch.countDown(); try {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 5K bytes - Viewed (0) -
compat/maven-embedder/src/main/java/org/apache/maven/cli/transfer/AbstractMavenTransferListener.java
this.out = out; } @Override public void transferInitiated(TransferEvent event) { String action = event.getRequestType() == TransferEvent.RequestType.PUT ? "Uploading" : "Downloading"; String direction = event.getRequestType() == TransferEvent.RequestType.PUT ? "to" : "from"; TransferResource resource = event.getResource();
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 4.3K bytes - Viewed (0) -
compat/maven-embedder/src/main/java/org/apache/maven/cli/transfer/SimplexTransferListener.java
for (Exchange exchange : exchanges) { exchange.process(transferEvent -> { TransferEvent.EventType type = transferEvent.getType(); try { switch (type) { case INITIATED: delegate.transferInitiated(transferEvent); break; case STARTED:
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 8.4K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/ArtifactTransferListener.java
void setShowChecksumEvents(boolean showChecksumEvents); void transferInitiated(ArtifactTransferEvent transferEvent); void transferStarted(ArtifactTransferEvent transferEvent); void transferProgress(ArtifactTransferEvent transferEvent); void transferCompleted(ArtifactTransferEvent transferEvent);
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 1.3K bytes - Viewed (0) -
compat/maven-embedder/src/main/java/org/apache/maven/cli/transfer/Slf4jMavenTransferListener.java
this.out = out; } @Override public void transferInitiated(TransferEvent event) { String action = event.getRequestType() == TransferEvent.RequestType.PUT ? "Uploading" : "Downloading"; String direction = event.getRequestType() == TransferEvent.RequestType.PUT ? "to" : "from"; TransferResource resource = event.getResource();
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 3.7K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/ArtifactTransferEvent.java
return exception; } /** * Returns the request type. * * @return Returns the request type. The Request type is one of * <code>TransferEvent.REQUEST_GET</code> or <code>TransferEvent.REQUEST_PUT</code> */ public int getRequestType() { return requestType; } /** * Sets the request type *
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 7.7K bytes - Viewed (0) -
compat/maven-embedder/src/main/java/org/apache/maven/cli/transfer/ConsoleMavenTransferListener.java
this.printResourceNames = printResourceNames; } @Override public void transferInitiated(TransferEvent event) { overridePreviousTransfer(event); super.transferInitiated(event); } @Override public void transferCorrupted(TransferEvent event) throws TransferCancelledException { overridePreviousTransfer(event); super.transferCorrupted(event); }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 5.4K bytes - Viewed (0)